UP-3655 Special handling of DOUBLE for MySQL

On MySQL -Infinity is converted to MIN_VALUE, +Infinity is converted
to MAX_VALUE, and NaN is converted to 0