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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user