From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Holger Schulz <hst1@online.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug extracting bit value
Date: Mon, 30 Oct 2006 15:41:04 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0610301410390.2855@leary2.csoft.net> (raw)
In-Reply-To: <45203249.7070304@opencloud.com>
References: <bKGiHoZKhuw0FF0vBDRcMjj7JmqBR4ufH7XEELpMhkV@akmail>
<45203249.7070304@opencloud.com>
On Sun, 1 Oct 2006, Oliver Jowett wrote:
> Holger Schulz wrote:
>
>> When I extract a bit value by JDBC I get an Boolean Object - even for
>> bit(3)!
>
> That's a bit strange, if varbit(n) returns a custom PGobject I'd expect
> bit(n) to do the same..
Well, varbit only returns a bare PGobject not a custom implementation, so
it's rather useless. Any type the driver knows nothing about gets this,
so we could remove the bit behavior, but I'm not sure it's a clear winner.
>
> Again this is a type where there's no good JDBC mapping for it though ..
> maybe boolean[] would be right, but then you can also have real arrays of
> bools..
Right, this would be good for getObject, but setObject wouldn't know what
to do with it.
Kris Jurka
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: books@ejurka.com, oliver@opencloud.com, hst1@online.de
Subject: Re: Bug extracting bit value
In-Reply-To: <Pine.BSO.4.63.0610301410390.2855@leary2.csoft.net>
References: <bKGiHoZKhuw0FF0vBDRcMjj7JmqBR4ufH7XEELpMhkV@akmail> <45203249.7070304@opencloud.com> <Pine.BSO.4.63.0610301410390.2855@leary2.csoft.net>
* 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