aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/sql_literal.rb
diff options
context:
space:
mode:
authorLoic Nageleisen <loic.nageleisen@gmail.com>2014-02-04 11:38:00 +0100
committercmohanprasath <cmohanprasath@gmail.com>2014-02-11 19:09:53 +0200
commitd1ec33d69d85a3608aef9b064bc2c4799a214000 (patch)
tree82dfb0cc30238bbfcfdb259788326ce51a252fca /lib/arel/sql_literal.rb
parent048d6c0aefec9f233a77e9160f426cf2fed1b7f6 (diff)
downloadrails-d1ec33d69d85a3608aef9b064bc2c4799a214000.tar.gz
rails-d1ec33d69d85a3608aef9b064bc2c4799a214000.tar.bz2
rails-d1ec33d69d85a3608aef9b064bc2c4799a214000.zip
Allow assignment right member to reference columns
Such queries become possible for mortals: ```ruby table.where(table[:qux].eq 'zomg').compile_update(table[:foo] => table[:bar]) ``` Arguably much more sane than using `engine.connection.quote_column_name` or `engine.connection.visitor.accept` on the right hand (bar), which is totally leaking the abstraction.
Diffstat (limited to 'lib/arel/sql_literal.rb')
0 files changed, 0 insertions, 0 deletions