mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 18:57:21 +00:00
feat: add FOR UPDATE/FOR SHARE clause (#418)
* feat: add FOR UPDATE/FOR SHARE clause * refactor: LockType enum variant name Co-authored-by: gamife <gamife9886@gmail.com>
This commit is contained in:
parent
899f91b1f6
commit
0b5178d7e7
6 changed files with 59 additions and 4 deletions
|
@ -292,6 +292,7 @@ fn parse_quote_identifiers_2() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
@ -417,6 +418,7 @@ fn parse_simple_insert() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
}),
|
||||
source
|
||||
);
|
||||
|
@ -469,6 +471,7 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
limit: None,
|
||||
offset: None,
|
||||
fetch: None,
|
||||
lock: None,
|
||||
}),
|
||||
source
|
||||
);
|
||||
|
@ -686,7 +689,8 @@ fn parse_substring_in_select() {
|
|||
order_by: vec![],
|
||||
limit: None,
|
||||
offset: None,
|
||||
fetch: None
|
||||
fetch: None,
|
||||
lock: None,
|
||||
}),
|
||||
query
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue