Fix mysqldriver regarding #1028