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
..
2013-01-03 11:40:39 +00:00
2012-12-13 12:07:19 +00:00
2012-12-26 11:23:53 +00:00
2012-12-26 11:23:53 +00:00
2012-12-07 17:59:20 +00:00
2012-05-05 12:56:53 +00:00
2012-12-07 17:59:20 +00:00
2012-05-05 13:07:12 +00:00
2012-05-05 12:56:53 +00:00
2012-01-28 11:16:58 +00:00
2013-01-03 13:33:16 +00:00
2012-01-28 11:16:58 +00:00
2012-05-05 12:56:53 +00:00
2012-08-22 00:13:31 +00:00
2012-05-05 13:07:12 +00:00
2012-12-07 17:59:20 +00:00
2012-05-05 12:56:53 +00:00
2013-01-03 11:37:07 +00:00
2012-05-05 12:56:53 +00:00
2012-12-07 10:12:47 +00:00
2012-12-13 13:43:01 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 13:07:12 +00:00
2012-05-05 12:56:53 +00:00
2012-10-26 01:25:23 +00:00
2013-01-04 10:04:25 +00:00
2012-12-21 04:52:58 +00:00
2012-12-07 10:12:47 +00:00
2012-12-22 10:30:42 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 13:07:12 +00:00
2012-12-08 08:24:01 +00:00
2012-12-03 18:21:32 +00:00
2012-12-02 20:23:48 +00:00
2012-12-02 20:23:48 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 13:07:12 +00:00
2012-12-13 13:43:01 +00:00
2012-05-05 13:07:12 +00:00
2012-12-07 17:59:20 +00:00
2012-12-13 13:43:01 +00:00
2012-05-05 12:56:53 +00:00
2013-01-04 08:30:25 +00:00
2013-01-03 13:33:16 +00:00
2012-12-08 10:59:31 +00:00
2012-12-07 10:12:47 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 12:56:53 +00:00
2012-05-05 12:56:53 +00:00
2012-12-09 21:03:30 +00:00
2012-12-08 08:24:01 +00:00
2012-05-05 12:56:53 +00:00
2013-01-02 13:02:20 +00:00
2012-05-05 12:56:53 +00:00
2012-09-22 06:16:53 +00:00
2012-12-08 10:59:31 +00:00
2012-05-05 12:56:53 +00:00
2013-01-04 08:30:25 +00:00
2012-12-02 20:23:48 +00:00
2012-05-05 13:07:12 +00:00
2012-12-08 08:24:01 +00:00
2012-12-08 11:06:53 +00:00
2012-05-05 12:56:53 +00:00
2012-12-08 10:59:31 +00:00
2012-07-15 15:05:34 +00:00
2013-01-03 11:21:45 +00:00
2012-07-15 14:12:17 +00:00