PLPython and named arguments

From: "Andrey Avakimov" <aquarius1993(at)rambler(dot)ru>
To: "Pgsql Sql" <pgsql-sql(at)postgresql(dot)org>
Subject: PLPython and named arguments
Date: 2016-10-04 12:20:02
Message-ID: 1475583602.246825.24420.25624@mail.rambler.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello

My question is about plpython behavior. In some cases procedure ignores named
arguments and raises an error like:

UnboundLocalError: local variable 'arg_from' referenced before assignment

This can be solved by using such code:

arg_from, arg_to = args

But the reasons of such behavior are still unclear.

Does anyone faced this thing?

I will gladly provide any further information if needed.

Best Regards,
Andrew

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2016-10-04 12:37:15 Re: PLPython and named arguments
Previous Message James Cloos 2016-09-29 15:48:02 Re: using possibly null timestamptz columns