Skip to content

Commit c1a9f1f

Browse files
committed
Add RETURN test with value
1 parent 5cf3b23 commit c1a9f1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/sqlparser_common.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -15032,5 +15032,8 @@ fn parse_set_time_zone_alias() {
1503215032

1503315033
#[test]
1503415034
fn parse_return() {
15035-
all_dialects().verified_stmt("RETURN");
15035+
let stmt = all_dialects().verified_stmt("RETURN");
15036+
assert_eq!(stmt, Statement::Return(ReturnStatement { value: None }));
15037+
15038+
let _ = all_dialects().verified_stmt("RETURN 1");
1503615039
}

0 commit comments

Comments
 (0)