The parser processes SQL strings and builds a tree representation of them.
See Parser.
SQL Optimizer
Stored Programs
See mysql_stmt_prepare
See sp_head, sp_instr.
See Item_func
See my_message, my_error
Transactions