Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
64397b75
Commit
64397b75
authored
Dec 04, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate patch for COUNT fix.
parent
9005a38b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
21 deletions
+3
-21
src/backend/parser/scan.l
src/backend/parser/scan.l
+2
-17
src/man/create_aggregate.l
src/man/create_aggregate.l
+1
-4
No files found.
src/backend/parser/scan.l
View file @
64397b75
...
@@ -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);
}
}
}
}
...
...
src/man/create_aggregate.l
View file @
64397b75
.\" 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment