Examples

Adrian Klaver aklaver at comcast.net
Wed Feb 15 03:16:06 GMT 2006


On Tuesday 14 February 2006 09:46 am, James William Pye wrote:
<snip>
> Function args are even easier:
>
> CREATE FUNCTION foo(int, text) RETURNS text
> IMMUTABLE STRICT LANGUAGE python
> AS 'return str(args[0]) + str(args[1])';
<snip>
I thought I had tried that form at some point in my testing. Looking back 
through my history showed I did, which got me to wondering. Turns out the 
problem seems to be my using the CREATE OR REPLACE FUNCTION way of creating 
functions. The REPLACE portion does not seem to apply. In order to have a 
change take effect I need to close the session and then start a new session.  
Is this intended or should I file a bug report?

-- 
Adrian Klaver	
aklaver at comcast.net


More information about the Python-general mailing list