mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add support in query history to show internal queries generated by pgAdmin during save data operations. Fixes #4612
This commit is contained in:
committed by
Akshay Joshi
parent
4403f326e9
commit
687204771c
@@ -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
|
||||
|
Reference in New Issue
Block a user