mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 10:41:18 +02:00
Remove duplicate patch for COUNT fix.
This commit is contained in:
parent
9005a38bdb
commit
64397b758f
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.7 1996/12/03 17:01:35 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.8 1996/12/04 14:23:11 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -164,22 +164,7 @@ other .
|
|||||||
if (keyword != NULL) {
|
if (keyword != NULL) {
|
||||||
return (keyword->value);
|
return (keyword->value);
|
||||||
} else {
|
} else {
|
||||||
if (tolower(((char *)yytext)[0]) == 'a' &&
|
yylval.str = pstrdup((char*)yytext);
|
||||||
strcasecmp((char *)yytext,"avg") == 0)
|
|
||||||
yylval.str = pstrdup("avg");
|
|
||||||
else if (tolower(((char *)yytext)[0]) == 'c' &&
|
|
||||||
strcasecmp((char *)yytext,"count") == 0)
|
|
||||||
yylval.str = pstrdup("count");
|
|
||||||
else if (tolower(((char *)yytext)[0]) == 'm' &&
|
|
||||||
strcasecmp((char *)yytext,"max") == 0)
|
|
||||||
yylval.str = pstrdup("max");
|
|
||||||
else if (tolower(((char *)yytext)[0]) == 'm' &&
|
|
||||||
strcasecmp((char *)yytext,"min") == 0)
|
|
||||||
yylval.str = pstrdup("min");
|
|
||||||
else if (tolower(((char *)yytext)[0]) == 's' &&
|
|
||||||
strcasecmp((char *)yytext,"sum") == 0)
|
|
||||||
yylval.str = pstrdup("sum");
|
|
||||||
else yylval.str = pstrdup((char*)yytext);
|
|
||||||
return (IDENT);
|
return (IDENT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" XXX standard disclaimer belongs here....
|
||||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.2 1996/12/03 05:06:35 momjian Exp $
|
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.3 1996/12/04 14:23:16 momjian Exp $
|
||||||
.TH "CREATE AGGREGATE" SQL 11/05/95 Postgres95 Postgres95
|
.TH "CREATE AGGREGATE" SQL 11/05/95 Postgres95 Postgres95
|
||||||
.SH NAME
|
.SH NAME
|
||||||
create aggregate \(em define a new aggregate
|
create aggregate \(em define a new aggregate
|
||||||
@ -70,9 +70,6 @@ Aggregates also require two initial conditions, one for each
|
|||||||
transition function. These are specified and stored in the database
|
transition function. These are specified and stored in the database
|
||||||
as fields of type
|
as fields of type
|
||||||
.IR text .
|
.IR text .
|
||||||
.PP
|
|
||||||
For compatability, aggregates named "avg", "count", "max", "min",
|
|
||||||
and "sum" are lowercased on input.
|
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
This
|
This
|
||||||
.IR avg
|
.IR avg
|
||||||
|
Loading…
Reference in New Issue
Block a user