Re: Patch for Statement.getGeneratedKeys()

From: tivvpgsqljdbc(at)gtech-ua(dot)com
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Patch for Statement.getGeneratedKeys()
Date: 2008-01-16 09:30:22
Message-ID: 478DCEAE.6030900@gtech-ua.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

BTW: How about next way:
extract table name as it is
parse + describe "select * from tableName".
optionally close unnamed statement (Protocol says it will still be
closed by next unnamed statement).
Read column names from there.
Call insert with returning column names.
It still has round-trip (or two, dunno if parse + describe needs two
round-trips), but it will take any insert statement.

P.S. Sorry if message will come twice - used wrong From: for the first one.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2008-01-16 09:34:06 Re: backup and restore
Previous Message Ken Johanson 2008-01-16 08:12:13 Re: Patch for Statement.getGeneratedKeys()

Browse pgsql-jdbc by date

  From Date Subject
Next Message Albretch Mueller 2008-01-16 14:22:19 trying to connect to pg from within a local network
Previous Message Ken Johanson 2008-01-16 08:12:13 Re: Patch for Statement.getGeneratedKeys()