From 834007b35338581ff8c345153c80d89d22b7bc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Nov 2021 19:30:15 +0100 Subject: [PATCH] Support window functions with SQLite backend issue7703 review364231002 --- CHANGELOG | 1 + trytond/backend/sqlite/database.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 5bfa6130e7..c9202a0da4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Support window functions with SQLite backend * Use JSONB to store Dict field on PostgreSQL backend Version 6.2.0 - 2021-11-01 diff --git a/trytond/backend/sqlite/database.py b/trytond/backend/sqlite/database.py index 9b03b24734..c76d43e6b8 100644 --- a/trytond/backend/sqlite/database.py +++ b/trytond/backend/sqlite/database.py @@ -585,6 +585,9 @@ class Database(DatabaseInterface): def has_multirow_insert(self): return True + def has_window_functions(self): + return sqlite.sqlite_version_info >= (3, 25, 0) + def sql_type(self, type_): if type_ in self.TYPES_MAPPING: return self.TYPES_MAPPING[type_]