From 72b6ad6313387110cb36b69a3732cd0936c3eba4 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Sun, 30 May 2004 23:40:41 +0000 Subject: Use the new List API function names throughout the backend, and disable the list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants. --- src/backend/utils/adt/tid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/tid.c') diff --git a/src/backend/utils/adt/tid.c b/src/backend/utils/adt/tid.c index f8f207d72a..dd158c04cb 100644 --- a/src/backend/utils/adt/tid.c +++ b/src/backend/utils/adt/tid.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.44 2004/05/26 04:41:39 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.45 2004/05/30 23:40:36 neilc Exp $ * * NOTES * input routine largely stolen from boxin(). @@ -239,7 +239,7 @@ currtid_for_view(Relation viewrel, ItemPointer tid) Query *query; TargetEntry *tle; - if (length(rewrite->actions) != 1) + if (list_length(rewrite->actions) != 1) elog(ERROR, "only one select rule is allowed in views"); query = (Query *) linitial(rewrite->actions); tle = get_tle_by_resno(query->targetList, tididx+1); -- cgit v1.2.1