mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 13:58:15 +00:00
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:
parent
ae1c69034e
commit
814367a6ab
6 changed files with 250 additions and 8 deletions
|
@ -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!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue