ORDER BY WITH FILL
doesn't work if the result is empty:
SELECT val
FROM table
WHERE 1 != 1
ORDER BY val WITH FILL FROM 1 TO 5
Ok.
0 rows in set. Elapsed: 0.173 sec.
Most probably because ORDER BY
is not involved in execution here.
Is there a way to make work, or the only workaround is to use UNION
like described here?