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 539 sql grammar delete and update limit #557

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Aug 28, 2023

The delete_stmt_limited and update_stmt_limited grammar uses the expr type, when used with bind parameters the compiler cannot resolve the type in SqlDelight.

Change to use already defined limiting_term, same as the compound_select_stmt

fixes #539

tested sql-psi snapshot with SqlDelight

sqldelight/sqldelight@master...griffio:sqldelight:tests-bind-arg-on-limit

The delete_stmt_limited and update_stmt_limited grammar uses the `expr` type, when used with bind parameters
the compiler cannot resolve the type in SqlDelight.

Change to use `limiting_term`, same as the compound_select_stmt

fixes sqldelight#539
@griffio griffio marked this pull request as ready for review August 28, 2023 12:35
@griffio griffio changed the title Fixes sql grammar delete and update limit Fix 539 sql grammar delete and update limit Aug 28, 2023
@AlecKazakova AlecKazakova merged commit ef3f8d3 into sqldelight:master Sep 19, 2023
1 check passed
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.

Delete statements with a limit throws a compiler error
2 participants