Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group