2
0

Merge pull request #153 from achiku/fix-stdlib-error-message

Fix error message in stdlib
This commit is contained in:
Jack Christensen
2016-06-06 09:16:07 -05:00
+1 -1
View File
@@ -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)