X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 594B19DCDFF for ; Fri, 3 Feb 2006 04:40:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34311-04 for ; Fri, 3 Feb 2006 04:40:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (serval.logix-tt.com [213.239.221.42]) by postgresql.org (Postfix) with ESMTP id D85099DCAC2 for ; Fri, 3 Feb 2006 04:40:33 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (Me238.m.pppool.de [89.49.226.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 92B5824400F; Fri, 3 Feb 2006 09:40:35 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 75856181C209F; Fri, 3 Feb 2006 09:40:37 +0100 (CET) Message-ID: <43E31705.7060209@logix-tt.com> Date: Fri, 03 Feb 2006 09:40:37 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: Mike Clements , pgsql-jdbc@postgresql.org Subject: Re: JDBC keygen select References: <06B12D1D68BCCA4CB1F60BB4EA5097682B6AF8@pq-exch01.actional.com> <621D4E84-D67D-4FEE-A766-9966B82A1A9A@fastcrypt.com> In-Reply-To: <621D4E84-D67D-4FEE-A766-9966B82A1A9A@fastcrypt.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.126 required=5 tests=[AWL=0.126] X-Spam-Score: 0.126 X-Spam-Level: X-Archive-Number: 200602/18 X-Sequence-Number: 14615 Hi, Dave, Dave Cramer wrote: > Mike, > > Apparently there is a patch floating around that will implement INSERT > ... RETURNING > > So I'd say that it is more likely that number 1 gets implemented as it > would seem to me easier to do if we know exactly which column to return. I'd also prefer that second way, as it additionally allows returing more than one column (as a resultset), especially together with the multi-row insert extension that's also discussed. >> ps = itsDBConnection.prepareStatement(sql, {"myKeyColumn"}); ps = itsDBConnection.prepareStatement(sql+" RETURNING myKeyColumn"); HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org