diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-02 14:01:32 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-02 14:01:32 -0300 |
commit | e72b1376e9cf55d066f2c4d87036bee702d9d11f (patch) | |
tree | 50750fb2e3e27af62bc25b8cce9e5600f174599b | |
parent | bb05bf01ce7243aba06ba0fd6e7a3da65aa77fbb (diff) | |
parent | ac3af505aa5df38c3826fccb42107aa88693ee17 (diff) | |
download | rails-e72b1376e9cf55d066f2c4d87036bee702d9d11f.tar.gz rails-e72b1376e9cf55d066f2c4d87036bee702d9d11f.tar.bz2 rails-e72b1376e9cf55d066f2c4d87036bee702d9d11f.zip |
Merge pull request #263 from yahonda/add_collector_argument_to_oracle
Add collector argument to address ArgumentError when tested with Oracle
-rw-r--r-- | lib/arel/visitors/oracle.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb index 2cdbafadad..699b52fe9a 100644 --- a/lib/arel/visitors/oracle.rb +++ b/lib/arel/visitors/oracle.rb @@ -74,7 +74,7 @@ module Arel collector << " )" end - def visit_Arel_Nodes_UpdateStatement o + def visit_Arel_Nodes_UpdateStatement o, collector # Oracle does not allow ORDER BY/LIMIT in UPDATEs. if o.orders.any? && o.limit.nil? # However, there is no harm in silently eating the ORDER BY clause if no LIMIT has been provided, |