dabo Commit
Revision 6223
Date: 2010-11-26 16:47:02 -0800 (Fri, 26 Nov 2010)
Author: Johnf
Trac: http://trac.dabodev.com/changeset/6223

Changed:
U   trunk/dabo/db/dbPostgreSQL.py

Log:
made a change to the way the rollback was being called based on a suggestion 
from Jacek Ka?\197?\130ucki who experienced issues with losing a transaction.

Diff:
Modified: trunk/dabo/db/dbPostgreSQL.py
===================================================================
--- trunk/dabo/db/dbPostgreSQL.py       2010-11-27 00:20:12 UTC (rev 6222)
+++ trunk/dabo/db/dbPostgreSQL.py       2010-11-27 00:47:02 UTC (rev 6223)
@@ -178,7 +178,8 @@
                        pk = r["isprimary"]
                        fieldType = fldTypeDict.get(fldType, '?')
                        fields.append((name, fieldType, pk))
-               cursor.execute('rollback')
+               #cursor.execute('rollback')
+               self.rollbackTransaction(cursor)
                return tuple(fields)
 
 



_______________________________________________
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/[email protected]

Reply via email to