summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.cc4
-rw-r--r--sql/sql_select.cc6
2 files changed, 5 insertions, 5 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 6dcac49629e..1d905d92da8 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -2879,7 +2879,7 @@ int read_long_unique_index(TABLE *table, uint index, const uchar *key)
KEY_PART_INFO *key_part;
Field *field;
//Copy key to table->record , So that we can get long_unique_key
- re_setup_keyinfo_hash(key_info);
+ setup_keyinfo_hash(key_info);
key_part= key_info->key_part;
for (uint i= 0; i < key_info->user_defined_key_parts; i++)
{
@@ -2888,7 +2888,7 @@ int read_long_unique_index(TABLE *table, uint index, const uchar *key)
field->set_notnull();
key_part++;
}
- setup_keyinfo_hash(key_info);
+ re_setup_keyinfo_hash(key_info);
field= key_info->key_part->field;
table->update_virtual_field(field);
return check_duplicate_long_entry_key(table, table->file, table->record[0], index);
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 0e06ea9a717..ae9773f53c2 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -6060,7 +6060,7 @@ add_key_part(DYNAMIC_ARRAY *keyuse_array, KEY_FIELD *key_field)
uint key_parts= form->actual_n_key_parts(keyinfo);
if (keyinfo->algorithm == HA_KEY_ALG_LONG_HASH)
{
- re_setup_keyinfo_hash(keyinfo);
+ setup_keyinfo_hash(keyinfo);
key_parts= keyinfo->user_defined_key_parts;
}
for (uint part=0 ; part < key_parts ; part++)
@@ -6071,13 +6071,13 @@ add_key_part(DYNAMIC_ARRAY *keyuse_array, KEY_FIELD *key_field)
if (add_keyuse(keyuse_array, key_field, key, part))
{
if (keyinfo->algorithm == HA_KEY_ALG_LONG_HASH)
- setup_keyinfo_hash(keyinfo);
+ re_setup_keyinfo_hash(keyinfo);
return TRUE;
}
}
}
if (keyinfo->algorithm == HA_KEY_ALG_LONG_HASH)
- setup_keyinfo_hash(keyinfo);
+ re_setup_keyinfo_hash(keyinfo);
}
if (field->hash_join_is_possible() &&
(key_field->optimize & KEY_OPTIMIZE_EQ) &&