diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-09-09 15:33:23 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-09-09 15:33:23 +0200 |
commit | e6001cbac62130eac9193cdc2ac3b4ff99379c41 (patch) | |
tree | a715a982208438920cee68c90a57ae99d29060a3 /activerecord/test/cases | |
parent | fde0d0219d844bcf71d8f6d9c9420fb75cf9ece9 (diff) | |
download | rails-e6001cbac62130eac9193cdc2ac3b4ff99379c41.tar.gz rails-e6001cbac62130eac9193cdc2ac3b4ff99379c41.tar.bz2 rails-e6001cbac62130eac9193cdc2ac3b4ff99379c41.zip |
Oracle does not support `IF EXISTS` for `DROP VIEW`.
/cc @yahonda
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/view_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |