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:
Audun Skaugen 2022-12-13 23:19:07 +01:00 committed by GitHub
parent 6c545195e1
commit fb02344131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 187 additions and 36 deletions

View file

@ -1512,7 +1512,7 @@ fn parse_array_subquery_expr() {
limit: None,
offset: None,
fetch: None,
lock: None,
locks: vec![],
})),
expr_from_projection(only(&select.projection)),
);