dabo Commit
Revision 4522
Date: 2008-09-16 18:21:39 -0700 (Tue, 16 Sep 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4522
Changed:
U trunk/dabo/db/dBackend.py
Log:
Fixed issue where cursor's data set could get lost because of bookkeeping
processes using the actual cursor, and not the AuxCursor.
Diff:
Modified: trunk/dabo/db/dBackend.py
===================================================================
--- trunk/dabo/db/dBackend.py 2008-09-10 15:44:51 UTC (rev 4521)
+++ trunk/dabo/db/dBackend.py 2008-09-17 01:21:39 UTC (rev 4522)
@@ -427,17 +427,17 @@
# No table specified, so no update checking is possible
return None
# This is the current description of the cursor.
+ auxCrs = cursor._getAuxCursor()
if not cursor.FieldDescription:
# A query hasn't been run yet; so we need to get one
- holdWhere = cursor._whereClause
- cursor.addWhere("1 = 0")
- cursor.execute(cursor.getSQL())
- cursor._whereClause = holdWhere
- descFlds = cursor.FieldDescription
+ holdWhere = auxCrs._whereClause
+ auxCrs.addWhere("1 = 0")
+ auxCrs.execute(cursor.getSQL())
+ auxCrs._whereClause = holdWhere
+ descFlds = cursor.FieldDescription = auxCrs.FieldDescription
# Get the raw version of the table
sql = "select * from %s where 1=0 " %
self.encloseNames(cursor.Table,
autoQuote=autoQuote)
- auxCrs = cursor._getAuxCursor()
auxCrs.execute( sql )
# This is the clean version of the table.
stdFlds = auxCrs.FieldDescription
_______________________________________________
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]