feat(sqlserver): add sql server 2000 legacy support
This commit is contained in:
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[];
|
||||
|
||||
Reference in new issue
Block a user