aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_statement.rb
blob: b7c59da275a47550a4ea0feb85816a34995e7a2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Arel
  module Nodes
    class SelectStatement
      attr_reader :cores
      attr_accessor :limit, :orders

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

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