Commit Graph
135 Commits
Author SHA1 Message Date
t8y2 083ffe7a35 fix(ci): split checks and enforce warning-free Rust builds 2026-07-20 13:45:59 +08:00
vrustx 66bdcf8153 feat(mysql): reuse byte buffers for UTF-8 strings 2026-07-19 09:02:47 +08:00
zipg d14fd84709 fix(mysql): preserve results after hash comments 2026-07-19 08:53:20 +08:00
Elias 08cd8903f4 feat(xugu): expose programmable object metadata 2026-07-17 17:53:44 +08:00
t8y2 d3887c9936 fix(mysql): update sha256_password authentication support 2026-07-17 17:30:05 +08:00
vrustx ecec25f0f4 fix(mysql): handle Manticore session initialization 2026-07-17 00:04:45 +08:00
t8y2 b0a20e8364 fix(mysql): identify enum and set result columns 2026-07-16 16:40:38 +08:00
Freedom c5faad8172 fix(mysql): distinguish text and binary columns 2026-07-16 14:30:53 +08:00
zipg 60b88c90e0 fix(cnch): support mysql protocol initialization 2026-07-15 19:32:29 +08:00
shen 3748d83cde feat(desktop): add database info and SQL statement markers 2026-07-15 18:35:34 +08:00
zipg 3802f1951b fix(database): 保留数据库名称前导空格 (#3509) 2026-07-15 18:06:08 +08:00
Freedom 4e0bec13f1 fix(mysql): preserve group concat metadata limit 2026-07-14 15:30:57 +08:00
t8y2 ec486b29a7 fix(mysql): avoid foreign key metadata joins 2026-07-11 09:10:36 +08:00
zipg 3a5ef776b1 fix(mysql): optimize stored procedure loading 2026-07-11 00:32:49 +08:00
DengQingNian e429c8945b feat(mysql): edit column charset and collation 2026-07-10 15:13:57 +08:00
zipgandzipg 63ef26b25a fix: 兼容 MySQL 代理 packet out of order
Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
2026-07-09 22:21:32 +08:00
t8y2 20c464a6a9 fix(mysql): fallback to SHOW TABLES for empty metadata 2026-07-09 12:10:39 +08:00
t8y2 a00f31f23c fix(mysql): retry without unsupported setup variable 2026-07-09 11:04:27 +08:00
hhzorg d9bb92d1e9 feat(doris): show external catalogs in sidebar 2026-07-09 00:45:29 +08:00
onenewcode 1b13d2176b fix(metadata): unify enum column metadata 2026-07-08 21:02:53 +08:00
Guoyu Su dafa3e0f79 fix(mysql): strip allowMultiQueries URL param (#2917) 2026-07-08 19:30:55 +08:00
zipg 2dc8609495 fix(mysql): skip MySQL-only setup for compatible engines 2026-07-08 15:37:49 +08:00
gggaiitx b49638ff1e fix(mysql): set group_concat_max_len during setup 2026-07-07 17:58:07 +08:00
t8y2 23d268450c fix(mysql): strip IPv6 brackets before TCP connect 2026-07-07 15:48:35 +08:00
t8y2 3609641fc8 fix(mysql): stream query result exports 2026-07-07 00:50:14 +08:00
wnyr dacd311490 fix(mysql): handle proxy database handshake fallback 2026-07-06 12:57:27 +08:00
t8y2 5c37c0ad0d fix(mysql): disable TLS by default 2026-07-06 10:10:30 +08:00
Guoyu Su 4b6a588354 fix(mysql): honor preferred TLS mode 2026-07-05 22:16:07 +08:00
LRcoding 21cec24e75 fix(mysql): support cleartext password auth option (#2499) 2026-07-03 13:47:47 +08:00
Abeautifulsnow d55a708d6a feat(query): add manual transaction controls 2026-07-02 01:30:31 +08:00
zipgandstaff 04b12f7c06 Fix: 修复 MySQL 存储过程 SELECT 结果未显示 (#2245)
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-06-30 18:27:03 +08:00
zipg 9b93ac777c fix: 修复 MySQL 索引注释回填 2026-06-30 17:40:48 +08:00
zipg 2a2d46c48b Fix:同步 OceanBase 查询超时设置 (#2156) 2026-06-30 00:12:15 +08:00
zipg 7091615f8a fix: 修复 PostgreSQL 重载过程显示重复 2026-06-29 19:58:01 +08:00
zipg 56fb49058f fix(sidebar): preserve comment-matched tables during remote table list refresh 2026-06-28 18:52:40 +08:00
Guoyu Su 0fb39cb33f fix(mysql): use milliseconds for tcp keepalive 2026-06-28 16:34:09 +08:00
t8y2 c15fb85561 fix(doris): load indexes from table DDL 2026-06-27 11:06:49 +08:00
miracleandonceMisery d128604743 fix(connection): 修复数据库连接超时后无法可靠恢复的问题
* feat(core): implement PIP-0001 database connection timeout recovery

- Add DbOperationBudget struct for unified execution budget model
- Add deadpool create/recycle timeout for PostgreSQL pools
- Add checkout_postgres_client helper replacing 14 bare pool.get() calls
  with timeout + cancel token support
- Fix PostgreSQL TLS cancel: rebuild TLS connector from stored context,
  fallback to NoTls on failure
- Add timeout to MySQL kill_query and kill_query_with_opts (5s)
- Extend is_connection_error to match deadpool pool timeout messages
- Unify keepalive default to 30s (was 60s Rust / 0s frontend mismatch)
- Inject PostgreSQL TCP keepalive params (idle=30s, interval=10s, retries=3)
- Inject MySQL tcp_keepalive=30s in OptsBuilder
- Make MySQL inactive_connection_ttl configurable from idle_timeout_secs
- Add stage-based structured logging for pool.checkout/health.check/cancel
- Store PostgresCancelContext in AppState for TLS cancel reconstruction
- Clean up cancel contexts on pool removal/drain
- Add unit tests for DbOperationBudget and pool timeout error detection

* fix(core): align timeout recovery with PIP-0001

* fix(core): handle timeout recovery review issues

* fix(core): complete connection timeout recovery

* fix(core): fall back postgres cancel connector build

* refactor: revert comment translations to English in connection.rs and query.rs

- Revert DbOperationBudget doc comments to English (query.rs)
- Revert PostgresCancelContext and TLS cancel comments to English (connection.rs)
- Keep Chinese error-matching strings in is_connection_error unchanged

---------

Co-authored-by: onceMisery <onceMisery@users.noreply.github.com>
2026-06-26 21:41:56 +08:00
LRcoding eb664dba4c fix(core): support fuzzy table search 2026-06-26 13:15:01 +08:00
zipg 0f312084ff fix(sidebar): paginate table list by page size 2026-06-25 23:54:09 +08:00
t8y2 0c0e90ab1a feat(export): add table read cursor sessions 2026-06-25 18:37:04 +08:00
jischeng a595d4d4bd feat(mysql): support external catalogs (Paimon/Hive) via catalog= URL param
StarRocks/Doris expose external storage through a catalog. dbx had no
catalog concept, so connecting to e.g. `paimon_catalog.clip` failed: the
URL path's database was sent as the MySQL handshake schema and rejected
before any `SET catalog` could run, and table listing/preview ran against
the default catalog.

Add an opt-in `catalog=<name>` URL parameter for mysql-family connections:

- `mysql_connection_catalog`: reads the `catalog` param (percent-decoded).
- `mysql_setup_queries`: emits `SET catalog = <name>` when present. Pushed
  last so mysql_async's back-to-front setup execution (Vec::pop) runs it
  before `USE <database>`, which would otherwise fail (the database lives
  in the external catalog). The pool re-runs setup after each reset, so the
  catalog stays current.
- `mysql_async_url`: when a catalog is configured, strip the database path
  from the URL handed to mysql_async so the handshake does not send the
  external-catalog database as the schema. The original URL (with path) is
  still used for setup, so `USE <database>` is emitted correctly.
- Add `catalog` to `is_dbx_handled_mysql_url_param` so mysql_async ignores
  the unknown param.

This is opt-in: only connections that set `catalog=` are affected; all
existing mysql/StarRocks/Doris connections behave unchanged. Configure a
Paimon connection as `database=clip`, `url_params=catalog=paimon_catalog`.

Verified against a StarRocks + Paimon catalog via the dbx MCP bridge:
SHOW DATABASES, SHOW TABLES, DESCRIBE, and unqualified `SELECT * FROM <t>`
all resolve in the selected catalog.
2026-06-25 18:07:26 +08:00
t8y2 b356aa8df5 fix(connection): recover idle connection pools 2026-06-24 20:12:24 +08:00
t8y2 cebb39cb80 feat(completion): add scoped metadata assistant 2026-06-24 00:40:28 +08:00
zipg 1c7ef0d235 feat(mysql): optimize table structure loading 2026-06-23 17:31:37 +08:00
t8y2 e55dbe2acc fix(mysql): avoid key usage join for columns 2026-06-22 18:46:45 +08:00
hb 4e07f73157 fix(mysql): preserve temporary tables in client session pools
Disable COM_RESET_CONNECTION for single-connection session pools
(max_connections == 1) so that MySQL session state such as TEMPORARY
TABLEs is not cleared when a connection is returned to the pool.

Closes #1509
2026-06-22 00:37:41 +08:00
t8y2 0d4e35ee02 fix(core): increase PostgreSQL and MySQL connection pool size
- PostgreSQL: 4 -> 10 connections
- MySQL: 3 -> 10 connections

Fixes #1516
2026-06-21 21:01:15 +08:00
t8y2 6c571a57ab fix(mysql): cancel running SQL imports 2026-06-21 09:14:54 +08:00
dbin0123 92d3f64eae feat: fix connection cascade failure, add auto-recovery for all drivers 2026-06-19 23:06:21 +08:00