From: | "j(dot)random(dot)programmer" <javadesigner(at)yahoo(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Postgres JDBC driver (80b1.308) bug |
Date: | 2005-01-11 20:37:57 |
Message-ID: | 20050111203757.44975.qmail@web14225.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
The postgresql 8 version 308 JDBC driver is broken
(jar file: pg80b1.308.jdbc3.jar)
I am running this driver against postgres 7.4.
The System.out.println gives a stack overflow error
because
the Statement toString() is broken !!
The following code illustrates the problem. I'm amazed
that Statement.toString() would cause this kind of
problem --
aren't the driver writers testing toString() methods
of various
implementation classes ?
Best regards,
--j
------------- code
---------------------------------------
import java.sql.*;
import java.io.*;
public class foo
{
public static void main (String args[]) throws
Exception
{
Connection con = getConnection();
String where_stmt = "SELECT a, b, c from alltypes
WHERE id = 39";
Statement stmt = con.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
System.out.println(stmt); //<-------- ERROR HERE
}
static Connection getConnection() throws Exception {
//return a connection here, implement for your system
}
}
--------------------------- end ----------------------
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2005-01-11 21:05:37 | Re: Postgres JDBC driver (80b1.308) bug |
Previous Message | Kris Jurka | 2005-01-11 12:03:41 | Re: Bug report - supportsSavepoints |