Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 297436332F7 for ; Wed, 28 Jul 2010 13:58:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 38308-02 for ; Wed, 28 Jul 2010 16:57:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 079BE6330D4 for ; Wed, 28 Jul 2010 13:57:59 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 05AF228458; Wed, 28 Jul 2010 12:57:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=uLpLZZ5MbHMEuFOye0OBo8TlN/g=; b=MohZeP tKJsM+DX7yNUMVGb6QbIyKNugtXEHkJy1x9S0ANeR5ACGbRedbf4PhihnG9FmXAS NSiPv/z9zasA+c7corcQEm1Tb2DWbWqUjZkZtRHqqEmRIBJDmFGWHfUyg0JiTjxf THRqikq3zGXuXbEhGjjZ3/ZfWJlXL4+JX0H0w= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id C3D2328444; Wed, 28 Jul 2010 12:57:58 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 96494A206; Wed, 28 Jul 2010 12:57:58 -0400 (EDT) Date: Wed, 28 Jul 2010 12:57:58 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Thomas Kellerer cc: pgsql-jdbc@postgresql.org Subject: Re: Wrong SqlType for boolean columns In-Reply-To: Message-ID: References: <20100728072658.14770@gmx.net> <4C4FF183.7040004@opencloud.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/120 X-Sequence-Number: 20785 On Wed, 28 Jul 2010, Thomas Kellerer wrote: > Oliver Jowett, 28.07.2010 10:59: >> It is not a bug. BOOLEAN does not exist in earlier JDBC versions, >> and drivers can map boolean types to either BIT or BOOLEAN. We pick >> BIT so we can build drivers for earlier JDBC versions. (BIT is >> something of a confusing type, as the mappings defined by JDBC for >> the JDBC BIT type only really make sense for a single boolean value, >> not a SQL BIT(n) type) > > Wouldn't it make sense to map this to BOOLEAN if the driver is built for > JDBC4 and to BIT if is built for JDBC3? > Actually BIT is JDBC2 and BOOLEAN is JDBC3. Since we no longer build JDBC2 releases for the latest drivers, we could make this change, I'm just not sure I see the point. I guess we'd get fewer of these complaints. Kris Jurka