aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/nodes/select_statement.rb
blob: a96c02a545106b1fea29b78f9feeaaf8565ec1af (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                         
                                          

                                             


                       
                     
         


                               
                             
         


       
module Arel
  module Nodes
    class SelectStatement
      attr_reader :cores
      attr_accessor :limit, :orders, :lock

      def initialize cores = [SelectCore.new]
        @cores  = cores
        @orders = []
        @limit  = nil
        @lock   = nil
      end

      def initialize_copy other
        super
        @cores = @cores.clone
      end
    end
  end
end