refactor: use "USE" keyword (#785)

Co-authored-by: luofucong <luofucong@greptime.com>
This commit is contained in:
LFC
2022-12-23 14:29:47 +08:00
committed by GitHub
parent dc52a51576
commit 1daba75e7b
2 changed files with 4 additions and 5 deletions

View File

@@ -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 =