dbx icon indicating copy to clipboard operation
dbx copied to clipboard

[Bug] 数据库链接板块,搜索出来的表无法展开查看列名等信息

Open vscoder-loongking opened this issue 6 months ago • 4 comments

提交前确认

  • [x] 我已搜索现有 issues,确认没有重复反馈。
  • [ ] 我已尝试使用最新版本或当前 main 分支复现。
  • [x] 我提供的信息中不包含真实密码、Token、私钥或生产数据。

问题模块

结构浏览

数据库类型

不适用

数据库版本

No response

连接方式

SSH 隧道

问题描述

数据库链接板块,搜索出来的表无法展开查看列名等信息

复现步骤

1、搜索表 2、在搜索出来的表点击展开的小箭头 3、无法显示列名等信息

期望行为

可以正常展开

实际行为

无法展开

最小复现 SQL / 数据结构


错误日志


截图

Image

不搜索的情况在可以展开表名下面的信息

Image

DBX 版本 / Commit

0.5.7

操作系统

macOS Apple Silicon

补充信息

No response

vscoder-loongking avatar May 15 '26 03:05 vscoder-loongking

可否提供一下具体数据库版本号

t8y2 avatar May 15 '26 04:05 t8y2

dm8

许龙津 @.***

------------------ 原始邮件 ------------------ 发件人: skyler @.> 发送时间: 2026年5月15日 12:21 收件人: t8y2/dbx @.> 抄送: loongking @.>, Author @.> 主题: Re: [t8y2/dbx] [Bug] 数据库链接板块,搜索出来的表无法展开查看列名等信息 (Issue #281)

t8y2 left a comment (t8y2/dbx#281)

可否提供一下具体数据库版本号

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

vscoder-loongking avatar May 15 '26 04:05 vscoder-loongking

Fixed in commit c8ba3da.

Root cause: while the sidebar search result matched the table name, the filtered tree continued to filter the table loaded children by the same search term. After expanding a searched table, metadata groups such as columns/indexes were filtered out, so it looked like the table could not expand.

The sidebar search filtering is now extracted into a tested helper, and when a table/view itself matches the search query, its loaded child tree is preserved so columns and other metadata remain visible after expansion.

Verified with vue-tsc --noEmit, pnpm lint, and pnpm test.

t8y2 avatar May 15 '26 04:05 t8y2

Closing as fixed by c8ba3da.

t8y2 avatar May 15 '26 04:05 t8y2