1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +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/parser/analyze.c,v 1.29 1997/07/30 04:42:26 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.30 1997/08/03 02:35:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1003,9 +1003,9 @@ makeTargetNames(ParseState *pstate, List *cols)
for(i=0; i < numcol; i++) {
Ident *id = makeNode(Ident);
id->name = palloc(NAMEDATALEN+1);
id->name = palloc(NAMEDATALEN);
strncpy(id->name, attr[i]->attname.data, NAMEDATALEN);
id->name[NAMEDATALEN]='\0';
id->name[NAMEDATALEN-1]='\0';
id->indirection = NIL;
id->isRel = false;
if (tl == NIL)