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:
@@ -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,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user