File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9877,6 +9877,8 @@ int spider_db_open_item_ident(
9877
9877
} else {
9878
9878
if (!use_fields)
9879
9879
{
9880
+ if (!(field = spider->field_exchange (field)))
9881
+ DBUG_RETURN (ER_SPIDER_COND_SKIP_NUM);
9880
9882
if (str)
9881
9883
{
9882
9884
if ((error_num = share->dbton_share [dbton_id]->
@@ -9885,16 +9887,12 @@ int spider_db_open_item_ident(
9885
9887
DBUG_RETURN (error_num);
9886
9888
}
9887
9889
} else {
9888
- if (!(field = spider->field_exchange (field)))
9889
- DBUG_RETURN (ER_SPIDER_COND_SKIP_NUM);
9890
9890
if (str)
9891
9891
{
9892
9892
SPIDER_FIELD_CHAIN *field_chain = fields->get_next_field_chain ();
9893
9893
SPIDER_FIELD_HOLDER *field_holder = field_chain->field_holder ;
9894
9894
spider = field_holder->spider ;
9895
9895
share = spider->share ;
9896
- field = spider->field_exchange (field);
9897
- DBUG_ASSERT (field);
9898
9896
if ((error_num = share->dbton_share [dbton_id]->
9899
9897
append_column_name_with_alias (str, field->field_index ,
9900
9898
field_holder->alias ->ptr (), field_holder->alias ->length ())))
You can’t perform that action at this time.
0 commit comments