Add support in query history to show internal queries generated by pgAdmin during save data operations. Fixes #4612

This commit is contained in:
Yosry Muhammad
2019-08-16 17:17:12 +05:30
committed by Akshay Joshi
parent 4403f326e9
commit 687204771c
17 changed files with 712 additions and 363 deletions

View File

@@ -1917,3 +1917,17 @@ Failed to reset the connection to the server due to following error:
)
return enc_password
def mogrify(self, query, parameters):
"""
This function will return the sql query after parameters binding
:param query: sql query before parameters (variables) binding
:param parameters: query parameters / variables
:return:
"""
status, cursor = self.__cursor()
if not status:
return None
else:
mogrified_sql = cursor.mogrify(query, parameters)
return mogrified_sql