Flowdock
method

join_to_update

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveRecord::ConnectionAdapters::DatabaseStatements
join_to_update(update, select) public

The default strategy for an UPDATE with joins is to use a subquery. This doesn’t work on mysql (even when aliasing the tables), but mysql allows using JOIN directly in an UPDATE statement, so in the mysql adapters we redefine this to do that.

Show source
Register or log in to add new notes.