Re: SQL return value... - Mailing list pgsql-general

From Richard Huxton
Subject Re: SQL return value...
Date
Msg-id 4357487F.9070609@archonet.com
Whole thread Raw
In response to SQL return value...  ("Cristian Prieto" <cristian@clickdiario.com>)
List pgsql-general
Cristian Prieto wrote:
> This is maybe a really newbie question, but, when I have an SQL function
> like that:
>
> $$
> Insert into mytable (id, name) values ($1, $2);
> $$
>
> What return value suppose to return?

Either return "void" or return "boolean" and add a "SELECT true;"
statement to the end of your function.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Create GLOBAL TABLE
Next
From: Richard Huxton
Date:
Subject: Re: server , client encoding issue