Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 0E1BD9FB2C5 for ; Sun, 1 Oct 2006 18:25:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 39207-05 for ; Sun, 1 Oct 2006 21:25:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 1FFCE9FB2E8 for ; Sun, 1 Oct 2006 18:25:31 -0300 (ADT) Received: from 222-153-172-120.jetstream.xtra.co.nz ([222.153.172.120] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GU8oR-0005YL-Qe; Mon, 02 Oct 2006 10:25:29 +1300 Message-ID: <45203249.7070304@opencloud.com> Date: Sun, 01 Oct 2006 21:25:29 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Holger Schulz CC: pgsql-jdbc@postgresql.org Subject: Re: Bug extracting bit value References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/8 X-Sequence-Number: 15891 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