On Aug 23, 2007, at 10:51 PM, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

>  I don't know how much this matters to what is going on but you can  
> get the
> last gen'd pkid from postgres withing a transaction...at least in the
> example below it is ok...
>
> begin transaction;
> select * from mytable;
> insert into agcostslot (fieldname) values (somevalue);
> select currval('mytable_pkid_seq');

        Then the getLastInsertID() method of dbPostgreSQL.py needs to be  
modified, since it appears to be doing something very much like that,  
but John says it is failing due to the open transaction.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to