On 5/3/12 1:15 PM, John Fabiani wrote:
> 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.

Ok, that is definitely good to know. Thanks!
Paul
_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to