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