Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit071797f

Browse files
committed
Change tests to lowercase for esthetics.
1 parente5fbe30 commit071797f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎src/backend/parser/scan.l

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.6 1996/12/0305:06:14 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.7 1996/12/0317:01:35 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -164,20 +164,20 @@ other.
164164
if (keyword !=NULL) {
165165
return (keyword->value);
166166
}else {
167-
if (toupper(((char *)yytext)[0]) =='A' &&
168-
strcasecmp((char *)yytext,"AVG") ==0)
167+
if (tolower(((char *)yytext)[0]) =='a' &&
168+
strcasecmp((char *)yytext,"avg") ==0)
169169
yylval.str =pstrdup("avg");
170-
elseif (toupper(((char *)yytext)[0]) =='C' &&
171-
strcasecmp((char *)yytext,"COUNT") ==0)
170+
elseif (tolower(((char *)yytext)[0]) =='c' &&
171+
strcasecmp((char *)yytext,"count") ==0)
172172
yylval.str =pstrdup("count");
173-
elseif (toupper(((char *)yytext)[0]) =='M' &&
174-
strcasecmp((char *)yytext,"MAX") ==0)
173+
elseif (tolower(((char *)yytext)[0]) =='m' &&
174+
strcasecmp((char *)yytext,"max") ==0)
175175
yylval.str =pstrdup("max");
176-
elseif (toupper(((char *)yytext)[0]) =='M' &&
177-
strcasecmp((char *)yytext,"MIN") ==0)
176+
elseif (tolower(((char *)yytext)[0]) =='m' &&
177+
strcasecmp((char *)yytext,"min") ==0)
178178
yylval.str =pstrdup("min");
179-
elseif (toupper(((char *)yytext)[0]) =='S' &&
180-
strcasecmp((char *)yytext,"SUM") ==0)
179+
elseif (tolower(((char *)yytext)[0]) =='s' &&
180+
strcasecmp((char *)yytext,"sum") ==0)
181181
yylval.str =pstrdup("sum");
182182
elseyylval.str =pstrdup((char*)yytext);
183183
return (IDENT);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp