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

Method is_leaf_for_name_resolution

sql/table.cc:842–846  ·  view source on GitHub ↗

Test if this is a leaf with respect to name resolution. SYNOPSIS TABLE_LIST::is_leaf_for_name_resolution() DESCRIPTION A table reference is a leaf with respect to name resolution if it is either a leaf node in a nested join tree (table, view, schema table, subquery), or an inner node that represents a NATURAL/USING join, or a nested join with materialized join columns

Source from the content-addressed store, hash-verified

840 TRUE if a leaf, FALSE otherwise.
841*/
842bool TABLE_LIST::is_leaf_for_name_resolution()
843{
844 return (view || is_natural_join || is_join_columns_complete ||
845 !nested_join);
846}
847
848
849/*

Calls

no outgoing calls

Tested by

no test coverage detected