Commit e4043152 authored by Nayuta Yanagisawa's avatar Nayuta Yanagisawa

Fix wrong diff introduced by merge commit

Many Spider tests were broken by the merge commit, 36d173e5.
parent b68ae6dc
...@@ -9376,6 +9376,8 @@ int spider_db_open_item_ident( ...@@ -9376,6 +9376,8 @@ int spider_db_open_item_ident(
} else { } else {
if (!use_fields) if (!use_fields)
{ {
if (!(field = spider->field_exchange(field)))
DBUG_RETURN(ER_SPIDER_COND_SKIP_NUM);
if (str) if (str)
{ {
if ((error_num = share->dbton_share[dbton_id]-> if ((error_num = share->dbton_share[dbton_id]->
...@@ -9384,16 +9386,12 @@ int spider_db_open_item_ident( ...@@ -9384,16 +9386,12 @@ int spider_db_open_item_ident(
DBUG_RETURN(error_num); DBUG_RETURN(error_num);
} }
} else { } else {
if (!(field = spider->field_exchange(field)))
DBUG_RETURN(ER_SPIDER_COND_SKIP_NUM);
if (str) if (str)
{ {
SPIDER_FIELD_CHAIN *field_chain = fields->get_next_field_chain(); SPIDER_FIELD_CHAIN *field_chain = fields->get_next_field_chain();
SPIDER_FIELD_HOLDER *field_holder = field_chain->field_holder; SPIDER_FIELD_HOLDER *field_holder = field_chain->field_holder;
spider = field_holder->spider; spider = field_holder->spider;
share = spider->share; share = spider->share;
field = spider->field_exchange(field);
DBUG_ASSERT(field);
if ((error_num = share->dbton_share[dbton_id]-> if ((error_num = share->dbton_share[dbton_id]->
append_column_name_with_alias(str, field->field_index, append_column_name_with_alias(str, field->field_index,
field_holder->alias->ptr(), field_holder->alias->length()))) field_holder->alias->ptr(), field_holder->alias->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