7991 void mysql_parse(THD *thd, char *rawbuf, uint length,
7995 {
8016 lex_start(thd);
8017 thd->reset_for_next_command();
8025 if (query_cache_send_result_to_client(thd, rawbuf, length) <= 0)
8026 {
8029 bool err= parse_sql(thd, parser_state, NULL, true);
8031 if (!err)
8076 error= mysql_execute_command(thd);
8081 else
8091 query_cache_abort(thd, &thd->query_cache_tls);
8098 thd->end_statement();
8099 thd->cleanup_after_query();
8101 }
8102 else
8110 thd->update_stats();
8119 }