25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(export): read query result exports through the open manual transaction
Jeffc8816364f7c3
diff --git a/apps/desktop/src/lib/backend/tauri.ts b/apps/desktop/src/lib/backend/tauri.tsindex 3f76156e9c..a209b8f7f8 100644--- a/apps/desktop/src/lib/backend/tauri.ts+++ b/apps/desktop/src/lib/backend/tauri.ts@@ -6240,6 +6240,8 @@ export interface QueryResultExportRequest {timeoutSecs?: number;keysetOptimizationEnabled: boolean;clientSessionId?: string;+ /** Open manual transaction to read through, so the export sees its uncommitted changes. */+ txnSessionId?: string;executionId?: string;dateTimeFormat?: string;exportTableName?: string;diff --git a/apps/desktop/src/stores/__tests__/queryStore.queryResultExport.spec.ts b/apps/desktop/src/stores/__tests__/queryStore.queryResultExport.spec.tsindex 1f06c7d91e..16d8e29d8a 100644--- a/apps/desktop/src/stores/__tests__/queryStore.queryResultExport.spec.ts+++ b/apps/desktop/src/stores/__tests__/queryStore.queryResultExport.spec.ts@@ -469,6 +469,27 @@ describe("queryStore query result export", () => {expect(mocks.connectionIdentifierQuote).toHaveBeenCalledWith("kingbase-1");});+ it.each([+ [false, "txn-1", "txn-1"],+ [true, "txn-1", undefined],+ [false, undefined, undefined],+ ])("passes the open manual transaction to the backend export (autoCommit=%s, txn=%s)", async (autoCommit, txnSessionId, expected) => {+ mocks.getConfig.mockReturnValue({ id: "mysql-1", db_type: "mysql", database: "app" });+ const { useQueryStore } = await import("@/stores/queryStore");+ const store = useQueryStore();+ const tabId = store.createTab("mysql-1", "app", "Query");+ const tab = store.tabs.find((item) => item.id === tabId)!;+ tab.autoCommit = autoCommit;+ tab.txnSessionId = txnSessionId;+ tab.sql = "SELECT id FROM items";+ tab.lastExecutedSql = tab.sql;+ tab.result = { columns: ["id"], rows: [[1]], affected_rows: 0, execution_time_ms: 1 };++ const request = await store.buildQueryResultExportRequest(tabId, { exportId: "export-txn", filePath: "items.csv", format: "csv" });++ expect(request?.txnSessionId).toBe(expected);+ });+it("passes the selected SQL INSERT mode to the backend request", async () => {const { useQueryStore } = await import("@/stores/queryStore");const store = useQueryStore();diff --git a/apps/desktop/src/stores/queryStore.ts b/apps/desktop/src/stores/queryStore.tsindex 5d48c15e07..d5d945e49b 100644--- a/apps/desktop/src/stores/queryStore.ts+++ b/apps/desktop/src/stores/queryStore.ts@@ -299,6 +299,12 @@ function tabClientSessionId(tab: Pick<QueryTab, "id">, suffix?: (typeof BACKGROUreturn suffix ? `${tab.id}:${suffix}` : tab.id;}+// The export session is a separate connection, so it only sees committed data.+// An open manual transaction is passed along for the backend to read through.+function exportTxnSessionId(tab: Pick<QueryTab, "autoCommit" | "txnSessionId">): string | undefined {+ return tab.autoCommit === false ? tab.txnSessionId : undefined;+}+function resultRunCacheKey(tabId: string, runId: string): string {return `tab:${tabId}:run:${runId}`;}@@ -9833,6 +9839,7 @@ export const useQueryStore = defineStore("query", () => {keysetOptimizationEnabled: settings.queryExportKeysetOptimizationEnabled,csvQuoteMode: settings.csvQuoteMode,clientSessionId,+ txnSessionId: exportTxnSessionId(tab),nullLiteral: csvNullLiteralForMode(settings.csvNullMode),executionId: uuid(),exportTableName: options.format === "sql" && hasUniqueInsertTarget ? options.exportTableName : undefined,@@ -9875,6 +9882,7 @@ export const useQueryStore = defineStore("query", () => {keysetOptimizationEnabled: settings.queryExportKeysetOptimizationEnabled,csvQuoteMode: settings.csvQuoteMode,clientSessionId: `${tabClientSessionId(tab, "export")}:${exportId}`,+ txnSessionId: exportTxnSessionId(tab),nullLiteral: csvNullLiteralForMode(settings.csvNullMode),executionId: uuid(),numericColumnRightAlign: settings.numericColumnRightAlign,diff --git a/crates/dbx-core/src/data/query_result_export.rs b/crates/dbx-core/src/data/query_result_export.rsindex 8bebeb2f33..72aa3ed825 100644--- a/crates/dbx-core/src/data/query_result_export.rs+++ b/crates/dbx-core/src/data/query_result_export.rs@@ -21,8 +21,9 @@ use crate::database_export::{};use crate::models::connection::DatabaseType;use crate::query::{- await_stream_with_progress_timeout, canceled_error, close_query_session, execute_sql_statement_with_options,- operation_budget_for_pool_key, QueryExecutionOptions, StreamProgressClock, QUERY_CANCELED,+ await_stream_with_progress_timeout, canceled_error, close_query_session,+ execute_in_manual_transaction_with_options, execute_sql_statement_with_options, operation_budget_for_pool_key,+ ManualTransactionExecutionOptions, QueryExecutionOptions, StreamProgressClock, QUERY_CANCELED,};use crate::query_result_sql::{build_query_pagination_execution_plan, has_top_level_top, top_level_top_row_count, QueryPagination,@@ -105,6 +106,12 @@ pub struct QueryResultExportRequest {pub keyset_optimization_enabled: bool,#[serde(default, skip_serializing_if = "Option::is_none")]pub client_session_id: Option<String>,+ /// Open manual transaction of the source query tab. When set, every page is+ /// read through that transaction's connection so the export sees the same+ /// uncommitted changes as the result grid; a separate session would only+ /// see committed data.+ #[serde(default, skip_serializing_if = "Option::is_none")]+ pub txn_session_id: Option<String>,#[serde(default, skip_serializing_if = "Option::is_none")]pub execution_id: Option<String>,#[serde(default, skip_serializing_if = "Option::is_none")]@@ -697,6 +704,7 @@ fn streaming_pagination_preflight_error(page_size: usize,has_keyset_plan: bool,has_single_execution_bound: bool,+ use_agent_cursor: bool,) -> Option<&'static str> {if has_keyset_plan || supports_streaming_offset_pagination(request, page_size) || has_single_execution_bound {return None;@@ -704,7 +712,7 @@ fn streaming_pagination_preflight_error(if request.database_type == DatabaseType::Highgo {return Some(HIGHGO_STREAMING_PAGINATION_UNSUPPORTED_ERROR);}- (!request.use_agent_cursor).then_some(STREAMING_PAGINATION_UNSUPPORTED_ERROR)+ (!use_agent_cursor).then_some(STREAMING_PAGINATION_UNSUPPORTED_ERROR)}/// Enforceable in-memory row bound for a single-execution export, or `None`@@ -940,24 +948,34 @@ async fn export_query_result_core_inner(on_progress(progress(request, 0, ExportStatus::Running, None));- if try_export_postgres_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {- return Ok(());- }+ // The streaming fast paths below check out their own pooled connection, which+ // cannot see an open manual transaction. Inside a transaction the export pages+ // through the transaction's connection instead, the same way the result grid+ // pages, and result-session cursors are not opened there.+ let txn_session_id = request.txn_session_id.as_deref().map(str::trim).filter(|id| !id.is_empty());+ let use_agent_cursor = request.use_agent_cursor && txn_session_id.is_none();- if try_export_sqlserver_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {- return Ok(());- }+ if txn_session_id.is_none() {+ if try_export_postgres_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {+ return Ok(());+ }- // MySQL does not guarantee a stable row order for independent LIMIT/OFFSET- // executions without ORDER BY, so query-result export must stream one run.- if try_export_mysql_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {- return Ok(());- }+ if try_export_sqlserver_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {+ return Ok(());+ }- // ClickHouse HTTP pagination is unsafe for unsorted result sets; stream one- // response so large exports preserve the server's single execution order.- if try_export_clickhouse_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {- return Ok(());+ // MySQL does not guarantee a stable row order for independent LIMIT/OFFSET+ // executions without ORDER BY, so query-result export must stream one run.+ if try_export_mysql_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await? {+ return Ok(());+ }++ // ClickHouse HTTP pagination is unsafe for unsorted result sets; stream one+ // response so large exports preserve the server's single execution order.+ if try_export_clickhouse_query_result_stream(state, request, &format, cancel_token.clone(), on_progress).await?+ {+ return Ok(());+ }}let mut text_file = if format == "csv" || format == "txt" {@@ -987,6 +1005,7 @@ async fn export_query_result_core_inner(page_size,keyset_plan.is_some(),single_execution_bound.is_some(),+ use_agent_cursor,) {return Err(error.to_string());}@@ -1029,7 +1048,7 @@ async fn export_query_result_core_inner(query_base_sql: request.query_base_sql.clone(),database_type: Some(request.database_type),pagination: QueryPagination { limit: this_page, offset, session_id: session_id.clone() },- use_agent_cursor: request.use_agent_cursor,+ use_agent_cursor,first_page_uses_actual_sql: true,});if let Some(error) = plan.pagination_error {@@ -1065,17 +1084,41 @@ async fn export_query_result_core_inner(}};- let mut result = match execute_sql_statement_with_options(- state,- &request.connection_id,- &request.database,- &sql_to_execute,- request.schema.as_deref(),- cancel_token.clone(),- options,- )- .await- {+ let page_result = if let Some(txn_session_id) = txn_session_id {+ execute_in_manual_transaction_with_options(+ state,+ txn_session_id,+ &sql_to_execute,+ &request.database,+ request.schema.as_deref(),+ ManualTransactionExecutionOptions {+ max_rows: Some(plan_limit),+ execution_id: request.execution_id.clone(),+ timeout_secs: request.timeout_secs,+ ..Default::default()+ },+ )+ .await+ .and_then(|results| {+ results+ .into_iter()+ .next()+ .map(|result| result.result)+ .ok_or_else(|| "Manual transaction export returned no result".to_string())+ })+ } else {+ execute_sql_statement_with_options(+ state,+ &request.connection_id,+ &request.database,+ &sql_to_execute,+ request.schema.as_deref(),+ cancel_token.clone(),+ options,+ )+ .await+ };+ let mut result = match page_result {Ok(result) => result,Err(error) => {if error == QUERY_CANCELED@@ -2271,6 +2314,7 @@ mod tests {timeout_secs: None,keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: None,date_time_format: None,export_table_name: Some("gen_table".to_string()),@@ -2364,6 +2408,7 @@ mod tests {timeout_secs: None,keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: None,date_time_format: None,export_table_name: Some("users".to_string()),@@ -2452,6 +2497,7 @@ mod tests {timeout_secs: None,keyset_optimization_enabled: true,client_session_id: None,+ txn_session_id: None,execution_id: None,date_time_format: None,csv_quote_mode: CsvQuoteMode::All,@@ -2655,7 +2701,7 @@ mod tests {assert!(!supports_streaming_offset_pagination(&req, 100));assert_eq!(- streaming_pagination_preflight_error(&req, 100, false, false),+ streaming_pagination_preflight_error(&req, 100, false, false, req.use_agent_cursor),Some(HIGHGO_STREAMING_PAGINATION_UNSUPPORTED_ERROR));}@@ -2668,7 +2714,7 @@ mod tests {req.sql = "SELECT * FROM users; SELECT 1".to_string();req.query_base_sql = req.sql.clone();- assert_eq!(streaming_pagination_preflight_error(&req, 100, false, false), None);+ assert_eq!(streaming_pagination_preflight_error(&req, 100, false, false, req.use_agent_cursor), None);}#[test]@@ -2682,12 +2728,12 @@ mod tests {req.query_base_sql = req.sql.clone();req.use_agent_cursor = true;assert!(!supports_streaming_offset_pagination(&req, 100));- assert_eq!(streaming_pagination_preflight_error(&req, 100, false, false), None);+ assert_eq!(streaming_pagination_preflight_error(&req, 100, false, false, req.use_agent_cursor), None);assert!(should_fetch_next_page(true, true, 100, 100, 100));assert!(!should_fetch_next_page(true, false, 100, 100, 100));req.use_agent_cursor = false;assert_eq!(- streaming_pagination_preflight_error(&req, 100, false, false),+ streaming_pagination_preflight_error(&req, 100, false, false, req.use_agent_cursor),Some(STREAMING_PAGINATION_UNSUPPORTED_ERROR));}diff --git a/crates/dbx-core/tests/live_clickhouse_query_result_export.rs b/crates/dbx-core/tests/live_clickhouse_query_result_export.rsindex 1569123b8d..e69bfa677e 100644--- a/crates/dbx-core/tests/live_clickhouse_query_result_export.rs+++ b/crates/dbx-core/tests/live_clickhouse_query_result_export.rs@@ -99,6 +99,7 @@ async fn live_clickhouse_query_result_export_xlsx_streams_random_order_query_onctimeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-clickhouse-query-export-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),diff --git a/crates/dbx-core/tests/live_mysql57.rs b/crates/dbx-core/tests/live_mysql57.rsindex 37c1c2efff..a4f161eb0a 100644--- a/crates/dbx-core/tests/live_mysql57.rs+++ b/crates/dbx-core/tests/live_mysql57.rs@@ -474,6 +474,7 @@ async fn live_mysql_query_result_export_xlsx_streams_single_query_without_duplictimeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-mysql-query-export-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -572,6 +573,7 @@ async fn live_mysql_csv_temporal_export_round_trip_preserves_dbx_force_text_valutimeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-mysql-issue-8803-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -694,6 +696,7 @@ async fn live_mysql_xlsx_export_can_outlive_query_timeout_while_rows_keep_arrivitimeout_secs: Some(1),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-mysql-query-export-timeout-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),diff --git a/crates/dbx-core/tests/live_mysql_query_result_export_transaction.rs b/crates/dbx-core/tests/live_mysql_query_result_export_transaction.rsnew file mode 100644index 0000000000..05a8b99e9b--- /dev/null+++ b/crates/dbx-core/tests/live_mysql_query_result_export_transaction.rs@@ -0,0 +1,138 @@+use dbx_core::connection::AppState;+use dbx_core::models::connection::{ConnectionConfig, DatabaseType};+use dbx_core::query::{+ begin_manual_transaction, execute_in_manual_transaction, execute_sql_statement, rollback_manual_transaction,+};+use dbx_core::query_result_export::{export_query_result_core, QueryResultExportRequest};+use std::sync::Arc;++// More rows than one export page, so the export cannot be served by a single page.+const ROWS: usize = 650;++fn live_mysql_config(id: &str) -> ConnectionConfig {+ let host = std::env::var("DBX_LIVE_SQL_FILE_MYSQL_HOST").expect("DBX_LIVE_SQL_FILE_MYSQL_HOST");+ let port =+ std::env::var("DBX_LIVE_SQL_FILE_MYSQL_PORT").ok().and_then(|value| value.parse::<u16>().ok()).unwrap_or(3306);+ let username = std::env::var("DBX_LIVE_SQL_FILE_MYSQL_USER").expect("DBX_LIVE_SQL_FILE_MYSQL_USER");+ let password = std::env::var("DBX_LIVE_SQL_FILE_MYSQL_PASSWORD").expect("DBX_LIVE_SQL_FILE_MYSQL_PASSWORD");++ serde_json::from_value(serde_json::json!({+ "id": id,+ "name": id,+ "db_type": DatabaseType::Mysql,+ "host": host,+ "port": port,+ "username": username,+ "password": password,+ "database": null,+ "connect_timeout_secs": 10,+ "query_timeout_secs": 30,+ "idle_timeout_secs": 60,+ "keepalive_interval_secs": 0+ }))+ .expect("live MySQL export config should deserialize")+}++fn export_request(+ connection_id: &str,+ database: &str,+ file_path: &str,+ client_session_id: &str,+ txn_session_id: Option<&str>,+) -> QueryResultExportRequest {+ let sql = "SELECT id, v FROM t ORDER BY id";+ serde_json::from_value(serde_json::json!({+ "exportId": uuid::Uuid::new_v4().to_string(),+ "connectionId": connection_id,+ "database": database,+ "sql": sql,+ "queryBaseSql": sql,+ "databaseType": DatabaseType::Mysql,+ "filePath": file_path,+ "format": "csv",+ "pageSize": 100,+ "clientSessionId": client_session_id,+ "txnSessionId": txn_session_id,+ }))+ .expect("export request should deserialize")+}++fn csv_rows_with_value(path: &std::path::Path, value: &str) -> usize {+ let text = std::fs::read_to_string(path).unwrap();+ text.lines()+ .skip(1)+ .filter(|line| line.trim_end().rsplit(',').next().is_some_and(|field| field.trim_matches('"') == value))+ .count()+}++async fn committed_rows_with_v1(state: &AppState, connection_id: &str, database: &str) -> String {+ let result =+ execute_sql_statement(state, connection_id, database, "SELECT COUNT(*) FROM t WHERE v = 1", None, None)+ .await+ .unwrap();+ result.rows[0][0].as_str().map(str::to_string).unwrap_or_else(|| result.rows[0][0].to_string())+}++#[tokio::test]+#[ignore = "requires a disposable MySQL endpoint"]+async fn live_mysql_query_result_export_reads_through_open_manual_transaction() {+ let suffix = uuid::Uuid::new_v4().simple().to_string();+ let connection_id = format!("live-mysql-export-txn-{suffix}");+ let database = format!("dbx_eval_export_txn_{suffix}");+ let dir = std::env::temp_dir().join(format!("dbx-live-mysql-export-txn-{suffix}"));+ std::fs::create_dir_all(&dir).unwrap();+ let storage = dbx_core::persistence::test_storage::open(&dir.join("storage.db")).await.unwrap();+ let state = Arc::new(AppState::new(storage));+ state.configs.write().await.insert(connection_id.clone(), live_mysql_config(&connection_id));++ execute_sql_statement(&state, &connection_id, "", &format!("CREATE DATABASE `{database}`"), None, None)+ .await+ .unwrap();+ let values = (1..=ROWS).map(|id| format!("({id}, 0)")).collect::<Vec<_>>().join(",");+ for sql in+ ["CREATE TABLE t (id INT PRIMARY KEY, v INT NOT NULL)".to_string(), format!("INSERT INTO t VALUES {values}")]+ {+ execute_sql_statement(&state, &connection_id, &database, &sql, None, None).await.unwrap();+ }++ let txn = begin_manual_transaction(&state, &connection_id, &database, None, None).await.unwrap();+ execute_in_manual_transaction(&state, &txn, "UPDATE t SET v = 1", &database, None, None).await.unwrap();++ let with_txn_path = dir.join("with-txn.csv");+ let request = export_request(+ &connection_id,+ &database,+ with_txn_path.to_str().unwrap(),+ &format!("tab:export:{suffix}-a"),+ Some(&txn),+ );+ let with_txn_result = export_query_result_core(&state, &request, None, |_| {}).await;++ let without_txn_path = dir.join("without-txn.csv");+ let request = export_request(+ &connection_id,+ &database,+ without_txn_path.to_str().unwrap(),+ &format!("tab:export:{suffix}-b"),+ None,+ );+ let without_txn_result = export_query_result_core(&state, &request, None, |_| {}).await;++ // The export must leave the transaction open: rolling it back discards the update.+ let rollback_result = rollback_manual_transaction(&state, &txn).await;+ let committed_after_rollback = committed_rows_with_v1(&state, &connection_id, &database).await;++ let with_txn_updated = csv_rows_with_value(&with_txn_path, "1");+ let without_txn_updated = csv_rows_with_value(&without_txn_path, "1");+ execute_sql_statement(&state, &connection_id, "", &format!("DROP DATABASE `{database}`"), None, None)+ .await+ .unwrap();+ let _ = std::fs::remove_dir_all(&dir);++ with_txn_result.unwrap();+ without_txn_result.unwrap();+ rollback_result.unwrap();+ assert_eq!(with_txn_updated, ROWS, "export inside the transaction should see its uncommitted update");+ assert_eq!(without_txn_updated, 0, "export without the transaction reads committed data only");+ assert_eq!(committed_after_rollback, "0", "export must not commit the manual transaction");+}diff --git a/crates/dbx-core/tests/live_postgres_query_result_export.rs b/crates/dbx-core/tests/live_postgres_query_result_export.rsindex 8a8df4e5ee..f997bd656b 100644--- a/crates/dbx-core/tests/live_postgres_query_result_export.rs+++ b/crates/dbx-core/tests/live_postgres_query_result_export.rs@@ -151,6 +151,7 @@ async fn live_postgres_query_result_export_uses_single_streamed_query() {timeout_secs: Some(30),keyset_optimization_enabled: true,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-postgres-query-export-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -242,6 +243,7 @@ async fn live_postgres_query_result_xlsx_preserves_temporal_cell_types() {timeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: Some(format!("live-postgres-xlsx-temporal-{suffix}")),+ txn_session_id: None,execution_id: Some(format!("live-postgres-xlsx-temporal-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -322,6 +324,7 @@ async fn live_postgres_numeric_xlsx_ignores_fractional_trailing_zeros() {timeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: Some(format!("live-postgres-xlsx-numeric-{suffix}")),+ txn_session_id: None,execution_id: Some(format!("live-postgres-xlsx-numeric-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -407,6 +410,7 @@ async fn live_postgres_truncated_batch_result_export_replays_safe_temp_setup() {timeout_secs: Some(30),keyset_optimization_enabled: false,client_session_id: Some(format!("temp-export-csv-{short_suffix}")),+ txn_session_id: None,execution_id: Some(format!("temp-export-csv-{short_suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -440,6 +444,7 @@ async fn live_postgres_truncated_batch_result_export_replays_safe_temp_setup() {file_path: xlsx_path.to_string_lossy().to_string(),format: "xlsx".to_string(),client_session_id: Some(format!("temp-export-xlsx-{short_suffix}")),+ txn_session_id: None,execution_id: Some(format!("temp-export-xlsx-{short_suffix}")),export_schema: None,..request@@ -495,6 +500,7 @@ async fn live_postgres_xlsx_export_can_outlive_query_timeout_while_rows_keep_arrtimeout_secs: Some(1),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-postgres-query-export-timeout-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),@@ -573,6 +579,7 @@ async fn live_postgres_stream_still_times_out_without_progress_and_recovers() {timeout_secs: Some(1),keyset_optimization_enabled: false,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-postgres-query-export-stall-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),diff --git a/crates/dbx-core/tests/live_sqlserver_completion.rs b/crates/dbx-core/tests/live_sqlserver_completion.rsindex 805c930884..fca2202a71 100644--- a/crates/dbx-core/tests/live_sqlserver_completion.rs+++ b/crates/dbx-core/tests/live_sqlserver_completion.rs@@ -1221,6 +1221,7 @@ async fn live_sqlserver_query_result_export_streams_cte_query_to_csv() {timeout_secs: Some(10),keyset_optimization_enabled: true,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-sqlserver-export-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),diff --git a/crates/dbx-core/tests/live_sqlserver_query_result_export.rs b/crates/dbx-core/tests/live_sqlserver_query_result_export.rsindex 3045b27e9f..2a8d1ba42a 100644--- a/crates/dbx-core/tests/live_sqlserver_query_result_export.rs+++ b/crates/dbx-core/tests/live_sqlserver_query_result_export.rs@@ -130,6 +130,7 @@ async fn live_sqlserver_xlsx_export_can_outlive_query_timeout_while_rows_keep_artimeout_secs: Some(1),keyset_optimization_enabled: true,client_session_id: None,+ txn_session_id: None,execution_id: Some(format!("live-sqlserver-xlsx-{suffix}")),date_time_format: None,csv_quote_mode: Default::default(),