currval bug?? - Mailing list pgsql-jdbc

From Gabriele Carteni
Subject currval bug??
Date
Msg-id 41C86BE5.2030501@unile.it
Whole thread Raw
Responses Re: currval bug??  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hi all,
i have recently upgraded my development environment:
FROM postgresql 7.4 TO postgresql 8.0beta5
FROM jdk1.4 TO jdk1.5
FROM pg74.215.jdbc3.jar TO pg80b1.308.jdbc3.jar

now, i have a FRUSTRATING bug:

With this query (which works fine with previous pg74jdbc):

*insert into tablename (fieldname) values ('testvalue');select
currval('tablename_id_seq');*

this exeception was throwed:

*org.postgresql.util.PSQLException: No results were returned by the query.*

Obviously the query has to return a result.

Any idea?
thanks!!
gaboc

--
_____________________________________________________________

"Microsoft isn't the answer. Microsoft is the question, and my answer is no!"


pgsql-jdbc by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Patch to reduce the number of messages to translate
Next
From: Kris Jurka
Date:
Subject: Re: currval bug??