JDBC org.postresql.Driver

From: "Ian deSouza" <iandesouza(at)earthlink(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: JDBC org.postresql.Driver
Date: 2001-01-08 13:57:52
Message-ID: AHj66.1798$Bp.73981@newsread2.prod.itd.earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

I'm wondering if there could be a problem in the JDBC driver.

I'm calling:

preparedStatement.setObject(i, value);

where value is of type Boolean (with value false
below)and created the column associated with that
value as type BIT and I'm getting the following
exception when the preparedStatement is executed.

java.sql.SQLException: ERROR: zpbit_in: t is not a valid bitstring

at org.postgresql.Connection.ExecSQL(Connection.java:393)
at org.postgresql.jdbc2.Statement.execute(Statement.java:273)
at org.postgresql.jdbc2.Statement.executeUpdate(Statement.java:73)
at
org.postgresql.jdbc2.PreparedStatement.executeUpdate(PreparedStatement.java:
126)
at Database.insert(Database.java:205) (my code)
...

Any help would be appreciated.

Thanks, Ian

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 2001-01-08 14:27:27 Re: Re: Version 7.1 when??
Previous Message Gordan Bobic 2001-01-08 13:38:57 Re: Version 7.1 when??