2
0
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
This commit is contained in:
Artemiy Ryabinkov
2019-06-18 17:09:38 +03:00
parent 6ec815a748
commit 2837818b67
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ func connect(config ConnConfig, connInfo *pgtype.ConnInfo) (c *Conn, err error)
return c, nil
}
// To keep backwards, if specific error type expected.
// To keep backwards compatibility, if specific error type expected.
if len(errs) == 1 {
return nil, errs[0]
}
+1
View File
@@ -8,6 +8,7 @@ import (
// "io/ioutil"
// "path"
// "net"
// "time"
"github.com/jackc/pgx"
)
+1
View File
@@ -6,6 +6,7 @@ import (
"os"
"strconv"
"net"
"time"
)
var defaultConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_md5", Password: "secret", Database: "pgx_test"}