Implement ON CONFLICT and RETURNING (#666)

* Implement RETURNING on INSERT/UPDATE/DELETE

* Implement INSERT ... ON CONFLICT

* Fix tests

* cargo fmt

* tests: on conflict and returning

Co-authored-by: gamife <gamife9886@gmail.com>
This commit is contained in:
main() 2022-11-11 22:15:31 +01:00 committed by GitHub
parent ae1c69034e
commit 814367a6ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 250 additions and 8 deletions

View file

@ -814,6 +814,7 @@ fn parse_update_with_joins() {
assignments,
from: _from,
selection,
returning,
} => {
assert_eq!(
TableWithJoins {
@ -869,6 +870,7 @@ fn parse_update_with_joins() {
}),
selection
);
assert_eq!(None, returning);
}
_ => unreachable!(),
}