2010-08-14 21:29:32 -04:00
|
|
|
module Arel
|
|
|
|
module Nodes
|
|
|
|
class UpdateStatement
|
2010-09-21 12:20:14 -04:00
|
|
|
attr_accessor :relation, :wheres, :values, :orders, :limit
|
2010-08-14 21:29:32 -04:00
|
|
|
|
|
|
|
def initialize
|
|
|
|
@relation = nil
|
|
|
|
@wheres = []
|
2010-08-14 22:14:49 -04:00
|
|
|
@values = []
|
2010-09-21 12:20:14 -04:00
|
|
|
@orders = []
|
|
|
|
@limit = nil
|
2010-08-14 21:29:32 -04:00
|
|
|
end
|
2010-08-16 23:59:18 -04:00
|
|
|
|
|
|
|
def initialize_copy other
|
|
|
|
super
|
2010-08-30 18:35:13 -04:00
|
|
|
@wheres = @wheres.clone
|
|
|
|
@values = @values.clone
|
2010-08-16 23:59:18 -04:00
|
|
|
end
|
2010-08-14 21:29:32 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|