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
JdbcTemplate cannot set null parameter with Oracle driver [SPR-10385] #15018
The StatementCreatorUtils.setNull(..) method fails with an Oracle database.
The method expects the driver to throw an exception when ps.getParameterMetaData() is invoked (line 234), but this actually succeeds and returns a value.
Later in the method (line 241), when pmd.getParameterType() is invoked, Oracle throws an "Unsupported Feature" exception.
I think the easiest fix here would be to move the getParameterType() invocation into the existing try block so both conditions are accounted for.
Activity
spring-projects-issues commentedon Mar 15, 2013
Tom Witmer commented
Source file attached, in case the line numbers don't match up to trunk source.
spring-projects-issues commentedon Mar 15, 2013
Tom Witmer commented
Attached source file that should resolve the issue.
spring-projects-issues commentedon Mar 15, 2013
Tom Witmer commented
I just confirmed via the debugger that the proposed fix (attachment) would resolve the problem I'm seeing.