Re: BUG: Unable to bind a null value typed as a UUID in a PreparedStatement - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG: Unable to bind a null value typed as a UUID in a PreparedStatement
Date
Msg-id CAKFQuwYExm4G2Ejn6GDPjKuG-1Ayk8gvBiutrUpKn+QU76oX+Q@mail.gmail.com
Whole thread Raw
In response to BUG: Unable to bind a null value typed as a UUID in a PreparedStatement  (Rémi Aubel <remi.aubel@gmail.com>)
Responses Re: BUG: Unable to bind a null value typed as a UUID in a PreparedStatement  (Dave Cramer <davecramer@gmail.com>)
List pgsql-bugs
On Wed, Mar 28, 2018 at 6:26 AM, Rémi Aubel <remi.aubel@gmail.com> wrote:
I need to bind a UUID parameter which may be null in a statement like "select * from test table where ? is null or ? = c_uuid".
Whatever approach I use, the driver rejects my request with "ERROR: could not determine data type of parameter $1".
​[...]​
But in the current implementation of the driver, the PreparedStatement.setNull(int, int, String) delegates to setNull(int, int) so that specifying the type name has no effect.

​JDBC Driver bugs are off-topic for this list.  They should be reported on the project's GitHub site's Issues List.

David J.


pgsql-bugs by date:

Previous
From: Rémi Aubel
Date:
Subject: BUG: Unable to bind a null value typed as a UUID in a PreparedStatement
Next
From: Dave Cramer
Date:
Subject: Re: BUG: Unable to bind a null value typed as a UUID in a PreparedStatement