-
Notifications
You must be signed in to change notification settings - Fork 813
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
sqlite ALTER TABLE ADD COLUMN without type name panics #3375
Labels
bug
Something isn't working
Comments
dvob
added
bug
Something isn't working
triage
New issues that hasn't been reviewed
labels
May 10, 2024
It works if you set the type explicitly:
|
dvob
changed the title
sqlite ALTER TABLE ADD COLUMN with generated columns and json functions panics
sqlite ALTER TABLE ADD COLUMN without type name panics
May 12, 2024
It's not related to generated columns or json. In general |
dvob
added a commit
to dvob/sqlc
that referenced
this issue
May 12, 2024
Use type name 'any' for ALTER TABLE t1 ADD COLUMN c1 where no type name for c1 is provided. This is the same logic as for CREATE TABLE. Fixes sqlc-dev#3375
kyleconroy
pushed a commit
to dvob/sqlc
that referenced
this issue
Nov 25, 2024
Use type name 'any' for ALTER TABLE t1 ADD COLUMN c1 where no type name for c1 is provided. This is the same logic as for CREATE TABLE. Fixes sqlc-dev#3375
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.26.0
What happened?
sqlc panics after i've added a migration which adds a generated column which uses a json function
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/f925d1924e8a01e5ebb440040403c046229225dfd1e42b5f0fb6d839b0d9d3e2
What operating system are you using?
Linux
What database engines are you using?
SQLite
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: