X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1BAB1D1B45F for ; Tue, 30 Dec 2003 22:52:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 79642-05 for ; Tue, 30 Dec 2003 18:51:24 -0400 (AST) Received: from mercury.wardbrook.com (217.79.104.122.adsl.griffin.net.uk [217.79.104.122]) by svr1.postgresql.org (Postfix) with ESMTP id EE2D6D1B432 for ; Tue, 30 Dec 2003 18:51:21 -0400 (AST) Received: from localhost (mercury.wardbrook.com [127.0.0.1]) by mercury.wardbrook.com (Postfix) with ESMTP id 6EA19532EB; Tue, 30 Dec 2003 22:47:44 +0000 (GMT) Received: by mercury.wardbrook.com (Postfix, from userid 505) id 45FA2532ED; Tue, 30 Dec 2003 22:47:43 +0000 (GMT) Received: from 192.168.1.219 (mercury.wardbrook.com [127.0.0.1]) by mercury.wardbrook.com (Postfix) with SMTP id 9A60D532EB; Tue, 30 Dec 2003 22:47:41 +0000 (GMT) Received: from 192.168.0.64 (SquirrelMail authenticated user johnsw) by mercury.wardbrook.com with HTTP; Tue, 30 Dec 2003 22:47:41 -0000 (GMT) Message-ID: <1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com> In-Reply-To: <32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se> References: <3FF1C0EE.4010107@dsv.su.se> <32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se> Date: Tue, 30 Dec 2003 22:47:41 -0000 (GMT) Subject: Re: getGeneratedKeys() From: "John Sidney-Woollett" To: henr-and@dsv.su.se Cc: books@ejurka.com, pgsql-jdbc@postgresql.org Reply-To: johnsw@wardbrook.com User-Agent: SquirrelMail/1.4.2 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by AMaViS 0.3.12 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/198 X-Sequence-Number: 8934 Can you do the insert using a function instead, and return the currval on the underlying sequence? John henr-and@dsv.su.se said: > >> This method has not been implemented and most likely will not be >> implemented anytime soon. First it is unclear to me what it means by >> auto-generated keys. Does it mean just things like serial or anything >> that a before insert trigger does to modify the row? > > In my case it's a serial. I want to get the id-number that my insert > generates. > MySQL's JDBC-driver has implemented the method. > > -- > Henrik > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >