fix(cache): avoid quoted identifiers and alias lists for cache sql

Closes #8340
This commit is contained in:
t8y2 committed 2026-09-08 01:53:50 +08:00
1 parent 4f2c67e34e
commit abc32f1c71
5 files changed
+124 -6

No files matched your search

+3 -1
View File
@@ -42,7 +42,9 @@ const JDBC_DIALECT_MATCHERS: Array<{ type: DatabaseType; patterns: RegExp[] }> =
{ type: "sqlite", patterns: [/jdbc:sqlite:/i, /sqlite/i] },
{ type: "db2", patterns: [/jdbc:db2:/i, /\bdb2\b/i] },
{ type: "informix", patterns: [/jdbc:informix/i, /informix/i] },
{ type: "iris", patterns: [/jdbc:(?:iris|cache):/i, /com\.intersystems\.jdbc\.(?:IRIS|Cache)Driver/i, /intersystems-jdbc/i] },
// CacheDB.jar (legacy Caché driver) carries none of the intersystems URL or
// class-name markers, so match the jar file name / driver label directly.
{ type: "iris", patterns: [/jdbc:(?:iris|cache):/i, /com\.intersystems\.jdbc\.(?:IRIS|Cache)Driver/i, /intersystems-jdbc/i, /cachedb/i] },
];
// ASE uses Transact-SQL, but treating it as SQL Server globally would also