My Oracle Support Banner

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

Last updated on JULY 21, 2023

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().


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.