1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Cleanup for NAMEDATALEN use.

This commit is contained in:
Bruce Momjian
1997-08-03 02:38:47 +00:00
parent ea210dc611
commit 6ed1715b1f
16 changed files with 49 additions and 49 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.3 1996/11/10 03:00:49 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.4 1997/08/03 02:35:13 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@ -350,14 +350,14 @@ print_plan_recursive (Plan* p, Query *parsetree, int indentLevel, char* label)
RangeTblEntry *rte;
rte = rt_fetch(((Scan*)p)->scanrelid, parsetree->rtable);
strncpy(extraInfo, rte->relname, NAMEDATALEN);
extraInfo[NAMEDATALEN] = '\0';
extraInfo[NAMEDATALEN-1] = '\0';
} else
if (IsA(p,IndexScan)) {
strncpy(extraInfo,
((RangeTblEntry*)(nth(((IndexScan*)p)->scan.scanrelid - 1,
parsetree->rtable)))->relname,
NAMEDATALEN);
extraInfo[NAMEDATALEN] = '\0';
extraInfo[NAMEDATALEN-1] = '\0';
} else
extraInfo[0] = '\0';
if (extraInfo[0] != '\0')