dabo Commit
Revision 6781
Date: 2011-08-16 05:26:38 -0700 (Tue, 16 Aug 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6781
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Changed the value returned by RowCount to 0 from 1 for the case where the
cursor has not yet been requeried. Logically it makes more sense, and we don't
rely on a value of -1 for this anywhere.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2011-08-13 10:01:04 UTC (rev 6780)
+++ trunk/dabo/db/dCursorMixin.py 2011-08-16 12:26:38 UTC (rev 6781)
@@ -2877,7 +2877,7 @@
try:
ret = len(self._records)
except AttributeError:
- ret = -1
+ ret = 0
return ret
_______________________________________________
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]