Author: John Fabiani
Posted: 2012-05-03 at 15:15:47
On Thursday, May 03, 2012 11:05:23 AM Paul McNett wrote:
> We were talking about retrieving the pk before biz.save(), which is before
> the database knows anything about the new record.
I was just commenting on your post not on Dabo.
Postgres can provide the PK from a record before it is committed.
transaction
begin
insert record
retrieve PK (I will assume that is a serial data type).
insert record
retrieve PK
continue
commit or rollback
I realize that Dabo does not do it but I do it all the time with Dabo temp
cursors.
Johnf
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/3213873.BkIthnSFeq@linux-12