Fixed the issue of renaming the database by another user. Fixes #4203

This commit is contained in:
Rahul Shirsat
2021-05-31 12:41:09 +05:30
committed by Akshay Joshi
parent a487a51135
commit 658a2de619
16 changed files with 645 additions and 478 deletions
+3
View File
@@ -351,6 +351,7 @@ def poll(trans_id):
oids = None
additional_messages = None
notifies = None
data_obj = {}
# Check the transaction and connection status
status, error_msg, conn, trans_obj, session_obj = \
@@ -503,6 +504,7 @@ def poll(trans_id):
result = error_msg
transaction_status = conn.transaction_status()
data_obj['db_name'] = conn.db
return make_json_response(
data={
@@ -520,6 +522,7 @@ def poll(trans_id):
'has_oids': has_oids,
'oids': oids,
'transaction_status': transaction_status,
'data_obj': data_obj,
},
encoding=conn.python_encoding
)