Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id AEA5C9FC17F for ; Thu, 18 Oct 2007 15:10:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 69680-05 for ; Thu, 18 Oct 2007 15:10:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mir3-fs.mir3.com (mail.mir3.com [72.11.241.14]) by postgresql.org (Postfix) with ESMTP id 33F379FC320 for ; Thu, 18 Oct 2007 15:10:16 -0300 (ADT) Received: MIR3-FS.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes by MIR3-FS.mir3.com; 18 Oct 2007 11:10:15 -0700 Subject: Re: Fw: postgresql experts please help From: Mark Lewis To: Kris Jurka Cc: Andrei Ilitchev , pgsql-jdbc@postgresql.org, Marina Vatkina In-Reply-To: References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com> <1192728857.6447.82.camel@archimedes> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Thu, 18 Oct 2007 11:10:14 -0700 Message-Id: <1192731014.6447.87.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/101 X-Sequence-Number: 17673 On Thu, 2007-10-18 at 13:41 -0400, Kris Jurka wrote: > > On Thu, 18 Oct 2007, Mark Lewis wrote: > > > You haven't disabled JDBC autocommit for this connection. That means > > that each statement gets executed in a separate transaction. > > > > Since currval is only valid within the scope of a single transaction, > > and you're executing your "select currval" from a separate transaction, > > that's why you can't see it. > > > > False. currval maintains state across transactions: Oops. I knew that-- not thinking straight this morning I guess :) I wish mailing list archives had take-backs.