Support SHOW FUNCTIONS (#620)

* support SHOW FUNCTIONS

* Update keywords.rs

* Update mod.rs

* Update sqlparser_common.rs

* Fix CI issues
This commit is contained in:
Justin Joyce 2022-09-26 07:33:53 +01:00 committed by GitHub
parent fccae77c5e
commit 495ab59aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 0 deletions

View file

@ -5569,3 +5569,13 @@ fn parse_cursor() {
_ => unreachable!(),
}
}
#[test]
fn parse_show_functions() {
assert_eq!(
verified_stmt("SHOW FUNCTIONS LIKE 'pattern'"),
Statement::ShowFunctions {
filter: Some(ShowStatementFilter::Like("pattern".into())),
}
);
}