From e17a7bbfdc9cc426616a750b7e8fec83d525c165 Mon Sep 17 00:00:00 2001 From: Cedric GESTES Date: Sat, 19 Aug 2017 00:19:20 +0200 Subject: [PATCH] Support cloudsqlpostgres dialect This is needed for proper cloud sql proxy. see https://github.com/GoogleCloudPlatform/cloudsql-proxy and https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/proxy/dialers/postgres/hook_test.go for details. --- dialect_postgres.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dialect_postgres.go b/dialect_postgres.go index ed5248e0..6f9191ae 100644 --- a/dialect_postgres.go +++ b/dialect_postgres.go @@ -13,6 +13,7 @@ type postgres struct { func init() { RegisterDialect("postgres", &postgres{}) + RegisterDialect("cloudsqlpostgres", &postgres{}) } func (postgres) GetName() string {