From: Oliver Jowett <oliver@opencloud.com>
To: bst <bst_co@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bit string type in PreparedStatement
Date: Fri, 15 Apr 2005 09:32:52 +1200
Message-ID: <425EE184.8060303@opencloud.com> (raw)
In-Reply-To: <20050414154508.66799.qmail@web50407.mail.yahoo.com>
References: <20050414154508.66799.qmail@web50407.mail.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, bst_co@yahoo.com
Subject: Re: Bit string type in PreparedStatement
In-Reply-To: <425EE184.8060303@opencloud.com>
References: <20050414154508.66799.qmail@web50407.mail.yahoo.com> <425EE184.8060303@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox