currval bug??

From: Gabriele Carteni <gabriele(dot)carteni(at)unile(dot)it>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: currval bug??
Date: 2004-12-21 18:31:01
Message-ID: 41C86BE5.2030501@unile.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!"

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-12-21 18:48:45 Re: currval bug??
Previous Message Peter Eisentraut 2004-12-21 15:08:22 Re: Patch to reduce the number of messages to translate