From deeb0ac66bef0c711734f509b4257729153ff3aa 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 (grafted from c792075308e92e56dc6c8c052fa58041c508c9aa) --HG-- branch : 6.0 --- 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 2bcc88de92..cf8c76fd13 100644 --- a/trytond/backend/sqlite/database.py +++ b/trytond/backend/sqlite/database.py @@ -322,7 +322,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 = {