Change tests to lowercase for esthetics.
This commit is contained in:
parent
e5fbe3017c
commit
071797f539
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.6 1996/12/03 05:06:14 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.7 1996/12/03 17:01:35 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -164,20 +164,20 @@ other .
|
||||
if (keyword != NULL) {
|
||||
return (keyword->value);
|
||||
} else {
|
||||
if (toupper(((char *)yytext)[0]) == 'A' &&
|
||||
strcasecmp((char *)yytext,"AVG") == 0)
|
||||
if (tolower(((char *)yytext)[0]) == 'a' &&
|
||||
strcasecmp((char *)yytext,"avg") == 0)
|
||||
yylval.str = pstrdup("avg");
|
||||
else if (toupper(((char *)yytext)[0]) == 'C' &&
|
||||
strcasecmp((char *)yytext,"COUNT") == 0)
|
||||
else if (tolower(((char *)yytext)[0]) == 'c' &&
|
||||
strcasecmp((char *)yytext,"count") == 0)
|
||||
yylval.str = pstrdup("count");
|
||||
else if (toupper(((char *)yytext)[0]) == 'M' &&
|
||||
strcasecmp((char *)yytext,"MAX") == 0)
|
||||
else if (tolower(((char *)yytext)[0]) == 'm' &&
|
||||
strcasecmp((char *)yytext,"max") == 0)
|
||||
yylval.str = pstrdup("max");
|
||||
else if (toupper(((char *)yytext)[0]) == 'M' &&
|
||||
strcasecmp((char *)yytext,"MIN") == 0)
|
||||
else if (tolower(((char *)yytext)[0]) == 'm' &&
|
||||
strcasecmp((char *)yytext,"min") == 0)
|
||||
yylval.str = pstrdup("min");
|
||||
else if (toupper(((char *)yytext)[0]) == 'S' &&
|
||||
strcasecmp((char *)yytext,"SUM") == 0)
|
||||
else if (tolower(((char *)yytext)[0]) == 's' &&
|
||||
strcasecmp((char *)yytext,"sum") == 0)
|
||||
yylval.str = pstrdup("sum");
|
||||
else yylval.str = pstrdup((char*)yytext);
|
||||
return (IDENT);
|
||||
|
Loading…
Reference in New Issue
Block a user