From 0f3587cf594a3a0e6f57bface5e4dd3a6b3ece9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 20 Jan 2022 19:03:19 +0100 Subject: [PATCH] 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 --- trytond/backend/sqlite/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/backend/sqlite/database.py b/trytond/backend/sqlite/database.py index 1a2db07962..1703181a5a 100644 --- a/trytond/backend/sqlite/database.py +++ b/trytond/backend/sqlite/database.py @@ -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 = {