Folks,
Two corrections:
The second example was the wrong code, it should have been this function:
create function return_test_2 (
vuser INT, vsession INT
) returns return_value as $fnc$
begin
return row( -1, 'bad' );
end; $fnc$ language plpgsql;
Also, this issue is documented, but I bel
Folks,
On 8.0.4 and 8.1b4 given:
create type return_value as (
id INTEGER,
message TEXT
);
this function:
create function return_test (
vuser INT, vsession INT
) returns return_value as $fnc$
declare vtemp return_value;
begin
vtemp := row( -1, 'bad' );
return vtemp;
end;