-
Notifications
You must be signed in to change notification settings - Fork 731
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
INSERT with SELECT causes *ast.ResTarget has nil name
error
#1646
Comments
Facing similar issue with below insert statement.
|
DO we have a resolution for this yet? I am facing a similar issue. |
Still happening in 1.21 https://play.sqlc.dev/p/c382168c73514e8695b0b7ceef7e567e666efe01767da1721f1e224a3039baa8 |
* fix(compiler): Pull in array information from analyzer Fixes #1532 * test(analyzer): Add testcase for #1574 * test: Added test for #1634 * test: Add test case for #1646 * test: Add test for #1714 * Fixes #1912 * test: Add case for #1916 * test: Add two test cases #1917 #1545 * test: Add case for #1979 * test: Add case for #1990
This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future. You can play around with the working example on the playground |
Version
1.13.0
What happened?
When trying to compile an
INSERT
/SELECT
withsqlc.narg
, I received the following error message:Relevant log output
Database schema
No response
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: