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:
gamife 2022-02-24 13:39:38 +08:00 committed by GitHub
parent 899f91b1f6
commit 0b5178d7e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 59 additions and 4 deletions

View file

@ -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
);