mysql type convert test and bug fix .