MySql data type validation.