From a5c00e859192635ccfa5909476078ffd47b49af1 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Fri, 18 Oct 2024 23:13:36 -0700 Subject: [PATCH] fix: clippy --- src/sql/src/parsers/alter_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/src/parsers/alter_parser.rs b/src/sql/src/parsers/alter_parser.rs index 0fbfc69025..b6db219626 100644 --- a/src/sql/src/parsers/alter_parser.rs +++ b/src/sql/src/parsers/alter_parser.rs @@ -46,7 +46,7 @@ impl ParserContext<'_> { let location = if self.parser.parse_keyword(Keyword::FIRST) { Some(AddColumnLocation::First) } else if let Token::Word(word) = self.parser.peek_token().token { - if word.value.to_ascii_uppercase() == "AFTER" { + if word.value.eq_ignore_ascii_case("AFTER") { let _ = self.parser.next_token(); let name = Self::canonicalize_identifier(self.parse_identifier()?); Some(AddColumnLocation::After {