mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 15:59:03 +00:00
feat: add mysql show status statement (#1119)
Co-authored-by: Michael Ionov <michael@appdome.com>
This commit is contained in:
parent
bcecd853f7
commit
61089f977c
3 changed files with 66 additions and 0 deletions
|
@ -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()?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue