Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column not found when using WITH ORDINALITY clause #1205

Closed
boecklim opened this issue Sep 21, 2021 · 0 comments · Fixed by #2156
Closed

Column not found when using WITH ORDINALITY clause #1205

boecklim opened this issue Sep 21, 2021 · 0 comments · Fixed by #2156
Labels

Comments

@boecklim
Copy link

Version

1.10.0

What happened?

When trying to generate a query using sqlc which includes WITH ORDINALITY then sqlc returns an error which says that the columns cannot be found.

Relevant log output

column "id" does not exist

Database schema

No response

SQL queries

SELECT td.id, td.rn FROM unnest(@foo::uuid[]) WITH ORDINALITY AS td(id, rn);

Configuration

No response

Playground URL

https://play.sqlc.dev/p/298dce5f371c9759abe7a5beb3d0e5b6ec2a4b4f9cb9cbf96a3d8e4404a7f744

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@boecklim boecklim added bug Something isn't working triage New issues that hasn't been reviewed labels Sep 21, 2021
@kyleconroy kyleconroy added 🔧 golang 📚 postgresql and removed triage New issues that hasn't been reviewed labels Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants