From f0cc132621cc9ee53054684112fca0ae3780b48d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 19 Jun 2004 18:19:56 +0000 Subject: Fix oversight in recent rowtype-handling improvements: transformTargetList should recognize 'foo.*' when the star appears in A_Indirection, not only in ColumnRef. This allows 'SELECT something.*' to do what the user expects when the something is an expression yielding a row. --- src/backend/utils/cache/typcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/cache/typcache.c') diff --git a/src/backend/utils/cache/typcache.c b/src/backend/utils/cache/typcache.c index 8ad60423c78..362480b250b 100644 --- a/src/backend/utils/cache/typcache.c +++ b/src/backend/utils/cache/typcache.c @@ -36,7 +36,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/cache/typcache.c,v 1.7 2004/06/05 01:55:05 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/cache/typcache.c,v 1.8 2004/06/19 18:19:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -409,8 +409,8 @@ lookup_rowtype_tupdesc_noerror(Oid type_id, int32 typmod, bool noError) if (typentry->tupDesc == NULL && !noError) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), - errmsg("type %u is not composite", - type_id))); + errmsg("type %s is not composite", + format_type_be(type_id)))); return typentry->tupDesc; } else -- cgit v1.2.3