mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
feat: add support for except clause on wildcards (#745)
This commit is contained in:
parent
5b53df97c4
commit
b3688513eb
7 changed files with 232 additions and 40 deletions
|
@ -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!(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue