Browse Source

Merge branch 'master' of codeberg.org:snaums/mvoCI

master
Stefan Naumann 5 months ago
parent
commit
57c123c259
  1. 4
      core/models.go

4
core/models.go

@ -166,7 +166,7 @@ func connection_settings ( cfg *Config ) string {
cfg.Database.Host,
cfg.Database.Dbname)
case "postgres":
x = fmt.Sprintf("user=%s password=%s host=%s dbname=%s port=%s sslmode=%s",
x = fmt.Sprintf("user=%s password=%s host=%s dbname=%s port=%d sslmode=%s",
cfg.Database.Username,
cfg.Database.Password,
cfg.Database.Host,
@ -174,7 +174,7 @@ func connection_settings ( cfg *Config ) string {
cfg.Database.Port,
cfg.Database.PostgresSSL)
case "mssql":
x = fmt.Sprintf("sqlserver://%s:%s@%s:%s?database=%s",
x = fmt.Sprintf("sqlserver://%s:%s@%s:%d?database=%s",
cfg.Database.Username,
cfg.Database.Password,
cfg.Database.Host,

Loading…
Cancel
Save