Java.sql.SQLException: Invalid Column Index with JDBC and JDBC 12.1.0.x drivers while updating columns using setLong, setInt, and setObject

(Doc ID 2166831.1)

Last updated on MAY 04, 2017

Applies to:

JDBC - Version to [Release 11.2 to 12c]
Information in this document applies to any platform.


JDBC application fails with java.sql.SQLException: Invalid column index
while updating the columns using setLong(), setInt, and setObject() accessors.

The issue is specific to JDBC version, JDBC, and  It does not occur with JDBC and older versions

Code example:



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