Skip to content

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

orisano added 3 commits July 16, 2023 00:32
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
@orisano orisano deleted the fix/#2120 branch July 27, 2023 01:29
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* fix(engine/sqlite): To lowercase ast.ResTarget.Name

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

fix sqlc-dev#2120

* test: add endtoend

* chore: v1.19.1
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