# File lib/arel/engines/sql/compilers/oracle_compiler.rb, line 77 def build_update_conditions_sql conditions = "" where_clauses = relation.wheres.collect(&:to_sql) taken = relation.taken # if need to select first records without ORDER BY # then can use simple ROWNUM in WHERE clause if !taken.blank? && relation.orders.blank? where_clauses << "ROWNUM <= #{taken}" end conditions << " WHERE #{where_clauses.join(' AND ')}" unless where_clauses.blank? unless taken.blank? conditions = limited_update_conditions(conditions, taken) end conditions end