details:   https://code.tryton.org/tryton/commit/2c595c22e5dd
branch:    8.0
user:      Cédric Krier <[email protected]>
date:      Thu Jul 23 11:37:36 2026 +0200
description:
        Calculate the number of parameters in INSERT query using the columns 
list

        The column names list does not contain the create_uid nor create_date 
columns
        instead of columns list.

        Closes #14800
        (grafted from 090325cb8d9f26f30613a890a02c1c339b370082)
diffstat:

 trytond/trytond/model/modelsql.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7bed41e45860 -r 2c595c22e5dd trytond/trytond/model/modelsql.py
--- a/trytond/trytond/model/modelsql.py Thu Jun 11 21:30:46 2026 +0200
+++ b/trytond/trytond/model/modelsql.py Thu Jul 23 11:37:36 2026 +0200
@@ -1017,7 +1017,7 @@
                 vlist = (
                     s for s in grouped_slice(
                         vlist,
-                        backend.MAX_QUERY_PARAMS // (len(column_names) + 1)))
+                        backend.MAX_QUERY_PARAMS // (len(columns) + 1)))
             else:
                 vlist = ([v] for v in vlist)
 

Reply via email to