mauricio / postgresql-async

Async, Netty based, database drivers for PostgreSQL and MySQL written in Scala
Apache License 2.0
1.43k stars 222 forks source link

PostgreSQL extra_float_digits configuration #197

Closed evanbennett closed 5 years ago

evanbennett commented 8 years ago

I need the "extra_float_digits" configuration set to 3.

I can execute "SET extra_float_digits = 3;" after connection. Which is working in development.

I noticed https://github.com/mauricio/postgresql-async/blob/7dc83b91c153b74a1c94329ada43b3e15c51bb7f/postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/codec/PostgreSQLConnectionHandler.scala#L72 which sets "extra_float_digits" to 2. When I change it locally to 3, it works.

Would you be interested in a pull-request that adds extra_float_digits to the Configuration class (defaulting to the current value) and updates PostgreSQLConnectionHandler to use it instead?