aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/insert_statement.rb
blob: a5e1a0bb9bc5029a6dd5355f294d6485481aa5b8 (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   = nil
      end

      def initialize_copy other
        super
        @columns = @columns.clone
        @values =  @values.clone if @values
      end
    end
  end
end