ORA-01461 when Using Java.sql.ResultSet
Last updated on APRIL 04, 2017
Applies to:JDBC - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
On : 220.127.116.11.0 version, Thin JDBC driver
When using a java.sql.ResultSet .insertRow() or .updateRow() to insert or update a table that does not have a LONG datatype, the following error is received:
ORA-01461: can bind a LONG value only for insert into a LONG column.
The table used for this has the next description:
Each field of the ResultSet is set using ResultSet.updateString for the VARCHAR2 and CHAR fields, or ResultSet.updateDate for the Date field.
The error is thrown when executing ResultSet.insertRow().
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