db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta Satoor" <msat...@gmail.com>
Subject Re: Inserting NULL values with the embedded driver
Date Wed, 06 Sep 2006 16:04:50 GMT

The url at following posting
same problem and it was resolved by sending the type id as
java.sql.Types.VARCHAR in setNull() method.


On 9/6/06, Robert Enyedi <robert.enyedi@intland.com> wrote:
> I have an application that runs on Derby with the network JDBC driver.
> When I switch to the embedded JDBC driver my aplication fails because I
> receive the following exception when inserting a NULL value in a VARCHAR
> field:
> "An attempt was made to get a data value of type 'VARCHAR' from a data
> value of type '0'."
> Did anyone encounter such a strange error?
> Regards,
> Robert

View raw message