MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / end_statement

Method end_statement

sql/sql_class.cc:1514–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512
1513
1514void THD::end_statement()
1515{
1516 /* Cleanup SQL processing state to reuse this statement in next query. */
1517 lex_end(lex);
1518 delete lex->result;
1519 lex->result= 0;
1520 /* Note that free_list is freed in cleanup_after_query() */
1521
1522 /*
1523 Don't free mem_root, as mem_root is freed in the end of dispatch_command
1524 (once for any command).
1525 */
1526}
1527
1528
1529void THD::set_n_backup_active_arena(Query_arena *set, Query_arena *backup)

Callers

nothing calls this directly

Calls 1

lex_endFunction · 0.85

Tested by

no test coverage detected