aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-24 15:48:33 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-24 15:48:33 -0700
commit963c9308147613012c8bdd9832aec360c2023418 (patch)
tree025b39a9ac773d5b7ffcce87ef10ce28c864cc78 /lib/arel/nodes
parent162e1d8df332f170b9dafdc91f60ee2cb359c1e5 (diff)
downloadrails-963c9308147613012c8bdd9832aec360c2023418.tar.gz
rails-963c9308147613012c8bdd9832aec360c2023418.tar.bz2
rails-963c9308147613012c8bdd9832aec360c2023418.zip
requiring that the primary key be set on the UpdateManager so that databases which do not support UPDATE with LIMIT will work
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/update_statement.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/arel/nodes/update_statement.rb b/lib/arel/nodes/update_statement.rb
index 288e9f4676..c08f1b2c5e 100644
--- a/lib/arel/nodes/update_statement.rb
+++ b/lib/arel/nodes/update_statement.rb
@@ -2,13 +2,15 @@ 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
+ @orders = []
+ @limit = nil
+ @key = nil
end
def initialize_copy other