Commit 14f7ff00 authored by unknown's avatar unknown

Removed check for impossible error return

parent d8ff6cdf
...@@ -2956,13 +2956,10 @@ KEY* key_info; ...@@ -2956,13 +2956,10 @@ KEY* key_info;
DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error); DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error);
} }
else if (type == UNIQUE_INDEX) else if (type == UNIQUE_INDEX)
{ DBUG_RETURN(unique_index_scan(key_info,
error= unique_index_scan(key_info, start_key->key,
start_key->key, start_key->length,
start_key->length, buf));
buf);
DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error);
}
break; break;
default: default:
break; break;
......
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