pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Jbanov <pavel.jbanov@shaw.ca>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Date: Tue, 25 Jan 2005 15:15:30 -0700
Message-ID: <1106691330.20161.114.camel@localhost> (raw)
In-Reply-To: <41F6C105.6000304@opencloud.com>
References: <1106687911.20161.97.camel@localhost>
	<1106688054.20161.101.camel@localhost>
	<41F6C105.6000304@opencloud.com>

Right, I had bool there. I've changed it to bit, now it works.

Thanks.

On Tue, 2005-01-25 at 14:58, Oliver Jowett wrote:
> getByte() expects a numeric value (TINYINT, although SMALLINT/int2 is 
> the closest mapping in PostgreSQL). You appear to be trying to retrieve 
> a text/varchar (or possibly boolean) value that can't be parsed as a 
> numeric value.
> 
> (there might be a driver bug here -- the JDBC datatype conversion tables 
> indicate you can use getByte() on BIT/BOOLEAN, but I'm not sure what the 
> exact conversion should be)
> 
> -O

-- 
Pavel Jbanov
http://www.spicesoft.com/~pavel/




view thread (7+ messages)  latest in thread

Message-ID: <1106691330.20161.114.camel@localhost>
Permalink:  ../1106691330.20161.114.camel@localhost/
Also on:    postgresql.org/message-id/1106691330.20161.114.camel@localhost

 · 

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: pavel.jbanov@shaw.ca, oliver@opencloud.com
  Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
  In-Reply-To: <1106691330.20161.114.camel@localhost>
  References: <1106687911.20161.97.camel@localhost> <1106688054.20161.101.camel@localhost> <41F6C105.6000304@opencloud.com> <1106691330.20161.114.camel@localhost>

* 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