X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 791B23ABC40 for ; Tue, 21 Dec 2004 18:31:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10926-09 for ; Tue, 21 Dec 2004 18:31:08 +0000 (GMT) Received: from renoir.unile.it (renoir.unile.it [193.204.78.15]) by svr1.postgresql.org (Postfix) with ESMTP id 555E43ABC15 for ; Tue, 21 Dec 2004 18:31:07 +0000 (GMT) Received: from [193.204.74.244] ([193.204.74.244]) by renoir.unile.it (8.12.11/8.12.11) with ESMTP id iBLIU9L7025722; Tue, 21 Dec 2004 19:30:09 +0100 Message-ID: <41C86BE5.2030501@unile.it> Date: Tue, 21 Dec 2004 19:31:01 +0100 From: Gabriele Carteni User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: currval bug?? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.075 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/153 X-Sequence-Number: 11819 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!"