Redmine/app/models
Jean-Philippe Lang a8083fb9a8 Pass the order option as an array to satisfy sqlserver adapter (#12713).
Unlike other adapters, the sqlserver adapter processes the order option and wipes it when using functions.
Here we can see a "ASC" inserted in the COALESCE call:

irb(main):001:0> Issue.order("coalesce(estimated_hours, 0), id").to_sql
=> "SELECT [issues].* FROM [issues] ORDER BY coalesce(estimated_hours ASC, 0) ASC, id ASC"

This does not happen when passing the order SQL fragments separately.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 10:04:25 +00:00
..
repository Repository changesets are already sorted by committed_on DESC (#12713). 2013-01-03 11:40:39 +00:00
attachment.rb Store attachments in subdirectories (#5298). 2012-12-13 12:07:19 +00:00
auth_source.rb Auto-populate fields while creating a new user with LDAP (#10286). 2012-12-26 11:23:53 +00:00
auth_source_ldap.rb Auto-populate fields while creating a new user with LDAP (#10286). 2012-12-26 11:23:53 +00:00
board.rb Rewrites named scopes with ARel queries. 2012-12-07 17:59:20 +00:00
change.rb Copyright update. 2012-05-05 12:56:53 +00:00
changeset.rb Rewrites named scopes with ARel queries. 2012-12-07 17:59:20 +00:00
comment.rb Copyright update. 2012-05-05 12:56:53 +00:00
comment_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
custom_field.rb Make sure we don't cast an empty string to numeric (#12713). 2013-01-03 13:33:16 +00:00
custom_field_value.rb Extracts custom field values validation from CustomValue so that they can be validated globally from the customized object (#1189). 2012-01-28 11:16:58 +00:00
custom_value.rb Extracts custom field values validation from CustomValue so that they can be validated globally from the customized object (#1189). 2012-01-28 11:16:58 +00:00
document.rb Rewrites named scopes with ARel queries. 2012-12-07 17:59:20 +00:00
document_category.rb use Rails3 Active Record syntax in DocumentCategory model 2012-08-22 00:13:31 +00:00
document_category_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
document_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
enabled_module.rb Copyright update. 2012-05-05 12:56:53 +00:00
enumeration.rb Prevents position to be specified more than once in the order by list which is not supported by SQLServer (#12713). 2013-01-03 11:37:07 +00:00
group.rb Use lambda form in model scopes (#12499) 2012-12-07 10:12:47 +00:00
group_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
issue.rb Code cleanup, use named routes. 2012-12-22 10:30:42 +00:00
issue_category.rb Code cleanup. 2012-12-13 13:43:01 +00:00
issue_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
issue_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
issue_priority.rb Adds a textual css class for issue priorities (#12216). 2012-10-26 01:25:23 +00:00
issue_priority_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
issue_query.rb Pass the order option as an array to satisfy sqlserver adapter (#12713). 2013-01-04 10:04:25 +00:00
issue_relation.rb remove trailing white-spaces from app/models/issue_relation.rb 2012-12-21 04:52:58 +00:00
issue_status.rb Use lambda form in model scopes (#12499) 2012-12-07 10:12:47 +00:00
journal.rb Group events in the activity view (#12542). 2012-12-08 08:24:01 +00:00
journal_detail.rb Copyright update. 2012-05-05 12:56:53 +00:00
journal_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
mail_handler.rb Replaces find(:first) calls. 2012-12-03 18:21:32 +00:00
mailer.rb Replaces find(:all) calls. 2012-12-02 20:23:48 +00:00
member.rb Copyright update. 2012-05-05 12:56:53 +00:00
member_role.rb Replaces find(:all) calls. 2012-12-02 20:23:48 +00:00
message.rb Code cleanup. 2012-12-13 13:43:01 +00:00
message_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
news.rb Rewrites named scopes with ARel queries. 2012-12-07 17:59:20 +00:00
news_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
principal.rb Code cleanup. 2012-12-13 13:43:01 +00:00
project.rb Deprecates Version#*_pourcent in favour of #*_percent (#12724). 2013-01-04 08:30:25 +00:00
project_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
query.rb Make sure we don't cast an empty string to numeric (#12713). 2013-01-03 13:33:16 +00:00
repository.rb Use \A and \z in validation regexps. 2012-12-08 10:59:31 +00:00
role.rb Use lambda form in model scopes (#12499) 2012-12-07 10:12:47 +00:00
setting.rb Copyright update. 2012-05-05 12:56:53 +00:00
time_entry.rb Group events in the activity view (#12542). 2012-12-08 08:24:01 +00:00
time_entry_activity.rb Copyright update. 2012-05-05 12:56:53 +00:00
time_entry_activity_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
time_entry_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
time_entry_query.rb Makes time entry custom fields available for display on the time entries list (#1766). 2012-12-09 21:03:30 +00:00
token.rb Copyright update. 2012-05-05 12:56:53 +00:00
tracker.rb Typo in app/models/tracker.rb (#12707). 2013-01-02 13:02:20 +00:00
user.rb Use \A and \z in validation regexps. 2012-12-08 10:59:31 +00:00
user_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
user_preference.rb Potential can't dup NilClass error in UserPreference (#11905). 2012-09-22 06:16:53 +00:00
version.rb Deprecates Version#*_pourcent in favour of #*_percent (#12724). 2013-01-04 08:30:25 +00:00
version_custom_field.rb Copyright update. 2012-05-05 12:56:53 +00:00
watcher.rb Replaces find(:all) calls. 2012-12-02 20:23:48 +00:00
wiki.rb Use \A and \z in validation regexps. 2012-12-08 10:59:31 +00:00
wiki_content.rb Group events in the activity view (#12542). 2012-12-08 08:24:01 +00:00
wiki_content_observer.rb replace Mailer deliver syntax to Rails3 style 2012-05-05 13:07:12 +00:00
wiki_page.rb Use \A and \z in validation regexps. 2012-12-08 11:06:53 +00:00
wiki_redirect.rb Copyright update. 2012-05-05 12:56:53 +00:00
workflow_permission.rb Moved code for replacing permissions to WorkflowPermission model. 2012-07-15 15:05:34 +00:00
workflow_rule.rb SQLServer: rule is a reserved keyword (#12713). 2013-01-03 11:21:45 +00:00
workflow_transition.rb Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521). 2012-07-15 14:12:17 +00:00