Re: Group by clause creating "ERROR: wrong record type supplied in RETURN NEXT" (version 8.1.11 -- grr...)

From: Klint Gore <kgore4(at)une(dot)edu(dot)au>
To: Webb Sprague <webb(dot)sprague(at)gmail(dot)com>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Group by clause creating "ERROR: wrong record type supplied in RETURN NEXT" (version 8.1.11 -- grr...)
Date: 2008-11-27 01:51:05
Message-ID: 492DFD09.8010602@une.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Webb Sprague wrote:
> select * from mkn.query_table_data ('select sum(p087001) as pop
> from datatable_00040 group by substr(geo_id, 13, 6) order by
> pop desc limit 10')
> as FOO (pop integer);
>
> ERROR: wrong record type supplied in RETURN NEXT
> CONTEXT: PL/pgSQL function "query_table_data" line 15 at return next
>

sum(int) returns bigint

klint.

--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350

Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4(at)une(dot)edu(dot)au

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-11-27 02:04:28 Re: query evaluation
Previous Message Ravi Chemudugunta 2008-11-27 01:36:52 query evaluation