Re: BUG #4710: Bug with sql functions, when using INSERT.. RETURNING .. statment - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4710: Bug with sql functions, when using INSERT.. RETURNING .. statment
Date
Msg-id 10390.1237308272@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4710: Bug with sql functions, when using INSERT.. RETURNING .. statment  ("Oleg" <serovOv@gmail.com>)
List pgsql-bugs
"Oleg" <serovOv@gmail.com> writes:
> CREATE TABLE test (id BIGINT);
> CREATE OR REPLACE FUNCTION test(in_row test) RETURNS bigint AS
> $body$
>     INSERT INTO test (SELECT $1.*) RETURNING id;
> $body$
> LANGUAGE 'sql';

> WILL THROW:

> ERROR:  return type mismatch in function declared to return bigint

This is improved for 8.4.

http://archives.postgresql.org/pgsql-committers/2008-10/msg00295.php

            regards, tom lane

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: BUG #4711: no mirror found in country selection for download
Next
From: "Alexander"
Date:
Subject: BUG #4712: Installing problems