method

visit_Arel_Nodes_SelectStatement

rails latest stable - Class: Arel::Visitors::Oracle12

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

visit_Arel_Nodes_SelectStatement(o, collector)
private

No documentation available.

# File activerecord/lib/arel/visitors/oracle12.rb, line 8
        def visit_Arel_Nodes_SelectStatement(o, collector)
          # Oracle does not allow LIMIT clause with select for update
          if o.limit && o.lock
            raise ArgumentError, <<~MSG
              Combination of limit and lock is not supported. Because generated SQL statements
              `SELECT FOR UPDATE and FETCH FIRST n ROWS` generates ORA-02014.
            MSG
          end
          super
        end