Skip to content

Commit

Permalink
PostgreSQL: Add add_pg_encoders and add_pg_decoders in connect
Browse files Browse the repository at this point in the history
It is to work that on `reconnect!` after `disconnect!`.

https://buildkite.com/rails/rails/builds/59378#1efea538-cfca-4d43-8b7e-ae78e97227c8
  • Loading branch information
kamipo committed Mar 9, 2019
1 parent 628d3c2 commit 6c0afac
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -740,6 +740,8 @@ def prepare_statement(sql, binds)
def connect
@connection = PG.connect(@connection_parameters)
configure_connection
add_pg_encoders
add_pg_decoders
end

# Configures the encoding, verbosity, schema search path, and time zone of the connection.
Expand Down

0 comments on commit 6c0afac

Please sign in to comment.