Fix mysqldriver regarding #1028

Issue  #1028