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

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

      def initialize_copy other
        super
        @cores = @cores.map { |o| o.clone }
      end
    end
  end
end