This project is archived and is in readonly mode.

#6229 ✓resolved
Raimonds Simanovskis

relation_scoping_test.rb and method_scoping_test.rb failing on Oracle

Reported by Raimonds Simanovskis | December 27th, 2010 @ 08:12 PM

Several tests from relation_scoping_test.rb and method_scoping_test.rb are failing on Oracle:
https://gist.github.com/f66d27621fbce6617edc

It seems that the cause could be https://github.com/rails/arel/blob/master/lib/arel/visitors/oracle.... which removes limit and translates it to where condition when using Oracle and therefore after to_sql method call original limit is not available for relation.

Discussed with Aaron and he has ideas how to fix it by making limit into a separate Arel node.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages