jruby/activerecord-jdbc-adapter — pull request #330 by pierre-schambacher (2013-02-15 13:04:58+00:00)
Title: Model.order(:something).first broken on SQL Server 2000

In one case scenario in the if/else the order was skipped.
Updated the code to always use the order with a limit.

I don't have the possibility to run a proper test suite but our own test suite using SQL Server 2000 pass without any problem.