[SQL-CVS] r3403 - in SQLObject/trunk: docs sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2008-04-29 14:31:16
|
Author: phd
Date: 2008-04-29 08:30:40 -0600 (Tue, 29 Apr 2008)
New Revision: 3403
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/sqlbuilder.py
Log:
Fixed a bug N 1953896 : Limit doesn't work in sqlbuilder.Select.
Modified: SQLObject/trunk/docs/News.txt
===================================================================
--- SQLObject/trunk/docs/News.txt 2008-04-29 14:27:56 UTC (rev 3402)
+++ SQLObject/trunk/docs/News.txt 2008-04-29 14:30:40 UTC (rev 3403)
@@ -36,6 +36,8 @@
SQLObject 0.10.1
================
+* Fixed a bug: limit doesn't work in sqlbuilder.Select.
+
* A number of changes ported from `SQLObject 0.9.6`_.
SQLObject 0.10.0
Modified: SQLObject/trunk/sqlobject/sqlbuilder.py
===================================================================
--- SQLObject/trunk/sqlobject/sqlbuilder.py 2008-04-29 14:27:56 UTC (rev 3402)
+++ SQLObject/trunk/sqlobject/sqlbuilder.py 2008-04-29 14:30:40 UTC (rev 3403)
@@ -689,7 +689,7 @@
select += " ORDER BY %s" % sqlrepr(reverser(orderBy), db)
start, end = self.ops['start'], self.ops['end']
if self.ops['limit'] is not NoDefault:
- end = start + limit
+ end = start + self.ops['limit']
if start or end:
from dbconnection import dbConnectionForScheme
select = dbConnectionForScheme(db)._queryAddLimitOffset(select, start, end)
|