Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复表结构显示不正确的 bug #2406

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

LeoQuote
Copy link
Collaborator

fix #2378
fix #2402

之前的修改(#2230)中, 为了正常显示 cassandra 的表结构信息做的改动, 但是没有考虑到部分数据库的表结构信息并不是像 mysql 的一样, 如 mssql 和 oracle , pg 都是只有字段的列表, 类型, 是否主键等等. 为了兼容这种情况, 把前端重新修改了一下:

引入一个 need_describe_display 的变量, 只有在返回的结果集中, 字段列表为 "table", "create table" , 或语句和 mysql 的 show create table 类似时, 才调用显示表结构的函数, 其他情况下, 都使用普通的表格展示

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5fd57db) 76.34% compared to head (6305fee) 76.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2406   +/-   ##
=======================================
  Coverage   76.34%   76.34%           
=======================================
  Files         115      115           
  Lines       15852    15852           
=======================================
  Hits        12103    12103           
  Misses       3749     3749           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LeoQuote
Copy link
Collaborator Author

由于 bug 是前端 bug, 我这边在 pg 上测试了一下, 响应正常, 先merge 了

@LeoQuote LeoQuote merged commit 527eb30 into hhyo:master Nov 23, 2023
10 checks passed
@LeoQuote LeoQuote deleted the 2402-mssql无法显示表结构 branch November 23, 2023 16:45
finovy pushed a commit to finovy/Archery that referenced this pull request Dec 1, 2023
* 修复表结构显示不正确的 bug

* f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mssql无法显示表结构 v1.10.0,查询页面,选择查询oracle表,返回创建表语句有问题
1 participant