Skip to content

Commit

Permalink
database: fix Ping() method in PostgreSQL's implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M authored and jzelinskie committed Feb 24, 2016
1 parent 83b19b6 commit 883be87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/pgsql/pgsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 883be87

Please sign in to comment.