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/name.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/name.c') diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c index bb34667c4d3..ecac8d2d500 100644 --- a/src/backend/utils/adt/name.c +++ b/src/backend/utils/adt/name.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/name.c,v 1.51 2004/05/26 04:41:37 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/name.c,v 1.52 2004/05/30 23:40:35 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -360,7 +360,7 @@ current_schemas(PG_FUNCTION_ARGS) /* +1 here is just to avoid palloc(0) error */ - names = (Datum *) palloc((length(search_path) + 1) * sizeof(Datum)); + names = (Datum *) palloc((list_length(search_path) + 1) * sizeof(Datum)); i = 0; foreach(l, search_path) { -- cgit v1.2.3