questions for the patch 'Enable pl/python to return records based on multiple OUT params' during reviewing

From: Unicron <ssmei_2000(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: questions for the patch 'Enable pl/python to return records based on multiple OUT params' during reviewing
Date: 2008-12-18 03:03:36
Message-ID: 264747.15259.qm@web62408.mail.re1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I created a function for testing the patch, but when i run following command, the function always raise an exception

select test_in_params('first');
ERROR:  plpython: function "test_in_params" failed
DETAIL:  exceptions.NameError: global name 'first' is not defined

here is the script of fucntion
create or replace function test_in_params(first text)
   returns text
as $$
return first + 'first'
$$LANGUAGE plpythonu;

Anyone help me   Thanks

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2008-12-18 03:04:06 Re: Coding TODO for 8.4: Synch Rep
Previous Message ITAGAKI Takahiro 2008-12-18 03:02:23 Re: Looking for someone with MinGW