diff options
author | unknown <sanja@askmonty.org> | 2013-04-20 23:30:21 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-04-20 23:30:21 +0300 |
commit | 2e830cfbc81c545de135b4fbee751141741a11ab (patch) | |
tree | 6ce8d03cc281bba69a63ef8fa12cd0e7181e811e /sql/item_create.cc | |
parent | 7efad6330fc3ca119599d6311dcd251fc8f9fbb5 (diff) | |
download | mariadb-git-2e830cfbc81c545de135b4fbee751141741a11ab.tar.gz |
MDEV-4402 A function to visualize histograms data.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index c1cefed6f8b..ce4dc7ced8f 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -614,6 +614,19 @@ protected: }; +class Create_func_decode_histogram : public Create_func_arg2 +{ +public: + Item *create_2_arg(THD *thd, Item *arg1, Item *arg2); + + static Create_func_decode_histogram s_singleton; + +protected: + Create_func_decode_histogram() {} + virtual ~Create_func_decode_histogram() {} +}; + + class Create_func_concat_ws : public Create_native_func { public: @@ -3231,6 +3244,13 @@ Create_func_concat::create_native(THD *thd, LEX_STRING name, return new (thd->mem_root) Item_func_concat(*item_list); } +Create_func_decode_histogram Create_func_decode_histogram::s_singleton; + +Item * +Create_func_decode_histogram::create_2_arg(THD *thd, Item *arg1, Item *arg2) +{ + return new (thd->mem_root) Item_func_decode_histogram(arg1, arg2); +} Create_func_concat_ws Create_func_concat_ws::s_singleton; @@ -5377,6 +5397,7 @@ static Native_func_registry func_array[] = { { C_STRING_WITH_LEN("DAYOFYEAR") }, BUILDER(Create_func_dayofyear)}, { { C_STRING_WITH_LEN("DECODE") }, BUILDER(Create_func_decode)}, { { C_STRING_WITH_LEN("DEGREES") }, BUILDER(Create_func_degrees)}, + { { C_STRING_WITH_LEN("DECODE_HISTOGRAM") }, BUILDER(Create_func_decode_histogram)}, { { C_STRING_WITH_LEN("DES_DECRYPT") }, BUILDER(Create_func_des_decrypt)}, { { C_STRING_WITH_LEN("DES_ENCRYPT") }, BUILDER(Create_func_des_encrypt)}, { { C_STRING_WITH_LEN("DIMENSION") }, GEOM_BUILDER(Create_func_dimension)}, |