database: fix Ping() method in PostgreSQL's implementation
This commit is contained in:
parent
83b19b6179
commit
883be8769f
@ -89,7 +89,7 @@ func (pgSQL *pgSQL) Close() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pgSQL *pgSQL) Ping() bool {
|
func (pgSQL *pgSQL) Ping() bool {
|
||||||
return pgSQL.Ping()
|
return pgSQL.DB.Ping() == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open creates a Datastore backed by a PostgreSQL database.
|
// Open creates a Datastore backed by a PostgreSQL database.
|
||||||
|
Loading…
Reference in New Issue
Block a user