My Oracle Support Banner

Invalid Column Index When a Table Contains a Column Named "JSON" (Doc ID 2887307.1)

Last updated on AUGUST 09, 2023

Applies to:

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


JDBC code fails with the error java.sql.SQLException: Invalid column index when the prepared update statement includes a column that is named JSON with the 21.3 driver.

Example of SQL statement:

This is related to a column name in the table. The column name is "json". When renaming the column to something else, the update works.

This issue only affects JDBC 21c drivers and does not affect older drivers.




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

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