From e6001cbac62130eac9193cdc2ac3b4ff99379c41 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Tue, 9 Sep 2014 15:33:23 +0200 Subject: Oracle does not support `IF EXISTS` for `DROP VIEW`. /cc @yahonda --- activerecord/test/cases/view_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/view_test.rb b/activerecord/test/cases/view_test.rb index c2e71612a3..357265aa05 100644 --- a/activerecord/test/cases/view_test.rb +++ b/activerecord/test/cases/view_test.rb @@ -18,7 +18,7 @@ class ViewWithPrimaryKeyTest < ActiveRecord::TestCase 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 ViewWithoutPrimaryKeyTest < ActiveRecord::TestCase end teardown do - @connection.execute "DROP VIEW IF EXISTS paperbacks" + @connection.execute "DROP VIEW paperbacks" if @connection.table_exists? "paperbacks" end def test_reading -- cgit v1.2.3