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

Pavel Jbanov wrote:
> Sorry, gone unfinished. :/
> 
> The exception is:
> Caused by: org.postgresql.util.PSQLException: ???????????? Byte f
>     at
> org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByte(AbstractJdbc1ResultSet.java:244)

I'd need to see the untranslated exception message to be sure, but..

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



view thread (7+ messages)  latest in thread

Message-ID: <41F6C105.6000304@opencloud.com>
Permalink:  ../41F6C105.6000304@opencloud.com/
Also on:    postgresql.org/message-id/41F6C105.6000304@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, pavel.jbanov@shaw.ca
  Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
  In-Reply-To: <41F6C105.6000304@opencloud.com>
  References: <1106687911.20161.97.camel@localhost> <1106688054.20161.101.camel@localhost> <41F6C105.6000304@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