aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-03 10:37:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-03 17:34:49 -0700
commit5c6978608d0b05613df6f9ebcb930d0850f44121 (patch)
treead9c509e1c359f42ee0a0ecc91fdbe7b79ec2110 /activerecord
parentd7ec94f66580abceffd313b943636ef113ffa662 (diff)
downloadrails-5c6978608d0b05613df6f9ebcb930d0850f44121.tar.gz
rails-5c6978608d0b05613df6f9ebcb930d0850f44121.tar.bz2
rails-5c6978608d0b05613df6f9ebcb930d0850f44121.zip
use bind params in select with query monkeypatch
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 c942036128..b77cc940b6 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)
+ 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)
+ select_without_query_record(sql, name, binds)
end
alias_method_chain :select, :query_record