| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | pgsql-bugs | 2001-11-05 14:28:51 | Bug #509: read error on Win32 depending on network |
| Previous Message | pgsql-bugs | 2001-11-04 03:57:17 | Bug #508: update not atomic |