Skip to content

Commit 80f2ec8

Browse files
CopilotPhenX
andcommitted
Add parentheses to Oracle MERGE ON clause
Co-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
1 parent 60a2311 commit 80f2ec8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PhenX.EntityFrameworkCore.BulkInsert.Oracle/OracleDialectBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public override string BuildMoveDataSql<T>(
5656
q.Append($" FROM {source}) {PseudoTableExcluded}");
5757
q.AppendLine();
5858

59-
q.Append("ON ");
59+
q.Append("ON (");
6060
q.AppendJoin(" AND ", matchColumns, (b, col) => b.Append($"{PseudoTableInserted}.{col} = {PseudoTableExcluded}.{col}"));
61-
q.AppendLine();
61+
q.AppendLine(")");
6262

6363
if (onConflictTyped.Update != null)
6464
{

0 commit comments

Comments
 (0)