Commit f96946a
committed
Fix REPLACE() string function being misidentified as write query
Use negative lookahead REPLACE(?!\s*\() instead of bare REPLACE to
distinguish the MySQL REPLACE() string function from the REPLACE INTO
(or bare REPLACE) DML write statement.
This avoids a false positive where SELECT queries containing REPLACE()
are routed through the write-query code path, causing their results
to be silently swallowed.
Fixes #3131 parent a959fd3 commit f96946a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
0 commit comments