Closed
Description
GORM Playground Link
N/A
Description
When using version 1.5.4 of the Postgres driver, attempting to connect to a server that's unavailable results in the following (logical) error:
[error] failed to initialize database, got error failed to connect to `host=localhost user=postgres database=nf`: dial error (dial tcp 127.0.0.1:9920: connect: connection refused)
However, after upgrading to 1.5.5, I get an error about the migrator and m.GuessConstraintInterfaceAndTable
being undefined:
# gorm.io/driver/postgres
../../go/pkg/mod/gorm.io/driver/postgres@v1.5.5/migrator.go:411:26: m.GuessConstraintInterfaceAndTable undefined (type Migrator has no field or method GuessConstraintInterfaceAndTable)
I would expect the failed to connect error message here.
Metadata
Metadata
Assignees
Labels
No labels