Skip to content
This repository was archived by the owner on Dec 25, 2019. It is now read-only.

Commit 726ab5d

Browse files
committed
add test
1 parent 6f5a42d commit 726ab5d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/sqlparser_common.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3320,6 +3320,23 @@ fn parse_explain() {
33203320
);
33213321
}
33223322

3323+
#[test]
3324+
fn parse_flush() {
3325+
let ast = verified_stmt("FLUSH ALL SOURCES");
3326+
assert_eq!(
3327+
ast,
3328+
Statement::FlushAllSources,
3329+
);
3330+
3331+
let ast = verified_stmt("FLUSH SOURCE foo");
3332+
assert_eq!(
3333+
ast,
3334+
Statement::FlushSource {
3335+
name: ObjectName(vec![Ident::new("foo")])
3336+
}
3337+
);
3338+
}
3339+
33233340
fn parse_sql_statements(sql: &str) -> Result<Vec<Statement>, ParserError> {
33243341
all_dialects().parse_sql_statements(sql)
33253342
}

0 commit comments

Comments
 (0)