Skip to content

Commit 720fa05

Browse files
Merge 10.4 into 10.5
2 parents 55c648a + e404315 commit 720fa05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

storage/spider/spd_db_conn.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9877,6 +9877,8 @@ int spider_db_open_item_ident(
98779877
} else {
98789878
if (!use_fields)
98799879
{
9880+
if (!(field = spider->field_exchange(field)))
9881+
DBUG_RETURN(ER_SPIDER_COND_SKIP_NUM);
98809882
if (str)
98819883
{
98829884
if ((error_num = share->dbton_share[dbton_id]->
@@ -9885,16 +9887,12 @@ int spider_db_open_item_ident(
98859887
DBUG_RETURN(error_num);
98869888
}
98879889
} else {
9888-
if (!(field = spider->field_exchange(field)))
9889-
DBUG_RETURN(ER_SPIDER_COND_SKIP_NUM);
98909890
if (str)
98919891
{
98929892
SPIDER_FIELD_CHAIN *field_chain = fields->get_next_field_chain();
98939893
SPIDER_FIELD_HOLDER *field_holder = field_chain->field_holder;
98949894
spider = field_holder->spider;
98959895
share = spider->share;
9896-
field = spider->field_exchange(field);
9897-
DBUG_ASSERT(field);
98989896
if ((error_num = share->dbton_share[dbton_id]->
98999897
append_column_name_with_alias(str, field->field_index,
99009898
field_holder->alias->ptr(), field_holder->alias->length())))

0 commit comments

Comments
 (0)