getParameterCount Returns Incorrect Parameter Count with 12c Driver
Last updated on SEPTEMBER 21, 2017
Applies to:JDBC - Version 184.108.40.206.0 to 220.127.116.11.0 [Release 12.1]
Information in this document applies to any platform.
After upgrading JDBC driver to 12.1.0.x, getParameterCount() returns the number of columns instead of the number of parameters in SQL statement.
The output is "1" with the above program, even when the number of bind variables is "2".
Upgrade JDBC Driver to 12c.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms