when using 'WITH', errors me relation 'WITH NAME' does not exist
#3543
Unanswered
PorcoRosso85
asked this question in
Q&A
Replies: 1 comment
-
I just bumped into the same thing. I was able to reproduce the error in a simpler example: with hello as (
select 1 as t
)
select *
from hello
where hello.t = 1; ^ This is fine, but nest it into a FROM clause: select *
from (
with hello as (
select 1 as t
)
select *
from hello
where hello.t = 1
) j;
It's a silly query but reproduces the issue. Both queries execute fine against my Postgres instance. There may be some shenanigans to make sqlc happy with it, but unclear what 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If anyone also encount same question and tells me it, I'm so glad.
db/query.sql:102:1: relation "closure" does not exist
Beta Was this translation helpful? Give feedback.
All reactions