database: fix Ping() method in PostgreSQL's implementation

This commit is contained in:
Quentin Machu 2016-02-04 16:13:11 -05:00 committed by Jimmy Zelinskie
parent 83b19b6179
commit 883be8769f

View File

@ -89,7 +89,7 @@ func (pgSQL *pgSQL) Close() {
}
func (pgSQL *pgSQL) Ping() bool {
return pgSQL.Ping()
return pgSQL.DB.Ping() == nil
}
// Open creates a Datastore backed by a PostgreSQL database.