mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Re-commit in git:
MDEV-406: ANALYZE $stmt - Ported the old patch to new explain code - New SQL syntax (ANALYZE $stmt) - ANALYZE UPDATE/DELETE is now supported (because EXPLAIN UPDATE/DELETE is supported) - Basic counters are calculated for basic kinds of queries (still need to see what happens with join buffer, ORDER BY...LIMIT queries, etc)
This commit is contained in:
@ -3959,6 +3959,18 @@ public:
|
||||
virtual void cleanup();
|
||||
};
|
||||
|
||||
class select_send_analyze : public select_send
|
||||
{
|
||||
bool discard_data;
|
||||
bool send_result_set_metadata(List<Item> &list, uint flags) { return 0; }
|
||||
/*
|
||||
ANALYZE-todo: we should call val_int() (or val_str() or whatever) to
|
||||
compute the columns. If we don't, it's not full execution.
|
||||
*/
|
||||
int send_data(List<Item> &items) { return 0; }
|
||||
bool send_eof() { return 0; }
|
||||
void abort_result_set() {}
|
||||
};
|
||||
|
||||
class select_to_file :public select_result_interceptor {
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user