dabo Commit
Revision 6607
Date: 2011-05-27 17:29:01 -0700 (Fri, 27 May 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6607
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
seek(..., near=True) worked correctly except in the case where we were seeking
a value greater than that of the last row, in which case it would stick the
record pointer on the first row instead of the last row. Fixed.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2011-05-27 23:52:45 UTC (rev 6606)
+++ trunk/dabo/db/dCursorMixin.py 2011-05-28 00:29:01 UTC (rev 6607)
@@ -2031,7 +2031,7 @@
try:
ret = sortList[numSmaller][1]
except IndexError:
- ret = 0
+ ret = len(sortList) - 1
if movePointer and ret > -1:
# Move the record pointer
self.RowNumber = 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]