mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#3700: Handler API change: all index search methods - that is,
index_read(), index_read_idx(), index_read_last(), and records_in_range() - instead of 'uint keylen' argument take 'ulonglong keypart_map', a bitmap showing which keyparts are present in the key value. Fallback method is provided for handlers that are lagging behind.
This commit is contained in:
@ -202,6 +202,11 @@ typedef struct st_join_table {
|
||||
}
|
||||
} JOIN_TAB;
|
||||
|
||||
static inline ulonglong tab_to_keypart_map(JOIN_TAB *tab)
|
||||
{
|
||||
return (ULL(1) << tab->ref.key_parts) - 1;
|
||||
}
|
||||
|
||||
enum_nested_loop_state sub_select_cache(JOIN *join, JOIN_TAB *join_tab, bool
|
||||
end_of_records);
|
||||
enum_nested_loop_state sub_select(JOIN *join,JOIN_TAB *join_tab, bool
|
||||
|
Reference in New Issue
Block a user