Commit Graph
7 Commits
Author SHA1 Message Date
zipg 7b407ccbfc fix(sqlserver): restore original temp table names in completion 2026-09-21 17:23:42 +08:00
zipg 32389f7dc2 fix(sqlserver): tolerate tinyint foreign key referential actions 2026-09-21 16:38:47 +08:00
t8y2 7ad4ea8373 fix(sqlserver): render fk referential actions and schema-qualified refs
Closes #9773
2026-09-21 01:44:23 +08:00
efeire 33afb0b432 feat(oceanbase-oracle): split execution time from client wait 2026-09-20 12:31:47 +08:00
zipgandzipg 74c275b2ce fix(sqlserver): 表结构支持查看约束(主键/唯一/外键/检查/默认值) (#9581)
SQL Server 连接的「编辑表结构」面板里只有 DDL/字段/索引/外键/触发器,
没有「约束」页签;用户无法查看某张表的约束。

list_constraints 在 SQL Server 驱动中完全缺失:驱动侧没有对应实现,
dbx-core 的 list_constraints_core 没有 SQL Server 分支,直接落到默认的
空数组;前端 tableMetadataCapabilities 也没有声明 sqlserver 支持,
因此即使是空页签也不会渲染。

- dbx-drivers 新增 list_constraints,用一条 UNION ALL 查询汇总
  sys.key_constraints(PK/UNIQUE)、sys.foreign_keys(含引用库表列、
  ON UPDATE/DELETE 动作、is_not_trusted)、sys.check_constraints、
  sys.default_constraints;列名用 FOR XML PATH('') 聚合,兼容 SQL Server
  2008(无 STRING_AGG)
- list_constraints_core 增加 SQL Server 分支与链接服务器早退
- tableMetadataCapabilities 为 sqlserver 打开 constraints,前端显示「约束」页签
- 新增单测覆盖 SQL 形态与列名拆包,并补充前端能力断言

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
2026-09-19 13:31:45 +08:00
jearhe 392138f59a refactor(sqlserver): resolve object source via OBJECT_ID identity 2026-09-18 14:12:12 +08:00
t8y2 bc00431834 feat(core): split foundational capabilities into dedicated crates 2026-09-18 13:00:56 +08:00