changeset 2e458b2e9a6b in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=2e458b2e9a6b
description:
        Support window functions with SQLite backend

        issue7703
        review364231002
diffstat:

 CHANGELOG                          |  1 +
 trytond/backend/sqlite/database.py |  3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 70eb48aa2f0a -r 2e458b2e9a6b CHANGELOG
--- a/CHANGELOG Mon Nov 08 19:27:03 2021 +0100
+++ b/CHANGELOG Mon Nov 08 19:30:15 2021 +0100
@@ -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 -r 70eb48aa2f0a -r 2e458b2e9a6b trytond/backend/sqlite/database.py
--- a/trytond/backend/sqlite/database.py        Mon Nov 08 19:27:03 2021 +0100
+++ b/trytond/backend/sqlite/database.py        Mon Nov 08 19:30:15 2021 +0100
@@ -585,6 +585,9 @@
     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_]

Reply via email to