Error "java.sql.SQLException: Invalid column type: 16" When Calling an PL/SQL Returning a Boolean from JDBC.
(Doc ID 1113893.1)
Last updated on AUGUST 14, 2019
Applies to:JDBC - Version 18.104.22.168 and later
Information in this document applies to any platform.
A Java application is calling an oracle package function that returns a boolean. When this application is executed, the following error is displayed:
ERROR - Exception in Main : Invalid column type: 16
Error : java.sql.SQLException: Invalid column type: 16
The Java program contains a dynamic statement that uses bind variables, like this:
callableStatement_pkg = conn.prepareCall(package );
boolean updateResult = callableStatement_pkg.getBoolean(1);
As seen in the previous code segment, one of the variable types is defined as Boolean, and the getBoolean method is used to retrieve its value
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