Re: Why is bool == java.sql.Types.BIT ?? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Why is bool == java.sql.Types.BIT ??
Date
Msg-id Pine.BSO.4.61.0511231340310.14387@leary.csoft.net
Whole thread Raw
In response to Why is bool == java.sql.Types.BIT ??  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: Why is bool == java.sql.Types.BIT ??
Re: Why is bool == java.sql.Types.BIT ??
List 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


pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Why is bool == java.sql.Types.BIT ??
Next
From: Andres Ledesma
Date:
Subject: Re: Why is bool == java.sql.Types.BIT ??