mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
Generalize locking clause (#759)
Postgres supports more generalized locking clauses, for example: FOR UPDATE OF <table_name> SKIP LOCKED also, multiple locking clauses. Generalize the parser to support these. Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
6c545195e1
commit
fb02344131
7 changed files with 187 additions and 36 deletions
|
@ -466,7 +466,7 @@ fn parse_quote_identifiers_2() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
locks: vec![],
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ fn parse_quote_identifiers_3() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
locks: vec![],
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
@ -683,7 +683,7 @@ fn parse_simple_insert() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
locks: vec![],
|
||||
}),
|
||||
source
|
||||
);
|
||||
|
@ -741,7 +741,7 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
locks: vec![],
|
||||
}),
|
||||
source
|
||||
);
|
||||
|
@ -983,7 +983,7 @@ fn parse_substring_in_select() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
locks: vec![],
|
||||
}),
|
||||
query
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue