187
187
{ // Get keys for ni_create
188
188
bool using_unique_constraint= false;
189
189
HA_KEYSEG *seg= (HA_KEYSEG*) getMemRoot()->alloc_root(sizeof(*seg) * keyinfo->key_parts);
193
191
memset(seg, 0, sizeof(*seg) * keyinfo->key_parts);
194
192
if (keyinfo->key_length >= cursor->getEngine()->max_key_length() ||