[pgAdmin4][psycopg2] - Modified status message implementation

From: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][psycopg2] - Modified status message implementation
Date: 2016-04-04 11:23:42
Message-ID: CACCA4P2F3oXhxxUwKcRWDdC8AVt5Pn1-7DZLgBLktHwStsj81g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

Please find attached patch file which modified the earlier statusmessage
implementation.

*Previous implementation:- *

statusmessage was implemented inside the poll function and if poll result
row is greater than zero then statusmessage was replaced by the result row
returned so if user wants the statusmessage along with returned rows then
current implementation will not work.

*Changes:-*

Now "status_message()" function is implemented to get the status message
returned by last command executed on the server and removed from the poll
function.
If user wants to status messages then they have to call "status_message()"
which will return the status message text.

Do review it and let us know for any comments.

Thanks,
Neel Patel

Attachment Content-Type Size
psycopg2_status_message.patch application/octet-stream 3.6 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Khushboo Vashi 2016-04-05 05:29:14 Re: [pgAdmin4][Patch]: Backgrid StringDepsCell
Previous Message Ashesh Vashi 2016-04-04 10:07:09 Re: Patch: Added select2cell editor for backgrid [pgAdmin4]