ORA-01461 when Using Java.sql.ResultSet (Doc ID 2112318.1)

Last updated on APRIL 04, 2017

Applies to:

JDBC - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.0.2.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().


Cause

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