mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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,
|
connected_once: true,
|
||||||
obtaining_conn: false,
|
obtaining_conn: false,
|
||||||
});
|
});
|
||||||
|
if(!qtState.params.is_query_tool) {
|
||||||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.TRIGGER_EXECUTION, explainObject, macroSQL, executeCursor);
|
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.TRIGGER_EXECUTION, explainObject, macroSQL, executeCursor);
|
||||||
let msg = `${selectedConn['server_name']}/${selectedConn['database_name']} - Database connected`;
|
let msg = `${selectedConn['server_name']}/${selectedConn['database_name']} - Database connected`;
|
||||||
pgAdmin.Browser.notifier.success(_.escape(msg));
|
pgAdmin.Browser.notifier.success(_.escape(msg));
|
||||||
|
}
|
||||||
}).catch((error)=>{
|
}).catch((error)=>{
|
||||||
if(error.response?.request?.responseText?.search('Ticket expired') !== -1) {
|
if(error.response?.request?.responseText?.search('Ticket expired') !== -1) {
|
||||||
Kerberos.fetch_ticket()
|
Kerberos.fetch_ticket()
|
||||||
|
Loading…
Reference in New Issue
Block a user