mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-18 21:20:15 +00:00
Add support for mysql 'SHOW CREATE VIEW' statement (#536)
This commit is contained in:
parent
dea7666086
commit
93e16e9864
3 changed files with 5 additions and 0 deletions
|
@ -3610,12 +3610,14 @@ impl<'a> Parser<'a> {
|
|||
Keyword::FUNCTION,
|
||||
Keyword::PROCEDURE,
|
||||
Keyword::EVENT,
|
||||
Keyword::VIEW,
|
||||
])? {
|
||||
Keyword::TABLE => Ok(ShowCreateObject::Table),
|
||||
Keyword::TRIGGER => Ok(ShowCreateObject::Trigger),
|
||||
Keyword::FUNCTION => Ok(ShowCreateObject::Function),
|
||||
Keyword::PROCEDURE => Ok(ShowCreateObject::Procedure),
|
||||
Keyword::EVENT => Ok(ShowCreateObject::Event),
|
||||
Keyword::VIEW => Ok(ShowCreateObject::View),
|
||||
keyword => Err(ParserError::ParserError(format!(
|
||||
"Unable to map keyword to ShowCreateObject: {:?}",
|
||||
keyword
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue