Fix handling of escaped quote characters and numeric literals in MySQL