Support ANALYZE TABLE syntax (#285)

* Support analyze table

* Cleanup
This commit is contained in:
Daniël Heres 2020-12-28 18:08:32 +01:00 committed by GitHub
parent 17f2930885
commit 94ff46802c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 9 deletions

View file

@ -1639,6 +1639,18 @@ fn parse_explain_analyze_with_simple_select() {
);
}
#[test]
fn parse_simple_analyze() {
let sql = "ANALYZE TABLE t";
let stmt = verified_stmt(sql);
assert_eq!(
stmt,
Statement::Analyze {
table_name: ObjectName(vec![Ident::new("t")])
}
);
}
#[test]
fn parse_named_argument_function() {
let sql = "SELECT FUN(a => '1', b => '2') FROM foo";