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
Does this also relate to following problem? I'm trying to do conditional insert
WITH
data (id, foo, bar) AS ( VALUES ($1, $2, $3) ),
insert_data AS (
SELECT
d.id,
u.id as userId,
d.bar
FROM data d JOIN users u ON d.foo = u.someField
)
INSERT INTO myTable(id, userId, bar)
SELECT * FROM insert_data
RETURNING *;
sqlc generate gives error: column "id" does not exist pointing to line d.id in insert_data's select
Activity
fix(resolve): fix resolving reference to CTEs
fix(resolve): fix resolving reference to CTEs
fix(resolve): fix resolving reference to CTEs
mbesida commentedon Mar 17, 2024
Does this also relate to following problem? I'm trying to do conditional insert
sqlc generategives error:column "id" does not existpointing to lined.idin insert_data's selectsimonklee commentedon Mar 24, 2024
I've been using a patched version of sqlc with my PR applied for a month and I haven't experienced any issues with it.
simonklee commentedon Mar 24, 2024
I think this is the same issue. Should be fairly easy to add the use-case as a regression to the test suite.
simonklee commentedon Mar 28, 2024
This should be re-opened given: 3f129e7
fix(resolve): fix resolving reference to CTEs
feat(compiler): Support subqueries in the FROM clause (second coming) (…
fix(resolve): fix resolving reference to CTEs
fix(resolve): fix resolving reference to CTEs
fix(resolve): fix resolving reference to CTEs (#1)
feat(compiler): Support subqueries in the FROM clause (sqlc-dev#3227)
feat(compiler): Support subqueries in the FROM clause (second coming) (…
feat(compiler): Support subqueries in the FROM clause (sqlc-dev#3227)
feat(compiler): Support subqueries in the FROM clause (second coming) (…