diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-04 16:46:58 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-04 16:46:58 +0200 |
commit | 9835f7b80fc0eaa7fe4969ae87ae1bfbcc7aa157 (patch) | |
tree | 8c12732d7d80790d1f70ed5e302398600b733186 /sql/sql_cmd.h | |
parent | 74d648db12e100c628548fb2e5aa67de718bd1fb (diff) | |
parent | 91e4f00389483d22fa81517bbcdcd21499fd283a (diff) | |
download | mariadb-git-9835f7b80fc0eaa7fe4969ae87ae1bfbcc7aa157.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/sql_cmd.h')
-rw-r--r-- | sql/sql_cmd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/sql_cmd.h b/sql/sql_cmd.h index e33f8e443dc..d6220f9ee44 100644 --- a/sql/sql_cmd.h +++ b/sql/sql_cmd.h @@ -148,6 +148,8 @@ public: */ virtual bool execute(THD *thd) = 0; + virtual bool log_slow_enabled_statement(const THD *thd) const; + protected: Sql_cmd() {} @@ -164,4 +166,17 @@ protected: } }; + +class Sql_cmd_admin: public Sql_cmd +{ +public: + Sql_cmd_admin() + {} + ~Sql_cmd_admin() + {} + bool log_slow_enabled_statement(const THD *thd) const; +}; + + + #endif // SQL_CMD_INCLUDED |