dabo Commit
Revision 6902
Date: 2011-10-16 12:34:17 -0700 (Sun, 16 Oct 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6902
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed a problem in the MM routines where the cursor was using its KeyField
instead of the 'other' tables pkCol.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2011-10-14 23:17:03 UTC (rev 6901)
+++ trunk/dabo/db/dCursorMixin.py 2011-10-16 19:34:17 UTC (rev 6902)
@@ -1149,7 +1149,7 @@
dabo.dbActivityLog.info("lookupPKWithAdd()
(failed to log SQL and PARAMS)")
aux.execute(sql, (val,))
if aux.RowCount:
- return aux.getPK()
+ return aux.getFieldVal(pkCol)
else:
# Add the record
sql = self._qMarkToParamPlaceholder("insert into %s
(%s) values (?)"
_______________________________________________
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]