FCO / Red

A WiP ORM for Raku
Artistic License 2.0
70 stars 27 forks source link

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

Closed jonathanstowe closed 7 months ago

jonathanstowe commented 7 months ago

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

FCO commented 7 months ago

Thank you very much!

FCO commented 7 months ago

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