Skip to content
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

fix(engine/sqlite): To lowercase ast.ResTarget.Name #2433

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

orisano
Copy link
Contributor

@orisano orisano commented Jul 11, 2023

The SQLite engine lowercases ast.ResTarget.Name to match the behavior of pg_query.

fix #2120

@orisano
Copy link
Contributor Author

orisano commented Jul 11, 2023

@kyleconroy Should I make it lowercase to match pg_query's behavior but retain the original identifier?

I think this is necessary for issues like the following.
#2392

I don't think pg_query can handle the following issue.
#2346

The SQLite engine lowercases ast.ResTarget.Name to match the behavior of pg_query.

fix sqlc-dev#2120
@kyleconroy kyleconroy merged commit 7ff8e6f into sqlc-dev:main Jul 26, 2023
7 checks passed
@orisano orisano deleted the fix/#2120 branch July 27, 2023 01:29
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Column does not exist with sqlite engine
2 participants