feat: add mysql show status statement (#1119)

Co-authored-by: Michael Ionov <michael@appdome.com>
This commit is contained in:
Michael Ionov 2024-02-04 15:52:46 +02:00 committed by GitHub
parent bcecd853f7
commit 61089f977c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 66 additions and 0 deletions

View file

@ -7097,6 +7097,14 @@ impl<'a> Parser<'a> {
session,
global,
})
} else if self.parse_keyword(Keyword::STATUS)
&& dialect_of!(self is MySqlDialect | GenericDialect)
{
Ok(Statement::ShowStatus {
filter: self.parse_show_statement_filter()?,
session,
global,
})
} else {
Ok(Statement::ShowVariable {
variable: self.parse_identifiers()?,