Problem with getBytes and TIME

From: Jon Swinth <jswinth(at)atomicpc(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Problem with getBytes and TIME
Date: 2002-08-09 19:04:58
Message-ID: 200208091905.g79J4wX03922@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Using latest posted devpgjdbc2.jar with PostgreSQL 7.2.1. Client is JBoss
(www.jboss.org) In the latest version of JBoss, they switched from calling
ResultSet.getObject() to ResultSet.getBytes(). This works fine for most
column types except TIME. When JBoss tries to deserilize a TIME column from
ResultSet.getBytes() it runs into the following error:
java.io.StreamCorruptedException: InputStream does not contain a serialized
object.

Any work around for this besides changing the definition of the columns?

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message bvol 2002-08-10 02:41:58 help with inserting data on postgresql on tomcat4
Previous Message Chris White 2002-08-09 15:58:50 Re: Can I check if a db connection is working?