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

Don't emit "FOR UPDATE .." On SQLite #577

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

jonathanstowe
Copy link
Contributor

Rather than just ignore it like it does for other things it doesn't implement, SQLite throws an error with 'FOR UPDATE' on a select statement.

This just over-rides with an implementation that doesn't emit anything if there is a '.for'.

The test just checks it doesn't explode with .skip-update, I've confirmed the SQL generated for both Pg and SQLite visually.

Fixes the #576

Rather than just ignore it like it does for other things it doesn't
implement, SQLite throws an error with 'FOR UPDATE' on a select
statement.

This just over-rides with an implementation that doesn't emit anything
if there is a '.for'.

The test just checks it doesn't explode with .skip-update, I've
confirmed the SQL generated for both Pg and SQLite visually.
@FCO FCO merged commit 20afb07 into FCO:master Apr 15, 2024
1 check passed
@FCO
Copy link
Owner

FCO commented Apr 15, 2024

Thank you very much!

@FCO
Copy link
Owner

FCO commented Apr 15, 2024

I'll do a new release tomorrow (depending on the time I wake up it will be in n the morning or after work...

@jonathanstowe jonathanstowe deleted the issue-576 branch April 15, 2024 05:53
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.

2 participants