aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-26 09:59:05 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-26 13:43:06 -0700
commitf61f75876136f80b455bad0d5274190a3f9df290 (patch)
treec93d23488dafe008e14da07729bdc743ad2b75ab /activerecord
parent2a90a4e51cacea13bff2047c49f8aed799c37cb7 (diff)
downloadrails-f61f75876136f80b455bad0d5274190a3f9df290.tar.gz
rails-f61f75876136f80b455bad0d5274190a3f9df290.tar.bz2
rails-f61f75876136f80b455bad0d5274190a3f9df290.zip
reducing the number of parameters to select()
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/connections/native_oracle/connection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb
index 9a717018b2..c942036128 100644
--- a/activerecord/test/connections/native_oracle/connection.rb
+++ b/activerecord/test/connections/native_oracle/connection.rb
@@ -37,10 +37,10 @@ Course.establish_connection 'arunit2'
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, return_column_names = false)
+ def select_with_query_record(sql, name = nil)
$queries_executed ||= []
$queries_executed << sql unless IGNORED_SELECT_SQL.any? { |r| sql =~ r }
- select_without_query_record(sql, name, return_column_names)
+ select_without_query_record(sql, name)
end
alias_method_chain :select, :query_record