method

visit_Arel_Nodes_UpdateStatement

visit_Arel_Nodes_UpdateStatement(o, collector)
private

No documentation available.

# File activerecord/lib/arel/visitors/oracle.rb, line 90
        def visit_Arel_Nodes_UpdateStatement(o, collector)
          # Oracle does not allow ORDER BY/LIMIT in UPDATEs.
          if o.orders.any? && o.limit.nil?
            # However, there is no harm in silently eating the ORDER BY clause if no LIMIT has been provided,
            # otherwise let the user deal with the error
            o = o.dup
            o.orders = []
          end

          super
        end