Test prepared statement cache only if prepared statements is enabled
This commit is contained in:
parent
8623223a89
commit
56128abcba
@ -56,7 +56,7 @@ def self.name; "HotCompatibility"; end
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user