aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/update_statement.rb
blob: 288e9f467681f08eb79ea82364f3e60d11095b7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Arel
  module Nodes
    class UpdateStatement < Arel::Nodes::Node
      attr_accessor :relation, :wheres, :values, :orders, :limit

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

      def initialize_copy other
        super
        @wheres = @wheres.clone
        @values = @values.clone
      end
    end
  end
end