diff options
Diffstat (limited to 'src/backend/access/common/tupdesc.c')
-rw-r--r-- | src/backend/access/common/tupdesc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c index 1a016d86f80..4a3c2721c7b 100644 --- a/src/backend/access/common/tupdesc.c +++ b/src/backend/access/common/tupdesc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.102 2004/04/01 21:28:43 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.103 2004/05/26 04:41:03 neilc Exp $ * * NOTES * some of the executor utility code such as "ExecTypeFromTL" should be @@ -472,7 +472,7 @@ BuildDescForRelation(List *schema) { int natts; AttrNumber attnum; - List *p; + ListCell *l; TupleDesc desc; AttrDefault *attrdef = NULL; TupleConstr *constr = (TupleConstr *) palloc0(sizeof(TupleConstr)); @@ -490,9 +490,9 @@ BuildDescForRelation(List *schema) attnum = 0; - foreach(p, schema) + foreach(l, schema) { - ColumnDef *entry = lfirst(p); + ColumnDef *entry = lfirst(l); /* * for each entry in the list, get the name and type information @@ -661,7 +661,7 @@ TypeGetTupleDesc(Oid typeoid, List *colaliases) errmsg("number of aliases does not match number of columns"))); /* OK, get the column alias */ - attname = strVal(lfirst(colaliases)); + attname = strVal(linitial(colaliases)); tupdesc = CreateTemplateTupleDesc(1, false); TupleDescInitEntry(tupdesc, |