You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relation does not exists when name is surrounded by ` character #3800
I'm using this sqlite3 command to export schema from the database: sqlite3 db/data.db '.schema authors' > ./db/schema.sql and it generates an sql schema where all table and column names are surrounded with a backtick character. This schema cannot be parsed by sqlc . Removing the backtick characters using command sed -i "s/\`//g" db/schema.sql allows sqlc to generate the code.
Relevant log output
# package db
db/query.sql:6:1: relation "authors" does not exist
Commenting here since it seems related to the same issue, potentially caused by #3657. I see the same issue with non-backtick-quoted identifiers in UPDATE statements.
I noticed that this issue is not present with 3657.patch reverted (ignoring testdata conflicts) on tag v1.28.0:
Activity
thomasquinn commentedon Jan 22, 2025
Commenting here since it seems related to the same issue, potentially caused by #3657. I see the same issue with non-backtick-quoted identifiers in
UPDATEstatements.I noticed that this issue is not present with 3657.patch reverted (ignoring testdata conflicts) on tag
v1.28.0:git apply -R 3657.patch --exclude="internal/endtoend/testdata/*"Version
1.28.0
Relevant log output
Database schema
SQL queries
Configuration
What operating system are you using?
macOS
What database engines are you using?
SQLite
What type of code are you generating?
Go
kaaax0815 commentedon Jun 12, 2025
I can verify that the issue still exists
Remove backticks in SQLite schema and queries