mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +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:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: be-dumpdata.c,v 1.30 1999/07/17 20:17:01 momjian Exp $
|
||||
* $Id: be-dumpdata.c,v 1.31 1999/11/07 23:08:07 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -182,7 +182,8 @@ be_typeinit(PortalEntry *entry,
|
||||
group->types = pbuf_addTypes(natts);
|
||||
for (i = 0; i < natts; ++i)
|
||||
{
|
||||
strncpy(group->types[i].name, attrs[i]->attname.data, NAMEDATALEN);
|
||||
strncpy(group->types[i].name,
|
||||
NameStr(attrs[i]->attname), NAMEDATALEN);
|
||||
group->types[i].typid = attrs[i]->atttypid;
|
||||
group->types[i].typlen = attrs[i]->attlen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user