Skip site navigation (1) Skip section navigation (2)

JDBC driver bug?? (setBinaryStream)

From: 畠中 晃弘 <hatanaka(at)4dd(dot)co(dot)jp>
To: pgsql-bugs(at)postgresql(dot)org
Subject: JDBC driver bug?? (setBinaryStream)
Date: 2001-11-05 11:38:00
Message-ID: 20011105202632.A024.HATANAKA@4dd.co.jp (view raw or flat)
Thread:
Lists: pgsql-bugs
I use PostgreSQL-7.1.3 and JDBC driver downloaded from http://jdbc.fastcrypt.com.
OS is Linux.

When I run program using "PreparedStatement.setBinaryStream", I met below exception.

Exception in thread "main" java.sql.SQLException: ERROR:  oidin: error in "........"
        at org.postgresql.core.QueryExecutor.execute(Unknown Source)
        at org.postgresql.Connection.ExecSQL(Unknown Source)
        at org.postgresql.jdbc2.Statement.execute(Unknown Source)
        at org.postgresql.jdbc2.Statement.executeUpdate(Unknown Source)
        at org.postgresql.jdbc2.PreparedStatement.executeUpdate(Unknown Source)

However this program is able to run safely with JDBC driver downloaded from
http://jdbc.postgresql.org.

I tried to download PostgreSQL-7.2beta, compile JDBC driver and run program,
however, I met the same exception.

I saw JDBC driver source, then thought "org.postgresql.jdbc2.PreparedStatement"
program might have bug. The statement 

connection.haveMinimumCompatibleVersion("7.2")

appear several times in that source, however I think these statement might
be replaced

connection.haveMinimumServerVersion("7.2")


Thanks.

--------------------------------------
Four-Dimensional Data, Inc. (in Japan)
Hatanaka, Akihiro.

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-11-05 14:28:51
Subject: Bug #509: read error on Win32 depending on network
Previous:From: pgsql-bugsDate: 2001-11-04 03:57:17
Subject: Bug #508: update not atomic

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group