1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-27204: [ERROR] Json_writer: a member name was expected, Assertion `got_name

[Adjusting Sergei Krivonos's patch]

"duplicates_removal" may contain multiple elements inside it and
so should have a JSON array as a value (and not object).
This commit is contained in:
Sergei Petrunia
2021-12-09 16:49:40 +03:00
parent 1e8bcbd0a0
commit c88e37ff85
3 changed files with 86 additions and 13 deletions

View File

@@ -1100,12 +1100,16 @@ print_explain_json_interns(Explain_query *query,
{
writer->start_object();
writer->add_member("duplicates_removal");
writer->start_array();
}
join_tabs[i]->print_explain_json(query, writer, is_analyze);
if (join_tabs[i]->end_dups_weedout)
{
writer->end_array();
writer->end_object();
}
}
} // "nested_loop"
print_explain_json_for_children(query, writer, is_analyze);