Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: use original statement rather than rewritten one (#14226)
Liu Ji1a6ceb1f053f
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vueindex 9c0841f83e..2274ac56db 100644--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue@@ -449,7 +449,9 @@ const handleExportBtnClick = async (props.database && isValidDatabaseName(props.database.name)? props.database.name: "";- const statement = props.result.statement;+ // 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);