| 4460 | } |
| 4461 | |
| 4462 | void THD::end_statement() |
| 4463 | { |
| 4464 | DBUG_ENTER("THD::end_statement"); |
| 4465 | /* Cleanup SQL processing state to reuse this statement in next query. */ |
| 4466 | lex_end(lex); |
| 4467 | delete lex->result; |
| 4468 | lex->result= 0; |
| 4469 | /* Note that free_list is freed in cleanup_after_query() */ |
| 4470 | |
| 4471 | /* |
| 4472 | Don't free mem_root, as mem_root is freed in the end of dispatch_command |
| 4473 | (once for any command). |
| 4474 | */ |
| 4475 | DBUG_VOID_RETURN; |
| 4476 | } |
| 4477 | |
| 4478 | |
| 4479 | /* |