Commit a4712f9f authored by unknown's avatar unknown

bug#19956 Problems with VARCHAR primary key and BLOB fields:put back removed...

bug#19956  Problems with VARCHAR primary key and BLOB fields:put back removed error handling for HA_ERR_KEY_NOT_FOUND


parent 10727348
...@@ -3478,8 +3478,9 @@ int ha_ndbcluster::read_range_first_to_buf(const key_range *start_key, ...@@ -3478,8 +3478,9 @@ int ha_ndbcluster::read_range_first_to_buf(const key_range *start_key,
{ {
if (m_active_cursor && (error= close_scan())) if (m_active_cursor && (error= close_scan()))
DBUG_RETURN(error); DBUG_RETURN(error);
DBUG_RETURN(pk_read(start_key->key, start_key->length, buf, error= pk_read(start_key->key, start_key->length, buf,
part_spec.start_part)); part_spec.start_part);
DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error);
} }
break; break;
case UNIQUE_ORDERED_INDEX: case UNIQUE_ORDERED_INDEX:
...@@ -3490,7 +3491,9 @@ int ha_ndbcluster::read_range_first_to_buf(const key_range *start_key, ...@@ -3490,7 +3491,9 @@ int ha_ndbcluster::read_range_first_to_buf(const key_range *start_key,
{ {
if (m_active_cursor && (error= close_scan())) if (m_active_cursor && (error= close_scan()))
DBUG_RETURN(error); DBUG_RETURN(error);
DBUG_RETURN(unique_index_read(start_key->key, start_key->length, buf));
error= unique_index_read(start_key->key, start_key->length, buf);
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, DBUG_RETURN(unique_index_scan(key_info,
......
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