Skip to content

Commit

Permalink
fix: multiple insert in SAP Hana (#10597)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Haeusle <>
  • Loading branch information
sagentac committed Jan 26, 2024
1 parent 7e85460 commit 1b34c9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/query-builder/InsertQueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,10 @@ export class InsertQueryBuilder<
// add VALUES expression
if (valuesExpression) {
if (
this.connection.driver.options.type === "oracle" &&
(
this.connection.driver.options.type === "oracle" ||
this.connection.driver.options.type === "sap"
) &&
this.getValueSets().length > 1
) {
query += ` ${valuesExpression}`
Expand Down

0 comments on commit 1b34c9a

Please sign in to comment.