mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 22:20:56 +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';
|
import { CFXParameters } from '../types';
|
||||||
|
|
||||||
export const executeType = (query: string) => {
|
export const executeType = (query: string) => {
|
||||||
switch (query.replace(/\s.*/, '')) {
|
switch (query.substring(0, query.indexOf(' '))) {
|
||||||
case 'SELECT':
|
case 'SELECT':
|
||||||
return null;
|
return null;
|
||||||
case 'INSERT':
|
case 'INSERT':
|
||||||
|
|||||||
Reference in new issue
Block a user