Ensure that the schema diff tool should not allow comparison between Postgres Server and EDB Postgres Advanced Server. #5952

This commit is contained in:
Akshay Joshi
2023-03-24 13:03:35 +05:30
parent 7e8cc539dc
commit 70b2ead852
3 changed files with 8 additions and 2 deletions

View File

@@ -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