Get rid of type on NULL in CASE. Let caller handle this. 

CHAR(1) is a neutral type in standard SQL. But with MySQL compatibility, it tends to cause promotion to DOUBLE everywhere.