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

2 line patch to allow plpythonu functions to return void ...

From: James Robinson <jlrobins(at)socialserve(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: 2 line patch to allow plpythonu functions to return void ...
Date: 2006-02-25 04:36:51
Message-ID: A7F41688-203C-4CE1-8DE5-49020C9EDB60@socialserve.com (view raw or flat)
Thread:
Lists: 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;





Attachment: allow_plpython_return_void.diff
Description: application/octet-stream (644 bytes)

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2006-02-25 17:10:00
Subject: Re: 2 line patch to allow plpythonu functions to return void ...
Previous:From: Bruce MomjianDate: 2006-02-25 02:28:30
Subject: Re: pg_service.conf

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