mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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);
|
||||
char **row;
|
||||
res->append("## <explain>\n");
|
||||
res->append("#\n");
|
||||
while ((row= it++))
|
||||
{
|
||||
res->append("## ");
|
||||
res->append("# explain: ");
|
||||
for (int i=0; i < n_columns; i++)
|
||||
{
|
||||
if (i)
|
||||
@ -2459,7 +2459,7 @@ void select_result_text_buffer::save_to(String *res)
|
||||
}
|
||||
res->append("\n");
|
||||
}
|
||||
res->append("## </explain>\n");
|
||||
res->append("#\n");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user