aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/insert_statement.rb
blob: 8c6e1234d0bf61090277d95a24ee48c033f0231d (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 InsertStatement
      attr_accessor :relation, :columns, :values

      def initialize
        @relation = nil
        @columns  = []
        @values   = []
      end

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