pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: RW Shore <rws228@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Array type error
Date: Tue, 15 Feb 2011 02:13:00 +1300
Message-ID: <4D592A5C.3090201@opencloud.com> (raw)
In-Reply-To: <AANLkTikr8cO6hujSSycMN1Mi7a9j3hDjTYQMtor+vfjH@mail.gmail.com>
References: <AANLkTi=LMp0MN9fdZ11sUfW+K8JjTHSXt=zRAKpx9vh7@mail.gmail.com>
	<4D591221.50103@opencloud.com>
	<AANLkTikr8cO6hujSSycMN1Mi7a9j3hDjTYQMtor+vfjH@mail.gmail.com>

On 15/02/11 01:52, RW Shore wrote:

> I understand the interchangability of bit(1) and boolean at a certain
> level, but IMO this is still an inconsistency at best if not an outright
> bug.

I didn't mean that the server-side types bit(1) and boolean were
interchangeable. I meant that at the JDBC level, Types.BIT and
Types.BOOLEAN mean the same thing - the boolean type. BIT doesn't really
map to the server-side bit(n) type at all.

BOOLEAN is only available in later JDBC versions, so the driver prefers
BIT when returning metadata.

Oliver



view thread (4+ messages)

Message-ID: <4D592A5C.3090201@opencloud.com>
Permalink:  ../4D592A5C.3090201@opencloud.com/
Also on:    postgresql.org/message-id/4D592A5C.3090201@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, rws228@gmail.com
  Subject: Re: Array type error
  In-Reply-To: <4D592A5C.3090201@opencloud.com>
  References: <AANLkTi=LMp0MN9fdZ11sUfW+K8JjTHSXt=zRAKpx9vh7@mail.gmail.com> <4D591221.50103@opencloud.com> <AANLkTikr8cO6hujSSycMN1Mi7a9j3hDjTYQMtor+vfjH@mail.gmail.com> <4D592A5C.3090201@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox