Using the correct member variable while fetching the notices/messages

from the psycopg2 connection.
pull/3/head
Neel Patel 2016-03-06 18:56:16 +05:30 committed by Ashesh Vashi
parent 6014448dd7
commit 31ab9ebacc
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ Polling result for (Query-id: {query_id})""".format(query_id=self.__async_query_
""" """
Returns the list of the messages/notices send from the database server. Returns the list of the messages/notices send from the database server.
""" """
return self.pg_conn.notices if self.pg_conn else [] return self.conn.notices if self.conn else []
class ServerManager(object): class ServerManager(object):