Skip to content

Commit

Permalink
fix failures of main.func_json --ps
Browse files Browse the repository at this point in the history
in normal execution, the item is wrapped in Item_func_conv_charset.

in --ps the whole is wrapped again in Item_direct_ref_to_item
  • Loading branch information
vuvova committed Jan 17, 2023
1 parent 3b93225 commit 22cd335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/item_jsonfunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ static bool is_json_type(const Item *item)
if (Type_handler_json_common::is_json_type_handler(item->type_handler()))
return true;
const Item_func_conv_charset *func;
if (!(func= dynamic_cast<const Item_func_conv_charset*>(item)))
if (!(func= dynamic_cast<const Item_func_conv_charset*>(item->real_item())))
return false;
item= func->arguments()[0];
}
Expand Down

0 comments on commit 22cd335

Please sign in to comment.