pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: j.random.programmer <javadesigner@yahoo.com>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT
Date: Wed, 21 Dec 2005 07:26:54 +0000
Message-ID: <43A903BE.3060405@opencloud.com> (raw)
In-Reply-To: <43A90349.5070906@opencloud.com>
References: <20051221044129.56245.qmail@web32013.mail.mud.yahoo.com>
	<43A902CC.7020404@opencloud.com>
	<43A90349.5070906@opencloud.com>

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



view thread (14+ messages)  latest in thread

Message-ID: <43A903BE.3060405@opencloud.com>
Permalink:  ../43A903BE.3060405@opencloud.com/
Also on:    postgresql.org/message-id/43A903BE.3060405@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, javadesigner@yahoo.com, pg@fastcrypt.com
  Subject: Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT
  In-Reply-To: <43A903BE.3060405@opencloud.com>
  References: <20051221044129.56245.qmail@web32013.mail.mud.yahoo.com> <43A902CC.7020404@opencloud.com> <43A90349.5070906@opencloud.com> <43A903BE.3060405@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