@@ -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]
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
// "io/ioutil"
|
||||
// "path"
|
||||
// "net"
|
||||
// "time"
|
||||
|
||||
"github.com/jackc/pgx"
|
||||
)
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user