From d05661b5ee691afca735b199fe3d99a884c336b5 Mon Sep 17 00:00:00 2001 From: Akira Chiku Date: Mon, 6 Jun 2016 22:54:33 +0900 Subject: [PATCH] Fix error message --- stdlib/sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/sql.go b/stdlib/sql.go index 94899c20..5bf2c113 100644 --- a/stdlib/sql.go +++ b/stdlib/sql.go @@ -132,7 +132,7 @@ func OpenFromConnPool(pool *pgx.ConnPool) (*sql.DB, error) { stat := pool.Stat() if stat.MaxConnections <= 2 { - return nil, errors.New("pool connection size must be at least 2") + return nil, errors.New("pool connection size must be at least 3") } db.SetMaxIdleConns(stat.MaxConnections - 2) db.SetMaxOpenConns(stat.MaxConnections)