Re: Bit string type in PreparedStatement

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: bst <bst_co(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bit string type in PreparedStatement
Date: 2005-04-14 21:32:52
Message-ID: 425EE184.8060303@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

bst wrote:

> CREATE TABLE test (a BIT(8));

> How can I set bit string field in PreparedStatement?

As far as I can tell, there's no standard way to do this; the JDBC spec
thinks BIT is just like BOOLEAN.

You could use setString() and an explicit cast to bit(8) in your query,
perhaps..

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alan Stange 2005-04-14 23:53:36 Re: process large tables
Previous Message Nelson Arapé 2005-04-14 20:50:21 Re: process large tables