-
Notifications
You must be signed in to change notification settings - Fork 38.5k
SqlParameterSource needs method for extracting parameter names [SPR-16361] #20908
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
Comments
Juergen Hoeller commented I suppose you're using |
Juergen Hoeller commented I've introduced a |
Philippe Marschall commented Thanks for the quick response. Actually we were using |
Juergen Hoeller commented How is |
Philippe Marschall commented I confused two things. We have a custom We could contribute the implementation if that is of interest, it would need some cleanup (eg. we compile against Oracle classes which would be a no-go for Spring). |
Juergen Hoeller commented Alright, my implementation here should be good to go then. As for the Oracle extension, you could consider submitting it to the Spring Data JDBC Extensions project which has plenty of Oracle extensions already (built against the Oracle JDBC driver API): https://github.com/spring-projects/spring-data-jdbc-ext/tree/master/spring-data-oracle |
Philippe Marschall commented Thank you, I wasn't aware of this. |
Uh oh!
There was an error while loading. Please reload this page.
Philippe Marschall opened SPR-16361 and commented
NamedParameterJdbcOperations
supports passing in custom implementations ofSqlParameterSource
. Unfortunately doing so silently breaks. The issue is thatSqlParameterSource
offers no way of accessing the names of the parameters soSqlParameterSourceUtils#extractCaseInsensitiveParameterNames
has to cast to the implementation classesBeanPropertySqlParameterSource
andMapSqlParameterSource
. For any other implementation class an empty map is returned.Affects: 5.0.2
Issue Links:
The text was updated successfully, but these errors were encountered: