Commit ff810fb9 authored by unknown's avatar unknown

Bug #26794: fixed valgrind warning

parent 347e832a
...@@ -3471,8 +3471,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -3471,8 +3471,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
checking whether cfield->length < key_part_length (in chars). checking whether cfield->length < key_part_length (in chars).
*/ */
if (!Field::type_can_have_key_part(cfield->field->type()) || if (!Field::type_can_have_key_part(cfield->field->type()) ||
(!Field::type_can_have_key_part(cfield->sql_type) && !Field::type_can_have_key_part(cfield->sql_type) ||
!f_is_geom (cfield->pack_flag)) ||
(cfield->field->field_length == key_part_length && (cfield->field->field_length == key_part_length &&
!f_is_blob(key_part->key_type)) || !f_is_blob(key_part->key_type)) ||
(cfield->length && (cfield->length < key_part_length / (cfield->length && (cfield->length < key_part_length /
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment