Skip to content

Instantly share code, notes, and snippets.

View le1smo's full-sized avatar
:octocat:

Lessmore le1smo

:octocat:
  • 12:15 (UTC +08:00)
View GitHub Profile
@le1smo
le1smo / add_table_to_list.cpp
Last active December 8, 2021 03:03
Core function of name resolution in mysql. All code come from mysql source code, version 8.0.27.
/**
Add a table to list of used tables.
@param thd Current session.
@param table_name Table to add
@param alias alias for table (or null if no alias)
@param table_options A set of the following bits:
- TL_OPTION_UPDATING : Table will be updated
- TL_OPTION_FORCE_INDEX : Force usage of index
- TL_OPTION_ALIAS : an alias in multi table DELETE