Improve support for cursors for SQL Server (#1831)

Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
Andrew Harper 2025-05-01 23:25:30 -04:00 committed by GitHub
parent 483394cd1a
commit a464f8e8d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 289 additions and 20 deletions

View file

@ -15187,3 +15187,15 @@ fn parse_return() {
let _ = all_dialects().verified_stmt("RETURN 1");
}
#[test]
fn test_open() {
let open_cursor = "OPEN Employee_Cursor";
let stmt = all_dialects().verified_stmt(open_cursor);
assert_eq!(
stmt,
Statement::Open(OpenStatement {
cursor_name: Ident::new("Employee_Cursor"),
})
);
}