Fixed getting max_digits for MySQL decimal fields

Refs #5014.