fix: 修复侧边栏定位表节点异常及连接配置测试字段缺失
* Fix: 修复侧边栏定位表节点异常 * Fix: 修复连接配置测试字段缺失 --------- Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
This commit is contained in:
1 parent
37d0dd7ad7
commit
dbfe284ca9
5 files changed
+141
-6
No files matched your search
@@ -155,7 +155,7 @@ function sameIdentifier(left: string | undefined, right: string | undefined): bo
|
||||
}
|
||||
|
||||
function nodeMatchesCandidate(node: TreeNode, candidate: QueryCursorTableCandidate): boolean {
|
||||
if (node.type !== "table" && node.type !== "view") return false;
|
||||
if (node.type !== "table" && node.type !== "view" && node.type !== "materialized_view") return false;
|
||||
if (node.connectionId !== candidate.connectionId) return false;
|
||||
if (!sameIdentifier(node.database, candidate.database)) return false;
|
||||
if (candidate.schema && !sameIdentifier(node.schema, candidate.schema)) return false;
|
||||
|
||||
Reference in new issue
Block a user