Обсуждение: [pgAdmin4][psycopg2] - poll function local variable reference error

Поиск
Список
Период
Сортировка

[pgAdmin4][psycopg2] - poll function local variable reference error

От
Neel Patel
Дата:
Hi,

During the debugger implementation, we came to know that "poll()" function is getting failed when the status is not equal to "ASYNC_OK". We are getting the below error at python side.

"UnboundLocalError: local variable 'colinfo' referenced before assignment"


Attached is the patch that resolves the above error.

Do review it and let us know for comments.

Thanks,
Neel Patel
Вложения

Re: [pgAdmin4][psycopg2] - poll function local variable reference error

От
Dave Page
Дата:
Thanks, applied.

On Tue, Mar 15, 2016 at 11:44 AM, Neel Patel
<neel.patel@enterprisedb.com> wrote:
> Hi,
>
> During the debugger implementation, we came to know that "poll()" function
> is getting failed when the status is not equal to "ASYNC_OK". We are getting
> the below error at python side.
>
> "UnboundLocalError: local variable 'colinfo' referenced before assignment"
>
>
> Attached is the patch that resolves the above error.
>
> Do review it and let us know for comments.
>
> Thanks,
> Neel Patel
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company