Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group