Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: the statement is not correct in the multi-query (#17692)
ecmadaoac785b4c0696
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vueindex ebbf88becc..d1f2153c72 100644--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue@@ -495,9 +495,6 @@ const handleExportBtnClick = async ({reject: (reason?: any) => void;resolve: (content: DownloadContent) => void;}) => {- // use props.params.statement which is the "snapshot" of the query statement- // not using props.result.statement because it might be rewritten by Query() API- const statement = props.params.statement;const admin = tabStore.currentTab?.mode === "ADMIN";const limit = options.limit ?? (admin ? 0 : editorStore.resultRowsLimit);@@ -507,7 +504,7 @@ const handleExportBtnClick = async ({name: props.database.name,dataSourceId: props.params.connection.dataSourceId ?? "",format: options.format,- statement,+ statement: props.result.statement,limit,admin,password: options.password,@@ -561,8 +558,8 @@ const showVisualizeButton = computed((): boolean => {const visualizeExplain = () => {try {- const { params, result } = props;- const { statement } = params;+ const { result } = props;+ const { statement } = result;if (!statement) return;const lines = result.rows.map((row) =>