mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 13:40:22 +00:00
Improve support for cursors for SQL Server (#1831)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
483394cd1a
commit
a464f8e8d7
7 changed files with 289 additions and 20 deletions
|
@ -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"),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue