Re: JDBC + ENUM + NULL Insert == - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: JDBC + ENUM + NULL Insert ==
Date
Msg-id CADK3HHLex5j0rj2g+wBffBGNrpN9ga9Q9cm86P+rW1LVQJOefg@mail.gmail.com
Whole thread Raw
In response to JDBC + ENUM + NULL Insert ==  (Marc Fournier <mfournier@sd63.bc.ca>)
List pgsql-jdbc
Marc,

What would be useful is a test case to see exactly what you are doing. However the JDBC API setNull(parameterIndex, type) does actually require a type. 

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Fri, Feb 22, 2013 at 6:28 PM, Marc Fournier <mfournier@sd63.bc.ca> wrote:

We implemented the 'unspecified' solution to allow us to use ENUMs, but when we try and enter a NULL value through JDBC to an ENUM field, we get the an error about not being able to insert a varchar into an ENUM …

but NULL isn't varchar or anything else … so why are we getting that sort of message, and is there some way to fix?





--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Marc Fournier
Date:
Subject: JDBC + ENUM + NULL Insert ==
Next
From: Maz Mohammadi
Date:
Subject: Re: can't access through SSL