Skip to content

fix: cannot parse SQLite upsert statement #1732

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

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

hakobera
Copy link
Contributor

@hakobera hakobera commented Jul 8, 2022

fix #1728

upsert_clause definition in internal/engine/sqlite/parser/SQLiteParser.g4 is using EQ token, but it should be ASSIGN for setting value.

Need to regenerate parser code using ANTLR v4.
Updating to ANTLR v4.10.1 is not mandatory, but for maintenance perspective, I think it's better to use latest version.

I confirmed there is no change in generated code by sqlc.

@kyleconroy kyleconroy merged commit 36a415e into sqlc-dev:main Jul 10, 2022
@hakobera hakobera deleted the fix-sqlite-upsert branch July 10, 2022 12:03
jlisthood pushed a commit to jlisthood/sqlc that referenced this pull request Apr 28, 2023
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.

SQLite upsert does not work
2 participants