Re: JDBC keygen select

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Mike Clements <mclements(at)actional(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC keygen select
Date: 2006-02-03 08:40:37
Message-ID: 43E31705.7060209@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Paolo Predonzani 2006-02-03 16:54:41 escapeQuotes causes faults in DatabaseMataData
Previous Message Dave Cramer 2006-02-02 19:38:08 Re: JDBC keygen select