Skip to content
Snippets Groups Projects
Commit d43ce3da authored by Peter Rotich's avatar Peter Rotich
Browse files

COALESCE: Force nulls to the bottom

parent b64ec89d
Branches
Tags
No related merge requests found
......@@ -2094,6 +2094,8 @@ extends VerySimpleModel {
list($path, $field) = $key;
$fields[] = new SqlField($path);
}
// Force nulls to the buttom.
$fields[] = 'zzz';
$alias = sprintf('C%d', $this->getId());
$expr = call_user_func_array(array('SqlFunction', 'COALESCE'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment