PreparedStatement & direct execution methods - Mailing list pgsql-jdbc

From Oliver Jowett
Subject PreparedStatement & direct execution methods
Date
Msg-id 40AFE94B.7060904@opencloud.com
Whole thread Raw
List pgsql-jdbc
Just noticed this in the JDBC spec (13.2.4):

   If any of the PreparedStatement execute methods is called with an SQL
   string as a parameter, an SQLException is thrown.

(don't you love how you have to look at both the spec and the javadoc to
discover the behaviour of particular methods?)

The current driver doesn't do this, and we've had at least one bug
report that turned out to be caused by calling an execute...()  method
with a string on a PreparedStatement.

Worth fixing?

-O


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: patch: streaming of bytea parameter values
Next
From: Kris Jurka
Date:
Subject: Re: patch: streaming of bytea parameter values