Re: [ask] Return Query - Mailing list pgsql-general

From Tom Lane
Subject Re: [ask] Return Query
Date
Msg-id 22893.1237142668@sss.pgh.pa.us
Whole thread Raw
In response to [ask] Return Query  (ataherster <ataherster@yahoo.co.id>)
Responses Re: [ask] Return Query
List pgsql-general
ataherster <ataherster@yahoo.co.id> writes:
> ... but this function is not work with this error :
> ERROR:  structure of query does not match function result type
> CONTEXT:  PL/pgSQL function "penjualan" line 6 at RETURN QUERY

This looks like a known limitation in plpgsql: it's not very good with
rowtypes that contain dropped columns.  Have you dropped some columns
in table PENJUALAN?  If so, try remaking the table from scratch.

            regards, tom lane

pgsql-general by date:

Previous
From: Carl Sopchak
Date:
Subject: Re: ODBC limitation??
Next
From: Oliver Kennedy
Date:
Subject: Best-N aggregates