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.21.0
For the following query
-- name: FindAccountById :one SELECT sqlc.embed(a), sqlc.embed(locMain), sqlc.embed(locAlt) FROM Account a LEFT JOIN Locations locMain ON a.MainAddressId = locMain.Id LEFT JOIN Locations locAlt ON a.AlternateAddressId = locAlt.Id WHERE a.Id = ? LIMIT 1;
sqlc generates the error below.
It appears this is an issue specific to MySQL though, where identifiers are generally case sensitive.
# package db query.sql:23:1: unable to resolve table with "sqlc.embed(locmain)": relation "locmain" does not exist
No response
https://play.sqlc.dev/p/57a853fc5c03ece6498a05a4996a75d0f8e28a0a43e91bfcce27bc4ead25732b
Linux
MySQL
Go
The text was updated successfully, but these errors were encountered:
fix(compiler): Fix identifier comparison to be case insensitive
290bf69
close sqlc-dev#2745
1a45689
Successfully merging a pull request may close this issue.
Version
1.21.0
What happened?
For the following query
sqlc generates the error below.
It appears this is an issue specific to MySQL though, where identifiers are generally case sensitive.
Relevant log output
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/57a853fc5c03ece6498a05a4996a75d0f8e28a0a43e91bfcce27bc4ead25732b
What operating system are you using?
Linux
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: