Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(pam): add dialect TODO to FilterPopover, unexport quoteIdent/quoteLiteral
bernie-ga428653d6132
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsxindex 68573fc665..e7fe181984 100644--- a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx@@ -15,6 +15,7 @@ import {import type { ColumnInfo } from "../data-explorer-types";import type { FilterCondition, FilterOperator, SqlDialect } from "../sql-generation";+// TODO: split by dialect when we add more DB enginesfunction getFilterPlaceholder(columnType: string, operator: FilterOperator): string {switch (operator) {case "LIKE":diff --git a/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts b/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.tsindex 307d25f05c..6b8f123950 100644--- a/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts+++ b/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts@@ -3,12 +3,12 @@export type SqlDialect = "postgres" | "mysql";-export function quoteIdent(name: string, dialect: SqlDialect = "postgres"): string {+function quoteIdent(name: string, dialect: SqlDialect = "postgres"): string {if (dialect === "mysql") return `\`${name.replace(/`/g, "``")}\``;return `"${name.replace(/"/g, '""')}"`;}-export function quoteLiteral(value: unknown, dialect: SqlDialect = "postgres"): string {+function quoteLiteral(value: unknown, dialect: SqlDialect = "postgres"): string {if (value === null || value === undefined) return "NULL";if (typeof value === "number") {if (!Number.isFinite(value)) return "NULL";