From 95ef6a344821655ce4d0a74999ac49dd6af6d342 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 21 Mar 2002 16:02:16 +0000 Subject: First phase of SCHEMA changes, concentrating on fixing the grammar and the parsetree representation. As yet we don't *do* anything with schema names, just drop 'em on the floor; but you can enter schema-compatible command syntax, and there's even a primitive CREATE SCHEMA command. No doc updates yet, except to note that you can now extract a field from a function-returning-row's result with (foo(...)).fieldname. --- src/backend/nodes/nodeFuncs.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/backend/nodes/nodeFuncs.c') diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c index 5d43a8e15e5..401b34b88cc 100644 --- a/src/backend/nodes/nodeFuncs.c +++ b/src/backend/nodes/nodeFuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.16 2001/10/28 06:25:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.17 2002/03/21 16:00:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -29,7 +29,9 @@ static bool var_is_inner(Var *var); bool single_node(Node *node) { - if (IsA(node, Ident) ||IsA(node, Const) ||IsA(node, Var) ||IsA(node, Param)) + if (IsA(node, Const) || + IsA(node, Var) || + IsA(node, Param)) return true; else return false; @@ -103,13 +105,13 @@ replace_opid(Oper *oper) * non_null - * Returns t if the node is a non-null constant, e.g., if the node has a * valid `constvalue' field. - * */ bool non_null(Expr *c) { - if (IsA(c, Const) &&!((Const *) c)->constisnull) + if (IsA(c, Const) && + !((Const *) c)->constisnull) return true; else return false; -- cgit v1.2.3