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

Function cp_buffer_from_ref

sql/sql_select.cc:28768–28791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28766
28767
28768bool
28769cp_buffer_from_ref(THD *thd, TABLE *table, TABLE_REF *ref)
28770{
28771 enum_check_fields org_count_cuted_fields= thd->count_cuted_fields;
28772 MY_BITMAP *old_map= dbug_tmp_use_all_columns(table, &table->write_set);
28773 bool result= 0;
28774 key_part_map map= 1;
28775
28776 thd->count_cuted_fields= CHECK_FIELD_IGNORE;
28777 for (store_key **copy=ref->key_copy ; *copy ; copy++, map <<= 1)
28778 {
28779 while (map & ref->const_ref_part_map) // skip const ref parts
28780 map <<= 1; // no store_key objects for them
28781 if ((*copy)->copy(thd) & 1 ||
28782 ((ref->null_rejecting & map) && (*copy)->null_key))
28783 {
28784 result= 1;
28785 break;
28786 }
28787 }
28788 thd->count_cuted_fields= org_count_cuted_fields;
28789 dbug_tmp_restore_column_map(&table->write_set, old_map);
28790 return result;
28791}
28792
28793
28794/*****************************************************************************

Callers 8

put_recordMethod · 0.85
get_next_keyMethod · 0.85
get_quick_select_for_refFunction · 0.85
join_read_constFunction · 0.85
join_read_always_keyFunction · 0.85
join_read_last_keyFunction · 0.85
create_sort_indexFunction · 0.85
cmp_buffer_with_refFunction · 0.85

Calls 3

dbug_tmp_use_all_columnsFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected