提交 56128abc 编写于 作者: R Ryuta Kamizono

Test prepared statement cache only if prepared statements is enabled

上级 8623223a
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册