fix(postgres): quote data grid condition completions

This commit is contained in:
t8y2 committed 2026-07-21 23:13:18 +08:00
1 parent ff4eac3782
commit 4e926cf22a
6 files changed
+77 -4

No files matched your search

+1 -1
View File
@@ -2777,7 +2777,7 @@ function unquoteIdentifier(value: string): string {
return value;
}
function quoteSqlIdentifier(identifier: string, dialect?: "mysql" | "postgres" | "sqlserver"): string {
export function quoteSqlIdentifier(identifier: string, dialect?: "mysql" | "postgres" | "sqlserver"): string {
if (dialect !== "postgres" || !requiresPostgresIdentifierQuote(identifier)) return identifier;
return `"${identifier.replaceAll('"', '""')}"`;
}