You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Like statement does not support ESCAPE with parameter #420
Looking at production LikeExpression, JSqlParser does only accept a character literal at this position. So the fix should introduce a JdbcParameter as well or even an Expression.
Activity
wumpz commentedon Apr 6, 2017
Is the escape character realy providable by a parameter?
dondank commentedon Apr 7, 2017
yes, this is code running on Oracle in production
wumpz commentedon Apr 7, 2017
Ok. Do you want to make a pull request?
dondank commentedon Apr 10, 2017
can it be fixed?
wumpz commentedon Apr 10, 2017
Looking at production
LikeExpression, JSqlParser does only accept a character literal at this position. So the fix should introduce aJdbcParameteras well or even anExpression.arcuri82 commentedon Nov 5, 2021
hi,
ending up here, as having exactly the same issue, due to a query generated by the JDBC driver in H2.
From
JdbcDatabaseMetadata.getColumns:if making a pull request, which are the files that would be more like be involved? (I guess
LikeExpressionwould be a starting point)manticore-projects commentedon Nov 5, 2021
Greetings!
Please consider the following minimum requirement for accepting the PR:
Issue JSQLParser#420 Like Expression with Escape Expression
manticore-projects commentedon Nov 5, 2021
A quicky during the lunch break, please give it a thorough testing as I did not spend much time on this.
Issue #420 Like Expression with Escape Expression (#1406)
manticore-projects commentedon Nov 22, 2022
Works with JSQLParser 4.6. Snapshot.
Closed.