questions for the patch 'Enable pl/python to return records based on multiple OUT params' during reviewing - Mailing list pgsql-hackers

From Unicron
Subject questions for the patch 'Enable pl/python to return records based on multiple OUT params' during reviewing
Date
Msg-id 264747.15259.qm@web62408.mail.re1.yahoo.com
Whole thread Raw
Responses Re: questions for the patch 'Enable pl/python to return records based on multiple OUT params' during reviewing
List pgsql-hackers
<table border="0" cellpadding="0" cellspacing="0"><tr><td style="font: inherit;" valign="top">I created a function for
testingthe patch, but when i run following command, the function always raise an exception <br /><br />select
test_in_params('first');<br/>ERROR:  plpython: function "test_in_params" failed<br />DETAIL:  exceptions.NameError:
globalname 'first' is not defined<br /><br />here is the script of fucntion<br />create or replace function
test_in_params(firsttext)<br />   returns text<br />as $$<br />return first + 'first'<br />$$LANGUAGE plpythonu;<br
/><br/>Anyone help me   Thanks<br /></td></tr></table><br /> 

pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: Looking for someone with MinGW
Next
From: "Fujii Masao"
Date:
Subject: Re: Coding TODO for 8.4: Synch Rep