mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
fix(utils/parseExecute): executeType fails when query has multiple lines
This commit is contained in:
1 parent
56729ef9c1
commit
db5fe3e557
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { CFXParameters } from '../types';
|
||||
|
||||
export const executeType = (query: string) => {
|
||||
switch (query.replace(/\s.*/, '')) {
|
||||
switch (query.substring(0, query.indexOf(' '))) {
|
||||
case 'SELECT':
|
||||
return null;
|
||||
case 'INSERT':
|
||||
|
||||
Reference in new issue
Block a user