mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Fixed an issue where the query gets executed automatically when the query tool opened using Create Script, Schema Diff.
This commit is contained in:
parent
acb0eb2141
commit
a361fd94ff
@ -363,10 +363,11 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
|
||||
connected_once: true,
|
||||
obtaining_conn: false,
|
||||
});
|
||||
|
||||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.TRIGGER_EXECUTION, explainObject, macroSQL, executeCursor);
|
||||
let msg = `${selectedConn['server_name']}/${selectedConn['database_name']} - Database connected`;
|
||||
pgAdmin.Browser.notifier.success(_.escape(msg));
|
||||
if(!qtState.params.is_query_tool) {
|
||||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.TRIGGER_EXECUTION, explainObject, macroSQL, executeCursor);
|
||||
let msg = `${selectedConn['server_name']}/${selectedConn['database_name']} - Database connected`;
|
||||
pgAdmin.Browser.notifier.success(_.escape(msg));
|
||||
}
|
||||
}).catch((error)=>{
|
||||
if(error.response?.request?.responseText?.search('Ticket expired') !== -1) {
|
||||
Kerberos.fetch_ticket()
|
||||
|
Loading…
Reference in New Issue
Block a user