mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-407: Print EXPLAIN [ANALYZE] in the slow query log
- Address input from the mail list: change how EXPLAIN is formatted in the slow query log.
This commit is contained in:
@@ -2447,10 +2447,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("## <explain>\n");
|
res->append("#\n");
|
||||||
while ((row= it++))
|
while ((row= it++))
|
||||||
{
|
{
|
||||||
res->append("## ");
|
res->append("# explain: ");
|
||||||
for (int i=0; i < n_columns; i++)
|
for (int i=0; i < n_columns; i++)
|
||||||
{
|
{
|
||||||
if (i)
|
if (i)
|
||||||
@@ -2459,7 +2459,7 @@ void select_result_text_buffer::save_to(String *res)
|
|||||||
}
|
}
|
||||||
res->append("\n");
|
res->append("\n");
|
||||||
}
|
}
|
||||||
res->append("## </explain>\n");
|
res->append("#\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user