diff --git a/src/sql/src/parsers/alter_parser.rs b/src/sql/src/parsers/alter_parser.rs index 0fbfc69025e7..b6db219626b3 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 {