Skip to content

Fix bugs and limitations of @DisableLikeWithLeadingWildcard#259

Merged
jeanbisutti merged 1 commit intoquick-perf:masterfrom
jeanbisutti:fix-bug-limitations-disable-like-with-leading-wildcard
Apr 12, 2026
Merged

Fix bugs and limitations of @DisableLikeWithLeadingWildcard#259
jeanbisutti merged 1 commit intoquick-perf:masterfrom
jeanbisutti:fix-bug-limitations-disable-like-with-leading-wildcard

Conversation

@jeanbisutti
Copy link
Copy Markdown
Collaborator

Bugs fixed

Description Example
LIKE inside a SQL line comment was wrongly detected SELECT * FROM Book WHERE title = 'bar' -- LIKE '%foo'
LIKE inside a SQL block comment was wrongly detected SELECT * FROM Book WHERE title = 'bar' /* LIKE '%foo' */

Limitations removed

Description Example
Bind parameter with leading wildcard was not detected SELECT * FROM Book WHERE title LIKE ? with param %foo
Bind parameter with wildcard when a string literal contains ? was not detected SELECT * FROM Book WHERE isbn = 'really?' AND title LIKE ? with param %foo
Bind parameter via PreparedStatement with wildcard was not detected SELECT * FROM Book WHERE isbn = ? AND title LIKE ? with params 123, %foo
Newline separator between LIKE and the pattern was not recognized SELECT * FROM Book WHERE title LIKE'%foo'
Parentheses around the LIKE pattern were not recognized SELECT * FROM Book WHERE title LIKE ('%foo')
Tab separator between LIKE and the pattern was not recognized SELECT * FROM Book WHERE title LIKE'%foo'

@jeanbisutti jeanbisutti changed the title Fix bugs and limitations of the @DisableLikeWithLeadingWildcard Fix bugs and limitations of @DisableLikeWithLeadingWildcard Apr 12, 2026
@jeanbisutti jeanbisutti merged commit 6c578a1 into quick-perf:master Apr 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant