feat(sqlserver): add sql server 2000 legacy support

This commit is contained in:
zipg authored and GitHub committed 2026-09-01 00:33:06 +08:00
1 parent 69a032ed63
commit afe3b3f3c2
20 files changed
+682 -24

No files matched your search

@@ -153,7 +153,8 @@ export function manifestDatabaseTypes(): DatabaseType[] {
return DATABASE_DRIVER_ENTRIES.map((entry) => entry.dbType);
}
export function usesAgentCursorForQuery(dbType?: DatabaseType): boolean {
export function usesAgentCursorForQuery(dbType?: DatabaseType, driverProfile?: string): boolean {
if (dbType === "sqlserver" && driverProfile?.trim().toLowerCase() === "sqlserver-legacy") return true;
const runtimeMode = databaseRuntimeMode(dbType);
return runtimeMode === "agent" || runtimeMode === "external";
}
@@ -3,6 +3,7 @@ import * as api from "@/lib/backend/api.ts";
export interface DatabaseSearchSqlOptions {
databaseType?: DatabaseType;
driverProfile?: string;
schema?: string;
tableName: string;
columns: ColumnInfo[];