1. Fixed an issue where database name was missing in an error message if name contains any special characters. #6488

2. Add a confirmation dialog before closing a query tool when a query is already running.
This commit is contained in:
Anil Sahoo
2023-11-30 18:23:52 +05:30
committed by GitHub
parent 16d1df2a1b
commit f2876cabe8
3 changed files with 53 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ from pgadmin.tools.sqleditor.utils.query_history import QueryHistory
from pgadmin.tools.schema_diff.node_registry import SchemaDiffRegistry
from pgadmin.model import db, Server, Database
from pgadmin.browser.utils import underscore_escape
class DatabaseModule(CollectionNodeModule):
@@ -1041,7 +1042,8 @@ class DatabaseView(PGChildNodeView):
auto_reconnect=True)
status, errmsg = conn.connect()
return internal_server_error(errormsg=msg)
return internal_server_error(
errormsg=underscore_escape(msg))
return make_json_response(success=1)