Skip to content

Commit 21994eb

Browse files
committed
fix(api): ensure DuckDB still works in "hacky" way
1 parent e0b3027 commit 21994eb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

ibis/backends/sql/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)