diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 1998-12-18 14:45:09 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 1998-12-18 14:45:09 +0000 |
commit | eeff2c94bea07c55a79bcf518411068e2bc07dd8 (patch) | |
tree | e5f96e8dff15a3a53e48124e47015eb2c2554054 /src/backend/commands | |
parent | 3498d878cb5951fcfaae2ca78f46eacf0b140e7b (diff) | |
download | postgresql-eeff2c94bea07c55a79bcf518411068e2bc07dd8.tar.gz postgresql-eeff2c94bea07c55a79bcf518411068e2bc07dd8.zip |
Fixed nodeToString() to put out "<>" for NULL strings again.
More cleanups to appendStringInfo() usage in node/outfuncs.c.
Jan
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/explain.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 5b547adb2f3..8781458548a 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -4,7 +4,7 @@ * * Copyright (c) 1994-5, Regents of the University of California * - * $Id: explain.c,v 1.29 1998/12/14 08:11:00 scrappy Exp $ + * $Id: explain.c,v 1.30 1998/12/18 14:45:07 wieck Exp $ * */ #include <stdio.h> @@ -144,8 +144,7 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es) { List *l; Relation relation; - char *pname, - buf[1000]; + char *pname; int i; if (plan == NULL) @@ -216,7 +215,8 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es) { appendStringInfo(str, ", "); } - appendStringInfo(str, (RelationGetRelationName(relation))->data); + appendStringInfo(str, + stringStringInfo((RelationGetRelationName(relation))->data)); } case T_SeqScan: if (((Scan *) plan)->scanrelid > 0) @@ -226,10 +226,10 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es) appendStringInfo(str, " on "); if (strcmp(rte->refname, rte->relname) != 0) { - snprintf(buf, 1000, "%s ", rte->relname); - appendStringInfo(str, buf); + appendStringInfo(str, "%s ", + stringStringInfo(rte->relname)); } - appendStringInfo(str, rte->refname); + appendStringInfo(str, stringStringInfo(rte->refname)); } break; default: |