mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the schema diff tool should not allow comparison between Postgres Server and EDB Postgres Advanced Server. #5952
This commit is contained in:
@@ -447,7 +447,9 @@ def compare_database(params):
|
||||
compare_pre_validation(params['trans_id'], params['source_sid'],
|
||||
params['target_sid'])
|
||||
if not status:
|
||||
socketio.emit('compare_database_failed', error_msg,
|
||||
socketio.emit('compare_database_failed',
|
||||
error_msg.json if type(
|
||||
error_msg) == Response else error_msg,
|
||||
namespace=SOCKETIO_NAMESPACE, to=request.sid)
|
||||
return error_msg
|
||||
|
||||
@@ -586,7 +588,9 @@ def compare_schema(params):
|
||||
compare_pre_validation(params['trans_id'], params['source_sid'],
|
||||
params['target_sid'])
|
||||
if not status:
|
||||
socketio.emit('compare_schema_failed', error_msg,
|
||||
socketio.emit('compare_schema_failed',
|
||||
error_msg.json if type(
|
||||
error_msg) == Response else error_msg,
|
||||
namespace=SOCKETIO_NAMESPACE, to=request.sid)
|
||||
return error_msg
|
||||
|
||||
|
Reference in New Issue
Block a user