diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-03-01 12:39:44 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-03-01 12:39:44 +0300 |
commit | 1913b715bc6559d3c79f8eb9cddfd971fb1dd785 (patch) | |
tree | c9c3978afa21ee1f05cc50ff5b86a8ab31ec80ee /sql/item_cmpfunc.h | |
parent | bf875901047faa8796aa0fe6a6bca32ea7fde956 (diff) | |
parent | 031657c6943aab8109cd08321048ed1f3c943a34 (diff) | |
download | mariadb-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.h | 18 |
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; } |