Commit bcde0df5 authored by Feu's avatar Feu

un grand coup de sqlrewriter

parent e8e78889
......@@ -580,7 +580,7 @@ class sqltable2 extends stdcontents
{
$fields[] = $rewriter->fields[$nom][1];
}
$rewriter->add_orderbyraw('COLASCE('.implode(',',array_reverse($fields)).')',$sort{0}=="d"?'DESC':'ASC');
$rewriter->add_orderbyraw('COALESCE('.implode(',',array_reverse($fields)).')',$sort{0}=="d"?'DESC':'ASC');
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment