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

Commit64397b7

Browse files
committed
Remove duplicate patch for COUNT fix.
1 parent9005a38 commit64397b7

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

‎src/backend/parser/scan.l

Lines changed: 2 additions & 17 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.7 1996/12/03 17:01:35 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.8 1996/12/04 14:23:11 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -164,22 +164,7 @@ other.
164164
if (keyword !=NULL) {
165165
return (keyword->value);
166166
}else {
167-
if (tolower(((char *)yytext)[0]) =='a' &&
168-
strcasecmp((char *)yytext,"avg") ==0)
169-
yylval.str =pstrdup("avg");
170-
elseif (tolower(((char *)yytext)[0]) =='c' &&
171-
strcasecmp((char *)yytext,"count") ==0)
172-
yylval.str =pstrdup("count");
173-
elseif (tolower(((char *)yytext)[0]) =='m' &&
174-
strcasecmp((char *)yytext,"max") ==0)
175-
yylval.str =pstrdup("max");
176-
elseif (tolower(((char *)yytext)[0]) =='m' &&
177-
strcasecmp((char *)yytext,"min") ==0)
178-
yylval.str =pstrdup("min");
179-
elseif (tolower(((char *)yytext)[0]) =='s' &&
180-
strcasecmp((char *)yytext,"sum") ==0)
181-
yylval.str =pstrdup("sum");
182-
elseyylval.str =pstrdup((char*)yytext);
167+
yylval.str =pstrdup((char*)yytext);
183168
return (IDENT);
184169
}
185170
}

‎src/man/create_aggregate.l

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.2 1996/12/03 05:06:35 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.3 1996/12/04 14:23:16 momjian Exp $
44
.TH "CREATE AGGREGATE" SQL 11/05/95 Postgres95 Postgres95
55
.SH NAME
66
create aggregate\(em define a new aggregate
@@ -70,9 +70,6 @@ Aggregates also require two initial conditions, one for each
7070
transition function. These are specified and stored in the database
7171
as fields of type
7272
.IR text.
73-
.PP
74-
For compatability, aggregates named "avg", "count", "max", "min",
75-
and "sum" are lowercased on input.
7673
.SH EXAMPLE
7774
This
7875
.IR avg

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp