fix(utils/parseExecute): executeType fails when query has multiple lines

This commit is contained in:
Linden committed 2022-05-15 03:25:41 +10:00
1 parent 56729ef9c1
commit db5fe3e557
1 file changed
+1 -1
+1 -1
View File
@@ -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':