提交 e6001cba 编写于 作者: Y Yves Senn

Oracle does not support `IF EXISTS` for `DROP VIEW`.

/cc @yahonda
上级 fde0d021
......@@ -18,7 +18,7 @@ class Ebook < ActiveRecord::Base
end
teardown do
@connection.execute "DROP VIEW IF EXISTS ebooks"
@connection.execute "DROP VIEW ebooks" if @connection.table_exists? "ebooks"
end
def test_reading
......@@ -65,7 +65,7 @@ class Paperback < ActiveRecord::Base; end
end
teardown do
@connection.execute "DROP VIEW IF EXISTS paperbacks"
@connection.execute "DROP VIEW paperbacks" if @connection.table_exists? "paperbacks"
end
def test_reading
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册