mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
New NameStr macro to convert Name to Str. No need for var.data anymore.
Fewer calls to nameout. Better use of RelationGetRelationName.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.49 1999/09/18 19:06:48 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.50 1999/11/07 23:08:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -546,9 +546,9 @@ ExecSetTypeInfo(int index,
|
||||
att->attrelid = 0; /* dummy value */
|
||||
|
||||
if (attName != (char *) NULL)
|
||||
StrNCpy(att->attname.data, attName, NAMEDATALEN);
|
||||
StrNCpy(NameStr(att->attname), attName, NAMEDATALEN);
|
||||
else
|
||||
MemSet(att->attname.data, 0, NAMEDATALEN);
|
||||
MemSet(NameStr(att->attname), 0, NAMEDATALEN);
|
||||
|
||||
att->atttypid = typeID;
|
||||
att->attdefrel = 0; /* dummy value */
|
||||
|
||||
Reference in New Issue
Block a user