No error is raised even if the host does not exist
Closed this issue · 1 comments
pochuang commented
The postgres driver does not raise any error even if the host does not exist or with incorrect config.
db, err := gorm.Open(postgres.New(postgres.Config{
DSN: "host=10.110.1.12",
PreferSimpleProtocol: true,
}), &gorm.Config{SkipDefaultTransaction: true, PrepareStmt: true, NowFunc: core.CurrentTime, NamingStrategy: schema.NamingStrategy{}})
pochuang commented
Got fixed when the GORM version is upgraded from v1.25.5 to v1.25.10.