diff --git a/conn_test.go b/conn_test.go index f719a4456..d2648a751 100644 --- a/conn_test.go +++ b/conn_test.go @@ -197,15 +197,14 @@ localhost:*:*:*:pass_C assertPassword := func(extra values, expected string) { o := values{ - "host": "localhost", - "sslmode": "disable", - "connect_timeout": "20", - "user": "majid", - "port": "5432", - "extra_float_digits": "2", - "dbname": "pqgotest", - "client_encoding": "UTF8", - "datestyle": "ISO, MDY", + "host": "localhost", + "sslmode": "disable", + "connect_timeout": "20", + "user": "majid", + "port": "5432", + "dbname": "pqgotest", + "client_encoding": "UTF8", + "datestyle": "ISO, MDY", } for k, v := range extra { o[k] = v diff --git a/connector.go b/connector.go index 1145e1225..b15325e86 100644 --- a/connector.go +++ b/connector.go @@ -55,9 +55,6 @@ func NewConnector(dsn string) (*Connector, error) { // * Explicitly passed connection information o["host"] = "localhost" o["port"] = "5432" - // N.B.: Extra float digits should be set to 3, but that breaks - // Postgres 8.4 and older, where the max is 2. - o["extra_float_digits"] = "2" for k, v := range parseEnviron(os.Environ()) { o[k] = v }