Fixes CAST VARCHAR error for Mysql2