From 6c0afaca98758e87a05752e1f4f8f2029d6d9664 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 10 Mar 2019 05:38:02 +0900 Subject: PostgreSQL: Add `add_pg_encoders` and `add_pg_decoders` in `connect` It is to work that on `reconnect!` after `disconnect!`. https://buildkite.com/rails/rails/builds/59378#1efea538-cfca-4d43-8b7e-ae78e97227c8 --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 3990c0a71a..683d7190d5 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -740,6 +740,8 @@ module ActiveRecord 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. -- cgit v1.2.3