Re: Why is bool == java.sql.Types.BIT ??

From: Kris Jurka <books(at)ejurka(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Why is bool == java.sql.Types.BIT ??
Date: 2005-11-23 18:41:52
Message-ID: Pine.BSO.4.61.0511231340310.14387@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 23 Nov 2005, Thomas Kellerer wrote:

> I noticed that table columns that are defined as "bool" (Postgres datatype)
> are reported as java.sql.Types.BIT through DatabaseMetadata (or
> ResultSetMetaData).
>
> Is there any valid reason why they are not reported as
> java.sql.Types.BOOLEAN?
>

Because BOOLEAN is only available to JDBC3. Our driver still supports
JDBC2 so we use BIT. BOOLEAN and BIT are the same thing as far as we can
tell.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2005-11-23 19:44:52 Re: BUG #2060: Issue with Data base connection
Previous Message Andres Ledesma 2005-11-23 18:23:50 Re: Why is bool == java.sql.Types.BIT ??