aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-11-09 00:32:36 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-11-09 00:32:36 +0900
commit56128abcbab9b4d9ecd5d03612f7cf3901dd65b0 (patch)
treed9ebd2057b8995a6333c98afdbc44cda17aa7c2a /activerecord
parent8623223a891eb61845029f6d605ea726bb3fe179 (diff)
downloadrails-56128abcbab9b4d9ecd5d03612f7cf3901dd65b0.tar.gz
rails-56128abcbab9b4d9ecd5d03612f7cf3901dd65b0.tar.bz2
rails-56128abcbab9b4d9ecd5d03612f7cf3901dd65b0.zip
Test prepared statement cache only if prepared statements is enabled
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/hot_compatibility_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/hot_compatibility_test.rb b/activerecord/test/cases/hot_compatibility_test.rb
index e7778af55b..7b388ebc5e 100644
--- a/activerecord/test/cases/hot_compatibility_test.rb
+++ b/activerecord/test/cases/hot_compatibility_test.rb
@@ -56,7 +56,7 @@ class HotCompatibilityTest < ActiveRecord::TestCase
assert_equal "bar", record.foo
end
- if current_adapter?(:PostgreSQLAdapter)
+ if current_adapter?(:PostgreSQLAdapter) && ActiveRecord::Base.connection.prepared_statements
test "cleans up after prepared statement failure in a transaction" do
with_two_connections do |original_connection, ddl_connection|
record = @klass.create! bar: "bar"