BUG #2749: Function's final statement must be a SELECT

From: "Hagen" <sixtus(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2749: Function's final statement must be a SELECT
Date: 2006-11-09 10:07:23
Message-ID: 200611091007.kA9A7NuU021604@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2749
Logged by: Hagen
Email address: sixtus(at)gmail(dot)com
PostgreSQL version: 8.2beta2
Operating system: OSX
Description: Function's final statement must be a SELECT
Details:

create function test(text) returns table as $sql$
insert into table(value) values($1) returning *;
$sql$ language sql;

really should work now, instead I get:
PGError: ERROR: return type mismatch in function declared to return table
DETAIL: Function's final statement must be a SELECT.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephen haberman 2006-11-10 01:04:13 BUG #2750: information_schema broken with primary and foreign key on the same column
Previous Message tsangwingkein 2006-11-09 04:25:18 BUG #2745: upgrade.bat refers to msi file name for version 8.1 ms