Skip to content

Commit 2941291

Browse files
committed
Add test for OPEN statement
1 parent bf0036a commit 2941291

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/sqlparser_common.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15103,3 +15103,15 @@ fn parse_return() {
1510315103

1510415104
let _ = all_dialects().verified_stmt("RETURN 1");
1510515105
}
15106+
15107+
#[test]
15108+
fn test_open() {
15109+
let open_cursor = "OPEN Employee_Cursor";
15110+
let stmt = all_dialects().verified_stmt(open_cursor);
15111+
assert_eq!(
15112+
stmt,
15113+
Statement::Open(OpenStatement {
15114+
cursor_name: Ident::new("Employee_Cursor"),
15115+
})
15116+
);
15117+
}

0 commit comments

Comments
 (0)