diff --git a/postgres_pgx/postgres_pgx.go b/postgres_pgx/postgres_pgx.go index 8f464265..ee04ff74 100644 --- a/postgres_pgx/postgres_pgx.go +++ b/postgres_pgx/postgres_pgx.go @@ -150,7 +150,8 @@ func GetConnectionString(ApplicationName string) string { dsn += "password=" + Settings.DB_PASSWORD + " " dsn += "dbname=" + Settings.DB_NAME + " " dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants.TIME_ZONE + " " - dsn += "application_name=" + ApplicationName + dsn += "application_name=" + ApplicationName + " " + dsn += "search_path=" + Settings.DB_SCHEMA + " " return dsn } diff --git a/postgres_pgxpool/postgres_pgxpool.go b/postgres_pgxpool/postgres_pgxpool.go index 1eeb0ff8..f64da11f 100644 --- a/postgres_pgxpool/postgres_pgxpool.go +++ b/postgres_pgxpool/postgres_pgxpool.go @@ -136,7 +136,8 @@ func GetConnectionString(ApplicationName string) string { dsn += "password=" + Settings.DB_PASSWORD + " " dsn += "dbname=" + Settings.DB_NAME + " " dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants.TIME_ZONE + " " - dsn += "application_name=" + ApplicationName + dsn += "application_name=" + ApplicationName + " " + dsn += "search_path=" + Settings.DB_SCHEMA + " " return dsn }