Remove grouped_slice per IN_MAX

The usage of ``grouped_slice`` without size is deprecated since `=
ANY(ARRAY[%s])` is used for PostgreSQL and SQLite is used only for tests.

The ``Database.IN_MAX`` is replaced by ``backend.MAX_QUERY_PARAMS`` which is a
more accurate limit of the backend.
The SQLite limits is indeed SQLITE_MAX_EXPR_DEPTH so we use a empirical value.
This commit is contained in:
Cédric Krier
2026-03-22 21:05:26 +01:00
parent 0da67bce21
commit 5310b00496
98 changed files with 1799 additions and 2180 deletions
+5 -4
View File
@@ -1,17 +1,18 @@
# This file is part of trytond_gis. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.backend.postgresql.database import (
DatabaseDataError, DatabaseIntegrityError, DatabaseOperationalError,
DatabaseTimeoutError)
from trytond.backend.postgresql import (
MAX_QUERY_PARAMS, DatabaseDataError, DatabaseIntegrityError,
DatabaseOperationalError, DatabaseTimeoutError)
from .database import Database
from .table import TableHandler
__all__ = [
Database,
DatabaseIntegrityError,
DatabaseDataError,
DatabaseIntegrityError,
DatabaseOperationalError,
DatabaseTimeoutError,
MAX_QUERY_PARAMS,
TableHandler,
]