[Nitro] question about postgresql.rb && last_insert_id and insert_sql

transfire at gmail.com transfire at gmail.com
Tue Oct 24 11:56:29 EDT 2006


Jonathan Buch wrote:
> The problem here is, that you have no way of telling after the insert,
> which oid has been selected.  The frontend has to know this, to identify
> the object.

If run in the same transaction as the insert, I'm pretty sure you can
do a select query on the index sequence and thus get the new id.

T.



More information about the Nitro-general mailing list