Ensure the generate script button in schema diff populates diff query in query tool.

pull/8897/head
Yogesh Mahajan 2025-06-24 15:28:36 +05:30 committed by GitHub
parent 03f18d5242
commit 6fab59a13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,12 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.HANDLE_API_ERROR, err);
setQtStatePartial({ editor_disabled: true });
});
} else if (qtState.params.sql_id) {
let sqlValue = localStorage.getItem(qtState.params.sql_id);
localStorage.removeItem(qtState.params.sql_id);
if (sqlValue) {
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.EDITOR_SET_SQL, sqlValue);
}
} else if (qtState.params.toolDataId) {
populateEditorData();
} else {