From 883be8769f06ce2eebc70e8c3416376bbc05ce44 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Thu, 4 Feb 2016 16:13:11 -0500 Subject: [PATCH] database: fix Ping() method in PostgreSQL's implementation --- database/pgsql/pgsql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/pgsql/pgsql.go b/database/pgsql/pgsql.go index 19cf5ebc..15789dd9 100644 --- a/database/pgsql/pgsql.go +++ b/database/pgsql/pgsql.go @@ -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.