agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Andrey Avakimov <aquarius1993@rambler.ru>
To: Pgsql Sql <pgsql-sql@postgresql.org>
Subject: PLPython and named arguments
Date: Tue, 4 Oct 2016 15:20:02 +0300
Message-ID: <1475583602.246825.24420.25624@mail.rambler.ru> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
view thread (4+ messages) latest in thread
Message-ID: <1475583602.246825.24420.25624@mail.rambler.ru>
Permalink: ../1475583602.246825.24420.25624@mail.rambler.ru/
Also on: postgresql.org/message-id/1475583602.246825.24420.25624@mail.rambler.ru
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: aquarius1993@rambler.ru
Subject: Re: PLPython and named arguments
In-Reply-To: <1475583602.246825.24420.25624@mail.rambler.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox