yjp 1 anno fa
parent
commit
cb012d9b26
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      framework/core/infrastructure/database/database.go

+ 1 - 1
framework/core/infrastructure/database/database.go

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