summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-03-01 12:39:44 +0300
committerAlexander Nozdrin <alik@sun.com>2010-03-01 12:39:44 +0300
commit1913b715bc6559d3c79f8eb9cddfd971fb1dd785 (patch)
treec9c3978afa21ee1f05cc50ff5b86a8ab31ec80ee /sql/item_cmpfunc.h
parentbf875901047faa8796aa0fe6a6bca32ea7fde956 (diff)
parent031657c6943aab8109cd08321048ed1f3c943a34 (diff)
downloadmariadb-git-1913b715bc6559d3c79f8eb9cddfd971fb1dd785.tar.gz
Manual merge from mysql-trunk-merge.
Conflicts: - sql/share/Makefile.am
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index ef4eef3276c..c3859ab29b9 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -1477,9 +1477,21 @@ public:
Item_cond(THD *thd, Item_cond *item);
Item_cond(List<Item> &nlist)
:Item_bool_func(), list(nlist), abort_on_null(0) {}
- bool add(Item *item) { return list.push_back(item); }
- bool add_at_head(Item *item) { return list.push_front(item); }
- void add_at_head(List<Item> *nlist) { list.prepand(nlist); }
+ bool add(Item *item)
+ {
+ DBUG_ASSERT(item);
+ return list.push_back(item);
+ }
+ bool add_at_head(Item *item)
+ {
+ DBUG_ASSERT(item);
+ return list.push_front(item);
+ }
+ void add_at_head(List<Item> *nlist)
+ {
+ DBUG_ASSERT(nlist->elements);
+ list.prepand(nlist);
+ }
bool fix_fields(THD *, Item **ref);
enum Type type() const { return COND_ITEM; }