support sqlite's OR clauses in update statements (#1530)

This commit is contained in:
Ophir LOJKINE 2024-11-18 13:30:53 +01:00 committed by GitHub
parent a67a4f3cbe
commit 4c629e8520
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 59 additions and 26 deletions

View file

@ -465,6 +465,7 @@ fn parse_update_tuple_row_values() {
assert_eq!(
sqlite().verified_stmt("UPDATE x SET (a, b) = (1, 2)"),
Statement::Update {
or: None,
assignments: vec![Assignment {
target: AssignmentTarget::Tuple(vec![
ObjectName(vec![Ident::new("a"),]),