[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Sebastian Krzyszkowiak
seba.dos1 at gmail.com
Sat Aug 6 08:20:19 UTC 2011
The following commit has been merged in the debian branch:
commit 3d691db83a1f235679acbcf7837ba0af3d0164cb
Author: Marco Trevisan (Treviño) <mail at 3v1n0.net>
Date: Tue Feb 22 20:23:44 2011 +0100
Revert back Daniele's fixes for limit
This fixes my bad removal in commit 5cc3ef0, that removed the fix made by Daniele Ricci in 5e5970b48
diff --git a/framework/subsystems/opimd/db_handler.py b/framework/subsystems/opimd/db_handler.py
index 070850c..dcde817 100644
--- a/framework/subsystems/opimd/db_handler.py
+++ b/framework/subsystems/opimd/db_handler.py
@@ -405,10 +405,9 @@ class DbHandler(object):
raise InvalidField("_limit should be an integer value")
if (limit_start != 0 or limit_end != -1):
- query = query + " LIMIT ?,?"
+ query = "SELECT * FROM (" + query + ") LIMIT ?,?"
params.extend([limit_start, limit_end])
-
return {'Query':query, 'Parameters':params}
def sanitize_result(self, raw):
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list