Fix typos in JSON MRR output

This commit is contained in:
Sergei Petrunia 2015-09-24 16:31:45 +03:00
parent 7016621596
commit 125001881d
3 changed files with 7 additions and 3 deletions

View file

@ -1492,7 +1492,7 @@ EXPLAIN
"buffer_type": "flat", "buffer_type": "flat",
"buffer_size": "256Kb", "buffer_size": "256Kb",
"join_type": "BKA", "join_type": "BKA",
"mrr_type": "; Rowid-ordered scan" "mrr_type": "Rowid-ordered scan"
} }
} }
} }
@ -1535,7 +1535,7 @@ ANALYZE
"buffer_type": "flat", "buffer_type": "flat",
"buffer_size": "256Kb", "buffer_size": "256Kb",
"join_type": "BKA", "join_type": "BKA",
"mrr_type": "; Rowid-ordered scan", "mrr_type": "Rowid-ordered scan",
"r_filtered": 100 "r_filtered": 100
} }
} }

View file

@ -1809,7 +1809,10 @@ void Explain_table_access::append_tag_name(String *str, enum explain_extra_tag t
str->append(STRING_WITH_LEN(" join")); str->append(STRING_WITH_LEN(" join"));
str->append(STRING_WITH_LEN(")")); str->append(STRING_WITH_LEN(")"));
if (bka_type.mrr_type.length()) if (bka_type.mrr_type.length())
{
str->append(STRING_WITH_LEN("; "));
str->append(bka_type.mrr_type); str->append(bka_type.mrr_type);
}
break; break;
} }

View file

@ -2620,6 +2620,7 @@ static void add_mrr_explain_info(String *str, uint mrr_mode, handler *file)
sizeof(mrr_str_buf)); sizeof(mrr_str_buf));
if (len > 0) if (len > 0)
{ {
if (str->length())
str->append(STRING_WITH_LEN("; ")); str->append(STRING_WITH_LEN("; "));
str->append(mrr_str_buf, len); str->append(mrr_str_buf, len);
} }