add support for SAVEPOINT statement (#438)

This commit is contained in:
Poonai 2022-03-13 12:59:26 +05:30 committed by GitHub
parent 497a3b0e1b
commit 12a3e97ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View file

@ -871,6 +871,16 @@ fn test_transaction_statement() {
);
}
#[test]
fn test_savepoint() {
match pg().verified_stmt("SAVEPOINT test1") {
Statement::Savepoint { name } => {
assert_eq!(Ident::new("test1"), name);
}
_ => unreachable!(),
}
}
#[test]
fn parse_comments() {
match pg().verified_stmt("COMMENT ON COLUMN tab.name IS 'comment'") {