pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roger Niederland <roger@niederland.com>
To: pgsql-jdbc@postgresql.org
Subject: query string on a prepared statement
Date: Wed, 24 Nov 2004 12:41:47 -0800
Message-ID: <001501c4d266$055d3c30$0c02010a@RogerPortable> (raw)



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





view thread (3+ messages)  latest in thread

Message-ID: <001501c4d266$055d3c30$0c02010a@RogerPortable>
Permalink:  ../001501c4d266$055d3c30$0c02010a@RogerPortable/
Also on:    postgresql.org/message-id/001501c4d266$055d3c30$0c02010a@RogerPortable

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: roger@niederland.com
  Subject: Re: query string on a prepared statement
  In-Reply-To: <001501c4d266$055d3c30$0c02010a@RogerPortable>
  References: <001501c4d266$055d3c30$0c02010a@RogerPortable>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox