Skip site navigation (1) Skip section navigation (2)

Re: allow select from void function in void sql function

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: allow select from void function in void sql function
Date: 2006-03-17 03:56:43
Message-ID: c2d9e70e0603161956h9c15614u9044ca1990ef8cfe@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-patches
On 3/16/06, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com> wrote:
> Hello
>
> this small patch allow use sql for creating wrappers others void functions.
> Currently void SQL function have to be empty.
>
> create or replace function foo(int) returns void as ' ','' language c ..;
> create or replace function foo() returns void as $$ select foo(10);
> $$language sql;
>
> regards
> Pavel
>

i'm not clear on what the use case of this can be... of course, my
opinion is not very important :)

--
regards,
Jaime Casanova

"What they (MySQL) lose in usability, they gain back in benchmarks, and that's
all that matters: getting the wrong answer really fast."
                           Randal L. Schwartz

In response to

Responses

pgsql-patches by date

Next:From: Qingqing ZhouDate: 2006-03-17 05:29:05
Subject: Re: Automatically setting work_mem
Previous:From: Peter EisentrautDate: 2006-03-16 22:52:17
Subject: Re: farsi translation: file fa_IR.po updated.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group