diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 15:42:26 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 15:42:26 -0700 |
commit | 5703a965ad58c1f7515e389087ec2d1e73854028 (patch) | |
tree | 6cb369b2792a9859585c2281846b7bcd5e68c428 /lib/arel/visitors/to_sql.rb | |
parent | 03e560b0943f90155a13934c27abfe3827579d8b (diff) | |
download | rails-5703a965ad58c1f7515e389087ec2d1e73854028.tar.gz rails-5703a965ad58c1f7515e389087ec2d1e73854028.tar.bz2 rails-5703a965ad58c1f7515e389087ec2d1e73854028.zip |
rhs bind parameters should be visited
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 5604b9de04..e1b46eb6e6 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -636,7 +636,7 @@ module Arel def visit_Arel_Nodes_Assignment o, collector case o.right - when Arel::Nodes::UnqualifiedColumn, Arel::Attributes::Attribute + when Arel::Nodes::UnqualifiedColumn, Arel::Attributes::Attribute, Arel::Nodes::BindParam collector = visit o.left, collector collector << " = " visit o.right, collector |