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

Function join_read_next_same_or_null

sql/sql_select.cc:25979–25992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25977
25978
25979int
25980join_read_next_same_or_null(READ_RECORD *info)
25981{
25982 int error;
25983 if (unlikely((error= join_read_next_same(info)) >= 0))
25984 return error;
25985 JOIN_TAB *tab= info->table->reginfo.join_tab;
25986
25987 /* Test if we have already done a read after null key */
25988 if (*tab->ref.null_ref_key)
25989 return -1; // All keys read
25990 *tab->ref.null_ref_key= 1; // Set null byte
25991 return safe_index_read(tab); // then read null keys
25992}
25993
25994
25995/*****************************************************************************

Callers

nothing calls this directly

Calls 2

join_read_next_sameFunction · 0.85
safe_index_readFunction · 0.85

Tested by

no test coverage detected