1
0
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

- Initial implementation.
This commit is contained in:
Sergey Petrunya
2013-09-19 08:33:58 +04:00
parent ae6e95c498
commit 2add402891
9 changed files with 136 additions and 3 deletions

View File

@ -3442,6 +3442,26 @@ public:
};
/*
This is a select_result_sink which stores the data in text form.
*/
class select_result_text_buffer : public select_result_sink
{
public:
select_result_text_buffer(THD *thd_arg) : thd(thd_arg) {}
int send_data(List<Item> &items);
bool send_result_set_metadata(List<Item> &fields, uint flag);
void save_to(String *res);
private:
int append_row(List<Item> &items, bool send_names);
THD *thd;
List<char*> rows;
int n_columns;
};
/*
Base class for select_result descendands which intercept and