2 line patch to allow plpythonu functions to return void ... - Mailing list pgsql-patches

From James Robinson
Subject 2 line patch to allow plpythonu functions to return void ...
Date
Msg-id A7F41688-203C-4CE1-8DE5-49020C9EDB60@socialserve.com
Whole thread Raw
Responses Re: 2 line patch to allow plpythonu functions to return void ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Shamelessly cloned from the parallel code in pltcl, an exception for
void in denying pseudotypes being returned. Pl/tcl didn't reference
VOIDOID anywhere else, so ... .

Allowed following trivial test function to succeed:

create or replace function set_gd(int) returns void as
$$
    GD['global_count'] =  args[0]
$$  language plpythonu volatile;





----
James Robinson
Socialserve.com


Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: memset using long instead of int32
Next
From: Tom Lane
Date:
Subject: Re: 2 line patch to allow plpythonu functions to return void ...