Please sign in to comment.
New "rawsort" attribute, fixed sort attribute whitespace problem.
New "rawsort" attribute allows you to pass a verbatim sort to the SQL database without any parsing by Interchange. This allows you to do things like this: Options Simple sort CAST(o_sort AS int) Options Simple rawsort 1 ...the above would sort option widgets based on teh o_sort attribute and force a numeric sort. There are numerous other possibilities of how you might want to use this as well. The existing find_sort routine returned the "ORDER BY ..." without any leading whitespace, and was tacked onto the end of the sql query in Simple.pm without any trailing whitespace thus causing a syntax error in the generated SQL. This is now fixed by adding a leading space onto the returned value of find_sort().
- Loading branch information...