feat: add support for except clause on wildcards (#745)

This commit is contained in:
Augusto Fotino 2022-12-05 16:03:59 -03:00 committed by GitHub
parent 5b53df97c4
commit b3688513eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 232 additions and 40 deletions

View file

@ -1277,7 +1277,12 @@ fn parse_pg_returning() {
pg_and_generic().verified_stmt("DELETE FROM tasks WHERE status = 'DONE' RETURNING *");
match stmt {
Statement::Delete { returning, .. } => {
assert_eq!(Some(vec![SelectItem::Wildcard(None),]), returning);
assert_eq!(
Some(vec![SelectItem::Wildcard(
WildcardAdditionalOptions::default()
),]),
returning
);
}
_ => unreachable!(),
};