921
921
key_info->algorithm= key->key_create_info.algorithm;
923
923
uint32_t tmp_len= system_charset_info->cset->charpos(system_charset_info,
924
key->key_create_info.comment.str,
925
key->key_create_info.comment.str +
926
key->key_create_info.comment.length,
924
key->key_create_info.comment.begin(),
925
key->key_create_info.comment.end(),
927
926
INDEX_COMMENT_MAXLEN);
929
if (tmp_len < key->key_create_info.comment.length)
928
if (tmp_len < key->key_create_info.comment.size())
931
my_error(ER_WRONG_STRING_LENGTH, MYF(0),
932
key->key_create_info.comment.str,"INDEX COMMENT",
933
(uint32_t) INDEX_COMMENT_MAXLEN);
930
my_error(ER_WRONG_STRING_LENGTH, MYF(0), key->key_create_info.comment.data(), "INDEX COMMENT", (uint32_t) INDEX_COMMENT_MAXLEN);
937
key_info->comment.length= key->key_create_info.comment.length;
934
key_info->comment.length= key->key_create_info.comment.size();
938
935
if (key_info->comment.length > 0)
940
937
key_info->flags|= HA_USES_COMMENT;
941
key_info->comment.str= key->key_create_info.comment.str;
938
key_info->comment.str= (char*)key->key_create_info.comment.data();
944
941
message::Table::Field *protofield= NULL;