pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Holger Schulz <hst1@online.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug extracting bit value
Date: Sun, 01 Oct 2006 21:25:29 +0000
Message-ID: <45203249.7070304@opencloud.com> (raw)
In-Reply-To: <bKGiHoZKhuw0FF0vBDRcMjj7JmqBR4ufH7XEELpMhkV@akmail>
References: <bKGiHoZKhuw0FF0vBDRcMjj7JmqBR4ufH7XEELpMhkV@akmail>

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..

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..

The confusing thing is that JDBC's Types.BIT really means "boolean" not 
"bit(n)" :(

-O



view thread (3+ messages)  latest in thread

Message-ID: <45203249.7070304@opencloud.com>
Permalink:  ../45203249.7070304@opencloud.com/
Also on:    postgresql.org/message-id/45203249.7070304@opencloud.com

 · 

reply

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, hst1@online.de
  Subject: Re: Bug extracting bit value
  In-Reply-To: <45203249.7070304@opencloud.com>
  References: <bKGiHoZKhuw0FF0vBDRcMjj7JmqBR4ufH7XEELpMhkV@akmail> <45203249.7070304@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