From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: bit datatype and getObject()
Date: Wed, 24 Nov 2010 09:00:58 +0100
Message-ID: <icigo3$fs0$1@dough.gmane.org> (raw)
In-Reply-To: <4CEC8123.4030503@ttc-cmc.net>
References: <ichd9g$e1g$1@dough.gmane.org>
<4CEC8123.4030503@ttc-cmc.net>
dmp, 24.11.2010 04:06:
> It is true that the mapping is java.lang.Boolean for the bit(x), but
> there is another type in PostgreSQL to define a multi-bit type. Have
> you tried: bit varying(5) retrieval by getObject()? Because that type
> does map to java.lang.Object.
Correct.
The only thing I noticed is that it returns Types.OTHER as the datatype, not Types.BIT
But as I don't know if Types.BIT is meant to include "multi-bit" types I don't know if
that is correct or not.
> Either way isn't this a server issue on the mapping, not the JDBC?
I don't think so. psql displays this correctly.
Regards
Thomas
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: spam_eater@gmx.net
Subject: Re: bit datatype and getObject()
In-Reply-To: <icigo3$fs0$1@dough.gmane.org>
References: <ichd9g$e1g$1@dough.gmane.org> <4CEC8123.4030503@ttc-cmc.net> <icigo3$fs0$1@dough.gmane.org>
* 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