diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-03 14:48:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-03 17:34:49 -0700 |
commit | 6367e9586708e630906746a867a0f3590d3fbf62 (patch) | |
tree | 211e64b2071b576a494ab70ac1082b70e8406abf /activerecord/test | |
parent | 5c6978608d0b05613df6f9ebcb930d0850f44121 (diff) | |
download | rails-6367e9586708e630906746a867a0f3590d3fbf62.tar.gz rails-6367e9586708e630906746a867a0f3590d3fbf62.tar.bz2 rails-6367e9586708e630906746a867a0f3590d3fbf62.zip |
select goes through exec(), so no method chaining for query counts
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/connections/native_oracle/connection.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb index b77cc940b6..99f921879c 100644 --- a/activerecord/test/connections/native_oracle/connection.rb +++ b/activerecord/test/connections/native_oracle/connection.rb @@ -33,15 +33,3 @@ ActiveRecord::Base.configurations = { ActiveRecord::Base.establish_connection 'arunit' 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/, /^\s*select .* from ((all|user)_tab_columns|(all|user)_triggers|(all|user)_constraints)/im] - - def select_with_query_record(sql, name = nil, binds = []) - $queries_executed ||= [] - $queries_executed << sql unless IGNORED_SELECT_SQL.any? { |r| sql =~ r } - select_without_query_record(sql, name, binds) - end - - alias_method_chain :select, :query_record -end |