Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b121c9

Browse files
committed
Minor fix
1 parent 9b231f8 commit 2b121c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ def getSQLSnippet(dbms, sfile, **variables):
15761576
for _ in re.findall(r"%RANDINT\d+%", retVal, re.I):
15771577
retVal = retVal.replace(_, randomInt())
15781578

1579-
variables = re.findall(r"%(\w+)%", retVal, re.I)
1579+
variables = re.findall(r"(?<!\bLIKE\s*')%(\w+)%", retVal, re.I)
15801580

15811581
if variables:
15821582
errMsg = "unresolved variable%s '%s' in SQL file '%s'" % ("s" if len(variables) > 1 else "", ", ".join(variables), sfile)

0 commit comments

Comments
 (0)