Skip to content
Snippets Groups Projects
Commit 64397b75 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Remove duplicate patch for COUNT fix.

parent 9005a38b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -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 . ...@@ -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);
} }
} }
......
.\" 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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment