Fix MySQL bug http://bugs.mysql.com/bug.php?id=61201