diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-24 15:48:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-24 15:48:33 -0700 |
commit | 963c9308147613012c8bdd9832aec360c2023418 (patch) | |
tree | 025b39a9ac773d5b7ffcce87ef10ce28c864cc78 /lib/arel/crud.rb | |
parent | 162e1d8df332f170b9dafdc91f60ee2cb359c1e5 (diff) | |
download | rails-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/crud.rb')
-rw-r--r-- | lib/arel/crud.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb index ec58734456..e6b1cd9675 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -6,7 +6,7 @@ module Arel um = UpdateManager.new @engine if Nodes::SqlLiteral === values - relation = @ctx.froms + relation = @ctx.from else relation = values.first.first.relation end |