diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-11-05 17:39:53 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-11-05 17:39:53 +0900 |
commit | 948b6dd91ba9c4114dc990fc080eae910f4a01c3 (patch) | |
tree | fdfd250b244e5a19e08789f0fb449b587062279c | |
parent | 2acf6ac13f8bc3eb56619725e6185b94365071f0 (diff) | |
download | rails-948b6dd91ba9c4114dc990fc080eae910f4a01c3.tar.gz rails-948b6dd91ba9c4114dc990fc080eae910f4a01c3.tar.bz2 rails-948b6dd91ba9c4114dc990fc080eae910f4a01c3.zip |
`test_binary_data_is_not_logged` is for prepared statements logging
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index 3846ba8e7f..707a2d1da1 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -209,7 +209,7 @@ class LogSubscriberTest < ActiveRecord::TestCase Thread.new { assert_equal 0, ActiveRecord::LogSubscriber.runtime }.join end - unless current_adapter?(:Mysql2Adapter) + if ActiveRecord::Base.connection.prepared_statements def test_binary_data_is_not_logged Binary.create(data: 'some binary data') wait |