Query Order

14 views
Skip to first unread message

Fred

unread,
Apr 18, 2012, 5:18:47 PM4/18/12
to DataMapper
Guys,
how can I set the query (all, first, etc) order to something like
"ifnull(column1, column2) asc", I just can "order =>
[:column1.asc, :column2.asc]", but it does't work for null columns.
Thanks

Frederico Hahn Pesenti

unread,
Jun 1, 2012, 1:42:23 PM6/1/12
to datam...@googlegroups.com
Ok, I implemented "order_by_sql" method...
Reply all
Reply to author
Forward
0 new messages