-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Use of DatabaseMetadata#getProcedures
(and functions) should take search string escape into account
#22725
Comments
I should have said I used it with pgjdbc |
@bashtanov I can reproduce but I don't think there's anything we can do about this. We call What do you mean by "not with patterns for them to match"? |
And this is wrong, because, according to its documentation, |
DatabaseMetadata#getProcedures
(and functions) should take search string escape into account
@bashtanov well, this is embarrassing. I did notice the pattern but missed what that actually means and the use of the escape character. Thanks for getting back to us, we'll get this fixed. |
All versions including master.
As far as I could see,
SimpleJdbcCall
callsjava.sql.databaseMetaData.getProcedures
with just procedure and schema names, not with patterns for them to match. This results in problems with procedures having underscores in their names:Passing underscores backslash-escaped to
withProcedure
doesn't help either: the correct function gets found but not called as its name is different from the pattern to find it.The text was updated successfully, but these errors were encountered: