query string on a prepared statement - Mailing list pgsql-jdbc

From Roger Niederland
Subject query string on a prepared statement
Date
Msg-id 001501c4d266$055d3c30$0c02010a@RogerPortable
Whole thread Raw
Responses Re: query string on a prepared statement
List pgsql-jdbc

Using pg80b1.308.jdbc3.jar got the following: (worked with
pg74.215.jdbc3.jar)

Code:
results = stmt.executeQuery("SELECT currval('LoginLog_LoginLogID_seq')");

Stack Trace:
org.postgresql.util.PSQLException: Can't use query methods that take a query
string on a PreparedStatement.
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:203)
at
org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)

postgresql version: 8.0beta5

Thanks,
Roger



pgsql-jdbc by date:

Previous
From: Vadim Nasardinov
Date:
Subject: CTS 1.3.1 results
Next
From: Oliver Jowett
Date:
Subject: Re: query string on a prepared statement