mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 08:45:33 +02: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:
parent
e0d9a25690
commit
2cba9e0cdc
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue