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

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][psycopg2] - poll function local variable reference error
Date: 2016-03-15 13:02:30
Message-ID: CA+OCxoyug0GrUSAyT-1MWcoq8fbm=oGcm4JG4NGhow-hYh0agA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks, applied.

On Tue, Mar 15, 2016 at 11:44 AM, Neel Patel
<neel(dot)patel(at)enterprisedb(dot)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(at)postgresql(dot)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

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2016-03-15 13:38:09 pgAdmin 4 commit: Improvements in the form/properties dialog control ge
Previous Message Dave Page 2016-03-15 13:02:24 pgAdmin 4 commit: Fix a bug in the database drive poll() function where