mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 09:50:40 +00:00
refactor: use "USE" keyword (#785)
Co-authored-by: luofucong <luofucong@greptime.com>
This commit is contained in:
@@ -102,8 +102,7 @@ impl<'a> ParserContext<'a> {
|
||||
|
||||
Keyword::DROP => self.parse_drop(),
|
||||
|
||||
// TODO(LFC): Use "Keyword::USE" when we can upgrade to newer version of crate sqlparser.
|
||||
Keyword::NoKeyword if w.value.to_lowercase() == "use" => {
|
||||
Keyword::USE => {
|
||||
self.parser.next_token();
|
||||
|
||||
let database_name =
|
||||
|
||||
Reference in New Issue
Block a user