PLPython and named arguments - Mailing list pgsql-sql

From Andrey Avakimov
Subject PLPython and named arguments
Date
Msg-id 1475583602.246825.24420.25624@mail.rambler.ru
Whole thread Raw
Responses Re: PLPython and named arguments  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: PLPython and named arguments  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-sql
<p><span style="font-family: 'Courier New','Courier';">Hello</span><p><span style="font-family: 'Courier
New','Courier';">Myquestion is about plpython behavior. In some cases procedure ignores named arguments and raises an
errorlike:</span><p><span style="font-family: 'Courier New','Courier';">UnboundLocalError: local variable 'arg_from'
referencedbefore assignment</span><p><p><span style="font-family: 'Courier New','Courier';">This can be solved by using
suchcode:</span><p><span style="font-family: 'Courier New','Courier';">arg_from, arg_to = args</span><p><span
style="font-family:'Courier New','Courier';">But the reasons of such behavior are still unclear.<br /></span><p><span
style="font-family:'Courier New','Courier';">Does anyone faced this thing? </span><p><span style="font-family: 'Courier
New','Courier';">Iwill gladly provide any further information if needed.</span><p><p><span style="font-family: 'Courier
New','Courier';">BestRegards,</span><br /><span style="font-family: 'Courier New','Courier';">Andrew</span> 

pgsql-sql by date:

Previous
From: James Cloos
Date:
Subject: Re: using possibly null timestamptz columns
Next
From: Tom Lane
Date:
Subject: Re: PLPython and named arguments