File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -607,9 +607,11 @@ def _build_upsert_from_table(
607607 matched = True ,
608608 then = sge .Update (
609609 expressions = [
610- sg .column (col , table = target_alias , quoted = quoted ).eq (
611- sg .column (col , table = source_alias , quoted = quoted )
612- )
610+ sg .column (
611+ col ,
612+ table = target_alias if self .name == "oracle" else None ,
613+ quoted = quoted ,
614+ ).eq (sg .column (col , table = source_alias , quoted = quoted ))
613615 for col in columns
614616 if col != on
615617 ]
@@ -620,7 +622,11 @@ def _build_upsert_from_table(
620622 then = sge .Insert (
621623 this = sge .Tuple (
622624 expressions = [
623- sg .column (col , table = target_alias , quoted = quoted )
625+ sg .column (
626+ col ,
627+ table = target_alias if self .name == "oracle" else None ,
628+ quoted = quoted ,
629+ )
624630 for col in columns
625631 ]
626632 ),
You can’t perform that action at this time.
0 commit comments