pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Mike Clements <mclements@actional.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC keygen select
Date: Fri, 03 Feb 2006 09:40:37 +0100
Message-ID: <43E31705.7060209@logix-tt.com> (raw)
In-Reply-To: <621D4E84-D67D-4FEE-A766-9966B82A1A9A@fastcrypt.com>
References: <06B12D1D68BCCA4CB1F60BB4EA5097682B6AF8@pq-exch01.actional.com>
	<621D4E84-D67D-4FEE-A766-9966B82A1A9A@fastcrypt.com>

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



view thread (6+ messages)

Message-ID: <43E31705.7060209@logix-tt.com>
Permalink:  ../43E31705.7060209@logix-tt.com/
Also on:    postgresql.org/message-id/43E31705.7060209@logix-tt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: schabi@logix-tt.com, pg@fastcrypt.com, mclements@actional.com
  Subject: Re: JDBC keygen select
  In-Reply-To: <43E31705.7060209@logix-tt.com>
  References: <06B12D1D68BCCA4CB1F60BB4EA5097682B6AF8@pq-exch01.actional.com> <621D4E84-D67D-4FEE-A766-9966B82A1A9A@fastcrypt.com> <43E31705.7060209@logix-tt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox