Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "j(dot)random(dot)programmer" <javadesigner(at)yahoo(dot)com>
Cc: pg(at)fastcrypt(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT
Date: 2005-12-21 07:26:54
Message-ID: 43A903BE.3060405@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Oliver Jowett wrote:
> Oliver Jowett wrote:
>
>> or (nonstandard):
>>
>> INSERT INTO foo(bit_val) VALUES (?::bit(5))
>
>
> Actually, this doesn't appear to work. The CAST variant works fine, use
> that instead.

Bah, I'm really not having much luck with sending email before I've
completely checked things today, sorry about all the individual
corrections :/

CAST doesn't work either -- it seems there is no explicit cast from
varchar to bit(n) at all.

So you can either mess with input functions directly, or write a custom
PGobject type, or turn on string autocasting.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Roland Walter 2005-12-21 09:17:41 Re: Feature request for setting the role with the URL
Previous Message Oliver Jowett 2005-12-21 07:24:57 Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT