Skip to content

Commit 1b34c9a

Browse files
authored
fix: multiple insert in SAP Hana (#10597)
Co-authored-by: Philipp Haeusle <>
1 parent 7e85460 commit 1b34c9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/query-builder/InsertQueryBuilder.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ export class InsertQueryBuilder<
459459
// add VALUES expression
460460
if (valuesExpression) {
461461
if (
462-
this.connection.driver.options.type === "oracle" &&
462+
(
463+
this.connection.driver.options.type === "oracle" ||
464+
this.connection.driver.options.type === "sap"
465+
) &&
463466
this.getValueSets().length > 1
464467
) {
465468
query += ` ${valuesExpression}`

0 commit comments

Comments
 (0)