mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fix SQLEditor Notifier and InetLoader issue.
This commit is contained in:
parent
366dd3a973
commit
64aa739224
@ -212,6 +212,9 @@ export class ResultSetUtils {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.SET_LIMIT_VALUE, httpMessageData.data.limit);
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.EDITOR_SET_SQL, httpMessageData.data.sql, false);
|
||||
}
|
||||
if(httpMessageData.data.notifies) {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.PUSH_NOTICE, httpMessageData.data.notifies);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.EXECUTION_END);
|
||||
@ -233,9 +236,6 @@ export class ResultSetUtils {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.HIGHLIGHT_ERROR, httpMessageData.data.result);
|
||||
}
|
||||
}
|
||||
if(httpMessageData.data.notifies) {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.PUSH_NOTICE, httpMessageData.data.notifies);
|
||||
}
|
||||
} catch(e) {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.EXECUTION_END);
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.HANDLE_API_ERROR,
|
||||
|
@ -205,6 +205,7 @@ class pgAdminInetLoader(InetLoader):
|
||||
|
||||
# The new classes can be registered globally, on a connection, on a cursor
|
||||
psycopg.adapters.register_loader("inet", pgAdminInetLoader)
|
||||
psycopg.adapters.register_loader("cidr", pgAdminInetLoader)
|
||||
|
||||
|
||||
class pgAdminByteaLoader(Loader):
|
||||
|
Loading…
Reference in New Issue
Block a user