diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-01 15:30:54 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-01 15:30:54 -0300 |
commit | 2ef1340bf373f2469550126972247c8aed50b457 (patch) | |
tree | ba2ff2642a9e061e84569e7fc2f3de0f40cd1c46 /activerecord/test/cases/adapter_test.rb | |
parent | 159c73ac6d1ea93dd1b59d17cc73c56df8b02b99 (diff) | |
parent | 1f6da4fda6d7c59ca6b27fa8930f806628a2f548 (diff) | |
download | rails-2ef1340bf373f2469550126972247c8aed50b457.tar.gz rails-2ef1340bf373f2469550126972247c8aed50b457.tar.bz2 rails-2ef1340bf373f2469550126972247c8aed50b457.zip |
Merge pull request #23953 from kamipo/fix_tests_failure_with_prepared_statements_false
Fix tests failure with `prepared_statements: false`
Diffstat (limited to 'activerecord/test/cases/adapter_test.rb')
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 0ee147cdba..a9f1993842 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -11,7 +11,8 @@ module ActiveRecord ## # PostgreSQL does not support null bytes in strings - unless current_adapter?(:PostgreSQLAdapter) + unless current_adapter?(:PostgreSQLAdapter) || + (current_adapter?(:SQLite3Adapter) && !ActiveRecord::Base.connection.prepared_statements) def test_update_prepared_statement b = Book.create(name: "my \x00 book") b.reload |