From 07f9682de43ce53fcd6d86744f610cacfabc60bb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 5 Aug 2002 02:30:50 +0000 Subject: Preliminary code review for anonymous-composite-types patch: fix breakage of functions returning domain types, update documentation for typtype, move get_typtype to lsyscache.c (actually, resurrect the old version), add defense against creating pseudo-typed table columns, fix some bogus list-parsing in grammar. Issues remain with respect to alias handling and type checking; Joe is on those. --- src/backend/executor/functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/functions.c') diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c index ab414e19581..784bd94b0a7 100644 --- a/src/backend/executor/functions.c +++ b/src/backend/executor/functions.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.53 2002/08/04 19:48:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.54 2002/08/05 02:30:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -195,7 +195,7 @@ init_sql_fcache(FmgrInfo *finfo) */ fcache->typlen = typeStruct->typlen; - if (typeStruct->typtype == 'b') + if (typeStruct->typtype == 'b' || typeStruct->typtype == 'd') { /* The return type is not a relation, so just use byval */ fcache->typbyval = typeStruct->typbyval; -- cgit v1.2.3