We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.20.0
This is a bug introduced on v1.20.0. It works as expected on v1.19.0
v1.20.0
v1.19.0
This is the schema I was trying to create
ALTER TABLE some_table ADD COLUMN my_columns custom_enum_type[] NOT NULL;
sqlc generated the model for the above table as follows
type SomeTable struct { // ... other columns MyColumns CustomEnumType }
But since my_columns is an array I expected MyColumns field to be []CustomEnumType. I have created a sample on sqlc playground.
my_columns
MyColumns
[]CustomEnumType
No response
{ "version": "1", "packages": [ { "path": "db", "engine": "postgresql", "schema": "query.sql", "queries": "query.sql" } ] }
https://play.sqlc.dev/p/6310bb377a5dede9cb442c99ced56ef83e97414bb4b8e3dc97edb38191cf8477
Linux
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
@roskee This problem has already been solved by #2572 (not yet released)
Sorry, something went wrong.
Okay. I am closing the issue.
No branches or pull requests
Version
1.20.0
What happened?
This is the schema I was trying to create
sqlc generated the model for the above table as follows
But since
my_columns
is an array I expectedMyColumns
field to be[]CustomEnumType
.I have created a sample on sqlc playground.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
Playground URL
https://play.sqlc.dev/p/6310bb377a5dede9cb442c99ced56ef83e97414bb4b8e3dc97edb38191cf8477
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: