Set a max limit to sqlite backend

SQLite does not support offset without a limit. So we must use a negative value
to have no upper bound.

issue11126
review395291002
This commit is contained in:
Cédric Krier committed 2022-01-20 19:03:19 +01:00
1 parent 2563aed9b0
commit 0f3587cf59
1 file changed
+2 -1
+2 -1
View File
@@ -333,7 +333,8 @@ class Database(DatabaseInterface):
_local = threading.local()
_conn = None
flavor = Flavor(
paramstyle='qmark', function_mapping=MAPPING, null_ordering=False)
paramstyle='qmark', function_mapping=MAPPING, null_ordering=False,
max_limit=-1)
IN_MAX = 200
TYPES_MAPPING = {