diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-21 15:08:54 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-21 16:09:01 -0800 |
commit | 83e42d52e37a33682fcac856330fd5d06e5a529c (patch) | |
tree | b12fad103b977689f056029dec6880f33a29a60e /activerecord/lib/active_record/relation/finder_methods.rb | |
parent | a566ee5308023f1a0ea9c06e7b1b2f70cef85c87 (diff) | |
download | rails-83e42d52e37a33682fcac856330fd5d06e5a529c.tar.gz rails-83e42d52e37a33682fcac856330fd5d06e5a529c.tar.bz2 rails-83e42d52e37a33682fcac856330fd5d06e5a529c.zip |
prepared statements can be disabled
Diffstat (limited to 'activerecord/lib/active_record/relation/finder_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 3015b4b40d..0305e561c8 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -208,7 +208,7 @@ module ActiveRecord def find_with_associations join_dependency = construct_join_dependency_for_association_find relation = construct_relation_for_association_find(join_dependency) - rows = connection.select_all(relation, 'SQL', relation.bind_values) + rows = connection.select_all(relation, 'SQL', relation.bind_values.dup) join_dependency.instantiate(rows) rescue ThrowResult [] |