Open
Description
Version
1.24.0
What happened?
When SQLite SQL statement are parsed, the column name in alter table statement have a different case than the others.
The culprit seems to be the following code:
while in create table the column name is passed through indentifier function,
sqlc/internal/engine/sqlite/convert.go
Line 122 in 14e9d74
the alter table statement is not
sqlc/internal/engine/sqlite/convert.go
Lines 71 to 76 in 14e9d74
The problem that this will create is that is not possible to reference in an update statement the column added through ALTER TABLE statement
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
SQLite
What type of code are you generating?
Go