On 08/09/2013 02:18 PM, Day, David wrote:
A complete self contained test case: example of the problem with my FOR LOOP using a COMMON table expression.
Again this is version 9.3beta
Any comments
Got it past the error by:
Changing:
drow test.tmm%ROWTYPE; -- deleted row holder
to:
drow record; -- deleted row holder
SELECT translator_id, MIN(tid_seq), MIN(ws_grp_seq)
FROM xrows GROUP BY translator_id
to:
SELECT translator_id, MIN(tid_seq) as tid_seq, MIN(ws_grp_seq) as
ws_grp_seq
FROM xrows GROUP BY translator_id
MIN() becomes a column min which is not in the %ROWTYPE for test.tmm
--
Adrian Klaver
adrian.klaver@xxxxxxxxx
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general