mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-21 14:40:18 +00:00
Add CREATE DATABASE test and parsing (#451)
* Add test * Fix CreateDatabse parsing * Linting * Cleanup for code style
This commit is contained in:
parent
d38c30e9ff
commit
803fd6c970
3 changed files with 44 additions and 5 deletions
|
@ -1521,6 +1521,8 @@ impl<'a> Parser<'a> {
|
|||
self.parse_create_virtual_table()
|
||||
} else if self.parse_keyword(Keyword::SCHEMA) {
|
||||
self.parse_create_schema()
|
||||
} else if self.parse_keyword(Keyword::DATABASE) {
|
||||
self.parse_create_database()
|
||||
} else {
|
||||
self.expected("an object type after CREATE", self.peek_token())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue