From 963c9308147613012c8bdd9832aec360c2023418 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 24 Dec 2010 15:48:33 -0700 Subject: requiring that the primary key be set on the UpdateManager so that databases which do not support UPDATE with LIMIT will work --- lib/arel/update_manager.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel/update_manager.rb') diff --git a/lib/arel/update_manager.rb b/lib/arel/update_manager.rb index 821dce7d81..cf24dbac92 100644 --- a/lib/arel/update_manager.rb +++ b/lib/arel/update_manager.rb @@ -11,6 +11,10 @@ module Arel self end + def key= key + @ast.key = key + end + def order *expr @ast.orders = expr self -- cgit v1.2.3