summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-10-11 12:50:30 -0700
committerIgor Babaev <igor@askmonty.org>2013-10-11 12:50:30 -0700
commit092a238864591bc540beb00145759fa6af5f2746 (patch)
treec335f34a9ea54e39c6bfc046986fec3fb820db98 /sql/item_func.h
parent7c87385e3075143de18e50c1d327eeb2e224603a (diff)
downloadmariadb-git-092a238864591bc540beb00145759fa6af5f2746.tar.gz
Fixed a problem of the patch for mdev-5105 that caused valgrind complains.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 310b312d1e4..b3ce85b96c4 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -488,17 +488,20 @@ class Item_int_func :public Item_func
protected:
bool sargable;
public:
- Item_int_func() :Item_func() { max_length= 21; }
- Item_int_func(Item *a) :Item_func(a) { max_length= 21; }
- Item_int_func(Item *a,Item *b) :Item_func(a,b) { max_length= 21; }
+ Item_int_func() :Item_func() { max_length= 21; sargable= false; }
+ Item_int_func(Item *a) :Item_func(a) { max_length= 21; sargable= false; }
+ Item_int_func(Item *a,Item *b) :Item_func(a,b)
+ { max_length= 21; sargable= false; }
Item_int_func(Item *a,Item *b,Item *c) :Item_func(a,b,c)
- { max_length= 21; }
- Item_int_func(List<Item> &list) :Item_func(list) { max_length= 21; }
- Item_int_func(THD *thd, Item_int_func *item) :Item_func(thd, item) {}
+ { max_length= 21; sargable= false; }
+ Item_int_func(List<Item> &list) :Item_func(list)
+ { max_length= 21; sargable= false; }
+ Item_int_func(THD *thd, Item_int_func *item) :Item_func(thd, item)
+ { sargable= false;}
double val_real();
String *val_str(String*str);
enum Item_result result_type () const { return INT_RESULT; }
- void fix_length_and_dec() { sargable= false; }
+ void fix_length_and_dec() {}
bool count_sargable_conds(uchar *arg);
};