1
0
Fork 0
mirror of synced 2024-06-15 17:05:11 +12:00

Fixing review comment.

This commit is contained in:
mike12345567 2022-03-21 17:57:26 +00:00
parent d52f6dea05
commit 114c9cf96a

View file

@ -37,7 +37,7 @@ class QueryRunner {
arrays = []
for (let binding of bindings) {
// look for array/list operations in the SQL statement, which will need handled later
const listRegex = new RegExp(`(in|IN|In|iN) ${binding}`)
const listRegex = new RegExp(`(in|IN|In|iN)( )+${binding}`)
const listRegexMatch = sql.match(listRegex)
// check if the variable was used as part of a string concat e.g. 'Hello {{binding}}'
const charConstRegex = new RegExp(`'[^']*${binding}[^']*'`)