Use the FILTER syntax with SQL aggregate functions

Closes #14199
This commit is contained in:
Cédric Krier
2025-08-27 10:17:31 +02:00
parent 3c82eeca33
commit b21d1497fa
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Use the FILTER syntax with SQL aggregate functions
* Use the EXISTS operator when using the 'where' operator in Many2One
* Redact sensitive values from the log (issue14220)
* Add multiple attribute to the buttons in the tree view
@@ -205,7 +205,7 @@ class Database(DatabaseInterface):
_has_proc = defaultdict(lambda: defaultdict(dict))
_extensions = defaultdict(dict)
_search_full_text_languages = defaultdict(dict)
flavor = Flavor(ilike=True)
flavor = Flavor(ilike=True, filter_=True)
TYPES_MAPPING = {
'SMALLINT': SQLType('INT2', 'INT2'),
+2 -1
View File
@@ -444,7 +444,8 @@ class Database(DatabaseInterface):
_list_cache_timestamp = {}
flavor = Flavor(
paramstyle='qmark', function_mapping=MAPPING, null_ordering=False,
max_limit=-1)
max_limit=-1,
filter_=sqlite.sqlite_version_info >= (3, 30, 0))
IN_MAX = 200
TYPES_MAPPING = {