aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-05-19 00:33:20 +0000
committerBruce Momjian <bruce@momjian.us>2001-05-19 00:33:20 +0000
commit5ec847432362d905e71fedd1182cdd3bb10b3120 (patch)
tree2f6a473e8f29cea67861212540102516594678e1 /src/backend/parser/parse_expr.c
parentf61d70c2ac83b62b6d3458d3e46a71b9f1671e54 (diff)
downloadpostgresql-5ec847432362d905e71fedd1182cdd3bb10b3120.tar.gz
postgresql-5ec847432362d905e71fedd1182cdd3bb10b3120.zip
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/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index 786be985200..08a2f5f2035 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.94 2001/05/18 22:35:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.95 2001/05/19 00:33:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -173,7 +173,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a->lexpr,
precedence);
- result = ParseColumnOrFunc(pstate,
+ result = ParseFuncOrColumn(pstate,
"nullvalue",
makeList1(lexpr),
false, false,
@@ -186,7 +186,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a->lexpr,
precedence);
- result = ParseColumnOrFunc(pstate,
+ result = ParseFuncOrColumn(pstate,
"nonnullvalue",
makeList1(lexpr),
false, false,
@@ -273,7 +273,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
lfirst(args) = transformExpr(pstate,
(Node *) lfirst(args),
precedence);
- result = ParseColumnOrFunc(pstate,
+ result = ParseFuncOrColumn(pstate,
fn->funcname,
fn->args,
fn->agg_star,