diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-03-07 16:46:59 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:44:03 +0300 |
commit | c6d6b5016631ae0d2c6f09bb289fb9b54dca9a0a (patch) | |
tree | d7512c056033b5fda1a43324347723a79b22eebc /activerecord/test/connections/native_oracle | |
parent | 5fcaf917612c61174f55bbd2301131ccdbec51fb (diff) | |
download | rails-c6d6b5016631ae0d2c6f09bb289fb9b54dca9a0a.tar.gz rails-c6d6b5016631ae0d2c6f09bb289fb9b54dca9a0a.tar.bz2 rails-c6d6b5016631ae0d2c6f09bb289fb9b54dca9a0a.zip |
ignore selects from data dictionary views when running tests on Oracle
Diffstat (limited to 'activerecord/test/connections/native_oracle')
-rw-r--r-- | activerecord/test/connections/native_oracle/connection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb index a8ff462dd7..bb4040058f 100644 --- a/activerecord/test/connections/native_oracle/connection.rb +++ b/activerecord/test/connections/native_oracle/connection.rb @@ -53,7 +53,7 @@ Course.establish_connection 'arunit2' # for assert_queries test helper ActiveRecord::Base.connection.class.class_eval do - IGNORED_SELECT_SQL = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO SAVEPOINT/, /^RELEASE SAVEPOINT/, /^\s*select .* from (all_tab_columns|all_triggers)/im] + IGNORED_SELECT_SQL = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from ((all|user)_tab_columns|(all|user)_triggers|(all|user)_constraints)/im] def select_with_query_record(sql, name = nil, return_column_names = false) $queries_executed ||= [] |