aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/nodes/update_statement.rb
blob: c08f1b2c5e450c5dbfc38a434eb2154f742506bb (plain) (tree)
1
2
3
4
5
6
7
8
9

              
                                             
                                                                
                        



                       
                      


                       
         


                               

                               
         


       
module Arel
  module Nodes
    class UpdateStatement < Arel::Nodes::Node
      attr_accessor :relation, :wheres, :values, :orders, :limit
      attr_accessor :key

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

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