Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A1F1A9FA48B for ; Mon, 30 Oct 2006 16:41:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 60679-10 for ; Mon, 30 Oct 2006 16:41:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id 56B5A9F946A for ; Mon, 30 Oct 2006 16:41:05 -0400 (AST) Received: (qmail 25021 invoked by uid 1112); 30 Oct 2006 20:41:04 -0000 Date: Mon, 30 Oct 2006 15:41:04 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Oliver Jowett cc: Holger Schulz , pgsql-jdbc@postgresql.org Subject: Re: Bug extracting bit value In-Reply-To: <45203249.7070304@opencloud.com> Message-ID: References: <45203249.7070304@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/145 X-Sequence-Number: 16028 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