Add support for UPDATE ... LIMIT ... (#1991)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run

This commit is contained in:
Sven Sauleau 2025-08-08 12:19:35 +02:00 committed by GitHub
parent 67fca82495
commit 27544f9343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 36 additions and 1 deletions

View file

@ -15152,6 +15152,11 @@ impl<'a> Parser<'a> {
} else {
None
};
let limit = if self.parse_keyword(Keyword::LIMIT) {
Some(self.parse_expr()?)
} else {
None
};
Ok(Statement::Update {
table,
assignments,
@ -15159,6 +15164,7 @@ impl<'a> Parser<'a> {
selection,
returning,
or,
limit,
})
}