fix a bug in db_mysql.c