Sophie

Sophie

distrib > Mageia > 7 > aarch64 > media > core-release-src > by-pkgid > 3826820aad00d894d59b23c8438a1291 > files > 1

python-storm-0.20-9.mga7.src.rpm

diff -up ./storm/databases/sqlite.py.maxint ./storm/databases/sqlite.py
--- ./storm/databases/sqlite.py.maxint	2013-07-10 08:30:08.645141067 +0200
+++ ./storm/databases/sqlite.py	2013-07-10 08:37:17.063999847 +0200
@@ -48,12 +48,7 @@ compile = compile.create_child()
 @compile.when(Select)
 def compile_select_sqlite(compile, select, state):
     if select.offset is not Undef and select.limit is Undef:
-        if sys.platform.startswith('darwin'):
-            # On OS X sqlite doesn't like maxint as LIMIT. See also
-            # https://lists.ubuntu.com/archives/storm/2013-June/001492.html
-            select.limit = sys.maxint - 1
-        else:
-            select.limit = sys.maxint
+        select.limit = sys.maxint - 1
     statement = compile_select(compile, select, state)
     if state.context is SELECT:
         # SQLite breaks with (SELECT ...) UNION (SELECT ...), so we