| 25977 | |
| 25978 | |
| 25979 | int |
| 25980 | join_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 | /***************************************************************************** |
nothing calls this directly
no test coverage detected