From: Bruce Momjian Date: Sat, 21 Feb 1998 18:17:58 +0000 (+0000) Subject: Add handling for new RangeTblEntry column name. X-Git-Tag: REL6_3~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec9e44ab7c66173603b4fd1c21530a5b1df92a2f;p=postgresql Add handling for new RangeTblEntry column name. --- diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index e65cc38c84..4738054520 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.31 1998/02/21 16:58:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.32 1998/02/21 18:17:55 momjian Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -1057,14 +1057,21 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node) appendStringInfo(str, " :relname "); appendStringInfo(str, node->relname); - appendStringInfo(str, " :inh "); - appendStringInfo(str, node->inh ? "true" : "false"); - appendStringInfo(str, " :refname "); appendStringInfo(str, node->refname); sprintf(buf, " :relid %u ", node->relid); appendStringInfo(str, buf); + + appendStringInfo(str, " :inh "); + appendStringInfo(str, node->inh ? "true" : "false"); + + appendStringInfo(str, " :inFromCl "); + appendStringInfo(str, node->inFromCl ? "true" : "false"); + + appendStringInfo(str, " :skipAcl "); + appendStringInfo(str, node->skipAcl ? "true" : "false"); + } /* diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index 323b1f1e21..0c6d22d69f 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.26 1998/02/21 16:58:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.27 1998/02/21 18:17:58 momjian Exp $ * * NOTES * Most of the read functions for plan nodes are tested. (In fact, they @@ -1370,10 +1370,6 @@ _readRangeTblEntry() StrNCpy(local_node->relname, token, length+1); } - token = lsptok(NULL, &length); /* eat :inh */ - token = lsptok(NULL, &length); /* get :inh */ - local_node->inh = (token[0] == 't') ? true : false; - token = lsptok(NULL, &length); /* eat :refname */ token = lsptok(NULL, &length); /* get :refname */ if (length == 0) @@ -1388,6 +1384,18 @@ _readRangeTblEntry() token = lsptok(NULL, &length); /* get :relid */ local_node->relid = strtoul(token,NULL,10); + token = lsptok(NULL, &length); /* eat :inh */ + token = lsptok(NULL, &length); /* get :inh */ + local_node->inh = (token[0] == 't') ? true : false; + + token = lsptok(NULL, &length); /* eat :inFromCl */ + token = lsptok(NULL, &length); /* get :inFromCl */ + local_node->inFromCl = (token[0] == 't') ? true : false; + + token = lsptok(NULL, &length); /* eat :skipAcl */ + token = lsptok(NULL, &length); /* get :skipAcl */ + local_node->skipAcl = (token[0] == 't') ? true : false; + return (local_node); }