Double order by prevents documents from working in MSSQL
We are using FreeTDS with SQL Server 2012 (on windows server)
@attachments = @document.attachments.find(:all, :order => "created_on DESC")
this results in the sql query having 'created_on' appear twice in the order by clause that activerecord generates- which is illegal in SQL Server. My fix was to remove the :order in the document_controller show function.
Redmine version 2.2.2.stable
Ruby version 1.9.3 (i386-mingw32)
Rails version 3.2.11
Database adapter SQLServer