MDEV-3798: [SHOW] EXPLAIN UPDATE/DELETE
- When showing EXPLAIN output in the slow query log, format it so that one could use grep or other tool to get the output.
This commit is contained in:
parent
282ff783b1
commit
7be365ea9c
@ -2442,10 +2442,10 @@ void select_result_text_buffer::save_to(String *res)
|
|||||||
{
|
{
|
||||||
List_iterator<char*> it(rows);
|
List_iterator<char*> it(rows);
|
||||||
char **row;
|
char **row;
|
||||||
res->append("#\n");
|
res->append("## <explain>\n");
|
||||||
while ((row= it++))
|
while ((row= it++))
|
||||||
{
|
{
|
||||||
res->append("# ");
|
res->append("## ");
|
||||||
for (int i=0; i < n_columns; i++)
|
for (int i=0; i < n_columns; i++)
|
||||||
{
|
{
|
||||||
if (i)
|
if (i)
|
||||||
@ -2454,7 +2454,7 @@ void select_result_text_buffer::save_to(String *res)
|
|||||||
}
|
}
|
||||||
res->append("\n");
|
res->append("\n");
|
||||||
}
|
}
|
||||||
res->append("#\n");
|
res->append("## </explain>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user