aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/update_statement.rb
blob: 27e3e4e6ac25d0b5362c7fc28916456da4010b2d (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 UpdateStatement
      attr_accessor :relation, :wheres, :values

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

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