-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Like with an escape clause fails #1386
Comments
Hello, {"code":"500","message":"JDBC exception executing SQL ...ERROR: Postgres function like_escape(text, text) is not supported - Statement: 'select ... from ttdev de1_0 where lower(de1_0.name) like lower($1) escape '' or lower(de1_0.xx) like lower($2) escape '''] [n/a]","status":"Internal Server Error"} is there any solution ? |
It depends a bit on the use case. One possible option could be to use the Line 26 in 05a09bc
If that is not an option in your case, then I can have a look at adding a query replacement in PGAdapter. We already replace some known function calls and statements, so this could be added to that. |
Hello @olavloite, We encountered the same LIKE ESCAPE issue with PgAdapter and implemented a solution that transforms queries to remove the ESCAPE clause while preserving the intended behavior of LIKE statements. Summary of Our Approach: Testing and Validation: Seeking Your Guidance: We look forward to your feedback and are happy to contribute further if this solution aligns with PgAdapter's current design. Best regards, |
@hnarra7 Thanks for reaching out!
Yes, I think that would be good for further discussion regarding where it would be best to place this replacement. |
The text was updated successfully, but these errors were encountered: