diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-10 05:38:02 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-10 05:42:55 +0900 |
commit | 6c0afaca98758e87a05752e1f4f8f2029d6d9664 (patch) | |
tree | 77de84d3d48540d332b4a88bbbf7667cd65eb260 /activerecord/lib/active_record | |
parent | 628d3c2489632b6979e0c92eafd4a7ff6c40bfdd (diff) | |
download | rails-6c0afaca98758e87a05752e1f4f8f2029d6d9664.tar.gz rails-6c0afaca98758e87a05752e1f4f8f2029d6d9664.tar.bz2 rails-6c0afaca98758e87a05752e1f4f8f2029d6d9664.zip |
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
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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. |