MDEV-30646: View created via JSON_ARRAYAGG returns incorrect json object
Analysis: For the JSON typehandler ::type_handler_for_tmp_table() returns plain VARCHAR. Hence so the VARCHAR field is created in the temporary table. So 'is_json_type()' check in the append_json_value() fails and we end up quoting the string additionally. Fix: Force treat it as json, because append_json_value() will of course always append json.
Showing
Please register or sign in to comment