Fix SQL for time diffs. Convert to TIMESTAMPDIFF so the resolution is until microsecs and no prob with max hours limit #2722.
Add support for converting from Decimal to float an array also.