You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEsiths(
name TEXT
);
CREATETABLEjedi(
name TEXT
);
INSERT INTO siths (name)
SELECTjedi.nameFROM jedi
LEFT JOIN siths ONjedi.name=siths.name-- Multiple columns found with name nameWHEREsiths.name IS NULL;
Description
To resolve the column name in the column list here (name), it using the same function queryAvailable(). This behavior is not expected with a INSERT ... SELECT, the select query has no access to the table unless it is explicitly joined.
Unfortunately, you need this behavior when using ON CONFLICT SET UPDATE, in this case the table is exposed as old/new.
There is a workaround through: INSERT INTO siths AS notAvailable (name)
The text was updated successfully, but these errors were encountered:
Failing ANSI SQL
Description
To resolve the column name in the column list here
(name)
, it using the same functionqueryAvailable()
. This behavior is not expected with aINSERT ... SELECT
, the select query has no access to the table unless it is explicitly joined.Unfortunately, you need this behavior when using
ON CONFLICT SET UPDATE
, in this case the table is exposed asold/new
.There is a workaround through:
INSERT INTO siths AS notAvailable (name)
The text was updated successfully, but these errors were encountered: