pgx-vs-pq
Jack Christensen 2013-03-30 18:13:40 -05:00
parent 05f94f7107
commit 18e225b66d
3 changed files with 7 additions and 5 deletions

View File

@ -17,7 +17,9 @@ func Connect(options map[string] string) (c *conn, err error) {
if socket, present = options["socket"]; present { if socket, present = options["socket"]; present {
c.conn, err = net.Dial("unix", socket) c.conn, err = net.Dial("unix", socket)
if err != nil { return nil, err } if err != nil {
return nil, err
}
} }
// conn, err := net.Dial("tcp", "localhost:5432") // conn, err := net.Dial("tcp", "localhost:5432")