PLPython and named arguments
От | Andrey Avakimov |
---|---|
Тема | PLPython and named arguments |
Дата | |
Msg-id | 1475583602.246825.24420.25624@mail.rambler.ru обсуждение исходный текст |
Ответы |
Re: PLPython and named arguments
Re: PLPython and named arguments |
Список | 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 по дате отправления: