1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-23 22:45:11 +02:00

сделал dsn += "search_path=" + Settings.DB_SCHEMA + " "

This commit is contained in:
Nikitin Aleksandr
2025-06-30 13:10:26 +03:00
parent 34bee80ea4
commit bc2d7aae73
2 changed files with 4 additions and 2 deletions

View File

@@ -150,7 +150,8 @@ func GetConnectionString(ApplicationName string) string {
dsn += "password=" + Settings.DB_PASSWORD + " " dsn += "password=" + Settings.DB_PASSWORD + " "
dsn += "dbname=" + Settings.DB_NAME + " " dsn += "dbname=" + Settings.DB_NAME + " "
dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants.TIME_ZONE + " " 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 return dsn
} }

View File

@@ -136,7 +136,8 @@ func GetConnectionString(ApplicationName string) string {
dsn += "password=" + Settings.DB_PASSWORD + " " dsn += "password=" + Settings.DB_PASSWORD + " "
dsn += "dbname=" + Settings.DB_NAME + " " dsn += "dbname=" + Settings.DB_NAME + " "
dsn += "port=" + Settings.DB_PORT + " sslmode=disable TimeZone=" + constants.TIME_ZONE + " " 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 return dsn
} }