summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-04-20 23:30:21 +0300
committerunknown <sanja@askmonty.org>2013-04-20 23:30:21 +0300
commit2e830cfbc81c545de135b4fbee751141741a11ab (patch)
tree6ce8d03cc281bba69a63ef8fa12cd0e7181e811e /sql/item_strfunc.h
parent7efad6330fc3ca119599d6311dcd251fc8f9fbb5 (diff)
downloadmariadb-git-2e830cfbc81c545de135b4fbee751141741a11ab.tar.gz
MDEV-4402 A function to visualize histograms data.
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index 89d7fa67f6b..169da25e826 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -143,6 +143,22 @@ public:
const char *func_name() const { return "concat"; }
};
+class Item_func_decode_histogram :public Item_str_func
+{
+ String tmp_value;
+public:
+ Item_func_decode_histogram(Item *a, Item *b)
+ :Item_str_func(a, b) {}
+ String *val_str(String *);
+ void fix_length_and_dec()
+ {
+ collation.set(system_charset_info);
+ max_length= MAX_BLOB_WIDTH;
+ set_persist_maybe_null(1);
+ }
+ const char *func_name() const { return "decode_histogram"; }
+};
+
class Item_func_concat_ws :public Item_str_func
{
String tmp_value;