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