fix not commit bug for mysql