ERROR: RETURN NEXT must specify a record or row variable in function returning tuple - Mailing list pgsql-bugs

From
Subject ERROR: RETURN NEXT must specify a record or row variable in function returning tuple
Date
Msg-id 03ee01c890f8$5a6f4570$1200a8c0@kharkov.localhost
Whole thread Raw
List pgsql-bugs
DECLARE v_row record;
BEGIN
select 1, row( 1,2) as result into v_scalar, v_row;
return next v_row.result
END;
This code cause "ERROR: RETURN NEXT must specify a record or row variable i=
n function returning tuple"
BUG? TODO?


DECLARE v_row record;
DECLARE v_result record;
BEGIN
select 1, row( 1,2) as result into v_scalar, v_row;
v_result=3D v_row.result;
return next v_result;
END;
This workaround work fine=

pgsql-bugs by date:

Previous
From:
Date:
Subject: Re: FOR-IN-EXECUTE: FOR does not replanned on each entry to the FOR loop
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG: wrong doc or wrong connectby?