Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: PostgreSQL double quotes in name (#1765)

h3n4lf7df8d67034e
diff --git a/plugin/db/pg/sync.go b/plugin/db/pg/sync.go
index 9dd8f382bc..77be28d873 100644
--- a/plugin/db/pg/sync.go
+++ b/plugin/db/pg/sync.go
@@ -707,8 +707,7 @@ func quoteIdentifier(s string) string {
quote = true
}
if quote {
- return fmt.Sprintf("\"%s\"", strings.ReplaceAll(s, "\"", "\"\""))
+ return fmt.Sprintf("\"%s\"", s)
}
return s
-
}