Re: Patch for Statement.getGeneratedKeys() - Mailing list pgsql-jdbc

From tivvpgsqljdbc@gtech-ua.com
Subject Re: Patch for Statement.getGeneratedKeys()
Date
Msg-id 478DCEAE.6030900@gtech-ua.com
Whole thread Raw
In response to Re: Patch for Statement.getGeneratedKeys()  (Ken Johanson <pg-user@kensystem.com>)
List 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.




pgsql-jdbc by date:

Previous
From: Ken Johanson
Date:
Subject: Re: Patch for Statement.getGeneratedKeys()
Next
From: "Albretch Mueller"
Date:
Subject: trying to connect to pg from within a local network