diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-05-19 00:33:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-05-19 00:33:20 +0000 |
commit | 5ec847432362d905e71fedd1182cdd3bb10b3120 (patch) | |
tree | 2f6a473e8f29cea67861212540102516594678e1 /src/include/parser | |
parent | f61d70c2ac83b62b6d3458d3e46a71b9f1671e54 (diff) |
New comment. This func/column things has always confused me.
/*
* parse function
* This code is confusing because the database can accept
* relation.column, column.function, or relation.column.function.
* In these cases, funcname is the last parameter, and fargs are
* the rest.
*
* It can also be called as func(col) or func(col,col).
* In this case, Funcname is the part before parens, and fargs
* are the part in parens.
*
*/
Node *
ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
bool agg_star, bool agg_distinct,
int precedence)
Diffstat (limited to 'src/include/parser')
-rw-r--r-- | src/include/parser/parse_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h index 5ff0dd510cd..105781b96c3 100644 --- a/src/include/parser/parse_func.h +++ b/src/include/parser/parse_func.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_func.h,v 1.30 2001/05/18 22:35:51 momjian Exp $ + * $Id: parse_func.h,v 1.31 2001/05/19 00:33:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -40,7 +40,7 @@ typedef struct _CandidateList extern Node *ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence); -extern Node *ParseColumnOrFunc(ParseState *pstate, +extern Node *ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs, bool agg_star, bool agg_distinct, int precedence); |