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)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-07-23 11:37:36 +02:00
parent 04e4b187bc
commit 526519b6c9
+1 -1
View File
@@ -1017,7 +1017,7 @@ class ModelSQL(ModelStorage):
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)