fix: 修复 SQL Server 列注释显示

This commit is contained in:
zipg authored and GitHub committed 2026-06-30 17:31:57 +08:00
1 parent 5d3e692b6b
commit 95be4fb195
6 files changed
+186 -35

No files matched your search

+6
View File
@@ -62,6 +62,12 @@ export function connectionObjectTreeQuerySchema(connection: JdbcDialectConnectio
return schema || database;
}
export function metadataSchemaForConnection(connection: JdbcDialectConnection | undefined, database: string, schema?: string): string {
const type = effectiveDatabaseTypeForConnection(connection);
if (type === "sqlserver") return schema || "dbo";
return connectionObjectTreeQuerySchema(connection, database, schema);
}
export function connectionObjectTreeNodeSchema(connection: JdbcDialectConnection | undefined, database: string, schema?: string): string | undefined {
if (connection?.db_type === "jdbc" && inferJdbcDialect(connection) === "databend") return schema || database;
if (connection?.db_type === "jdbc" && inferJdbcDialect(connection) === "databend") return schema || database;