]> granicus.if.org Git - postgresql/commit
New comment. This func/column things has always confused me.
authorBruce Momjian <bruce@momjian.us>
Sat, 19 May 2001 00:33:20 +0000 (00:33 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 19 May 2001 00:33:20 +0000 (00:33 +0000)
commit5ec847432362d905e71fedd1182cdd3bb10b3120
tree2f6a473e8f29cea67861212540102516594678e1
parentf61d70c2ac83b62b6d3458d3e46a71b9f1671e54
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)
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/include/parser/parse_func.h