rails/rails — pull request #6193 by mhfs (2012-05-07 16:52:59+00:00)
Title: Fix failing AR test on Oracle

Having a duplicated column specified in a select with order on the same column makes Oracle complain about "ORA-00918: column ambiguously defined" when an order is defined on such column.

This was introduced in #5153 with `first`s default order and discussed in #6147.

I believe this change keeps the test purpose without stepping on Oracle's toes.

Cheers!

/cc @tenderlove @yahonda