|
|
@@ -388,12 +388,12 @@ func InsertBatch(executor Executor, executeParams *sql.InsertBatchExecuteParams)
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- values := make([][]any, 0)
|
|
|
+ values := make([]any, 0)
|
|
|
for _, tableRow := range executeParams.TableRowBatch {
|
|
|
values = append(values, tableRow.Values())
|
|
|
}
|
|
|
|
|
|
- _, err = executor.ExecuteRawSqlTemplate(sql.InsertTpl, executeParamsMap, values)
|
|
|
+ _, err = executor.ExecuteRawSqlTemplate(sql.InsertTpl, executeParamsMap, values...)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|