2496
2496
if (cached_field_index < table->getShare()->sizeFields() &&
2497
2497
!my_strcasecmp(system_charset_info,
2498
2498
table->field[cached_field_index]->field_name, name))
2499
2500
field_ptr= table->field + cached_field_index;
2500
2502
else if (table->getShare()->name_hash.records)
2502
2504
field_ptr= (Field**) hash_search(&table->getShare()->name_hash, (unsigned char*) name,