]
Steven Hawkins resolved TEIID-5744.
-----------------------------------
Resolution: Done
Updated the logic to not create a statement nor get the metadata when the prepared sql is
empty.
Teiid pg does not handle empty prepared sql
-------------------------------------------
Key: TEIID-5744
URL:
https://issues.jboss.org/browse/TEIID-5744
Project: Teiid
Issue Type: Bug
Components: ODBC
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Major
Fix For: 12.3, 12.2.1
If a client issues something like:
s = c.prepareStatement("");
s.executeUpdate();
The current logic will throw an exception on prepare.
It's expected for the prepare to complete an an empty statement response to be
returned from execute.
This is the logic that is used by the PG JDBC driver for connection.isValid.