1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-14592: Custom Aggregates Usage Status Variable

Introduced new status variable for custom aggregate functions.
This commit is contained in:
Varun Gupta
2018-03-30 01:25:48 +03:00
parent 87ee85634c
commit cbc45d2914
9 changed files with 180 additions and 0 deletions

View File

@ -1221,9 +1221,11 @@ public:
*/
bool non_agg_field_used() const { return m_non_agg_field_used; }
bool agg_func_used() const { return m_agg_func_used; }
bool custom_agg_func_used() const { return m_custom_agg_func_used; }
void set_non_agg_field_used(bool val) { m_non_agg_field_used= val; }
void set_agg_func_used(bool val) { m_agg_func_used= val; }
void set_custom_agg_func_used(bool val) { m_custom_agg_func_used= val; }
inline void set_with_clause(With_clause *with_clause);
With_clause *get_with_clause()
{
@ -1267,6 +1269,7 @@ public:
private:
bool m_non_agg_field_used;
bool m_agg_func_used;
bool m_custom_agg_func_used;
/* current index hint kind. used in filling up index_hints */
enum index_hint_type current_index_hint_type;