case-insensitive comparison

This commit is contained in:
Alexander Kuzmenkov 2021-04-30 19:58:35 +03:00
parent 1b45284c17
commit 01b1440bd4

View File

@ -217,13 +217,13 @@ void ASTFunction::formatImplWithoutAlias(const FormatSettings & settings, Format
const char * operators[] =
{
"negate", "-",
"not", "NOT",
"not", "NOT ",
nullptr
};
for (const char ** func = operators; *func; func += 2)
{
if (strcmp(name.c_str(), func[0]) != 0)
if (strcasecmp(name.c_str(), func[0]) != 0)
{
continue;
}