mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 15:04:04 +00:00
add support for SAVEPOINT statement (#438)
This commit is contained in:
parent
497a3b0e1b
commit
12a3e97ef3
3 changed files with 22 additions and 0 deletions
|
@ -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'") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue