MCPcopy Create free account
hub / github.com/MariaDB/server / join_read_always_key_or_null

Function join_read_always_key_or_null

sql/sql_select.cc:25963–25976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25961*/
25962
25963int
25964join_read_always_key_or_null(JOIN_TAB *tab)
25965{
25966 int res;
25967
25968 /* First read according to key which is NOT NULL */
25969 *tab->ref.null_ref_key= 0; // Clear null byte
25970 if ((res= join_read_always_key(tab)) >= 0)
25971 return res;
25972
25973 /* Then read key with null value */
25974 *tab->ref.null_ref_key= 1; // Set null byte
25975 return safe_index_read(tab);
25976}
25977
25978
25979int

Callers

nothing calls this directly

Calls 2

join_read_always_keyFunction · 0.85
safe_index_readFunction · 0.85

Tested by

no test coverage detected