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
This commit is contained in:
1 parent
c559a119ac
commit
efa6379b92
1 file changed
+1
-1
@@ -1016,7 +1016,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