| 25961 | */ |
| 25962 | |
| 25963 | int |
| 25964 | join_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 | |
| 25979 | int |
nothing calls this directly
no test coverage detected