[teiid-issues] [JBoss JIRA] (TEIID-5744) Teiid pg does not handle empty prepared sql

Steven Hawkins (Jira) issues at jboss.org
Mon May 20 14:17:00 EDT 2019


     [ https://issues.jboss.org/browse/TEIID-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list