mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +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/nodeUnique.c,v 1.24 1999/07/17 20:16:59 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.25 1999/11/07 23:08:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -314,7 +314,7 @@ ExecInitUnique(Unique *node, EState *estate, Plan *parent)
|
||||
* the parser should have ensured that uniqueAttr is a legal
|
||||
* attribute name
|
||||
*/
|
||||
while (strcmp((tupDesc->attrs[i]->attname).data, uniqueAttr) != 0)
|
||||
while (strcmp(NameStr(tupDesc->attrs[i]->attname), uniqueAttr) != 0)
|
||||
i++;
|
||||
node->uniqueAttrNum = i + 1; /* attribute numbers start from 1 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user