force to_s before trying to use a substring of @mysql_version