mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Merge weblab.(none):/home/marcsql/TREE/mysql-5.1-base
into weblab.(none):/home/marcsql/TREE/mysql-5.1-rt50-merge client/mysql.cc: Auto merged mysql-test/r/query_cache.result: Auto merged mysql-test/t/query_cache.test: Auto merged sql/item_cmpfunc.h: Auto merged sql/sp.cc: Auto merged sql/sp_head.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_handler.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_yacc.yy: Auto merged
This commit is contained in:
commit
89d3d58511
38 changed files with 2041 additions and 241 deletions
|
|
@ -1424,6 +1424,7 @@ public:
|
|||
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 fix_fields(THD *, Item **ref);
|
||||
|
||||
|
|
@ -1616,6 +1617,15 @@ public:
|
|||
Item *neg_transformer(THD *thd);
|
||||
};
|
||||
|
||||
inline bool is_cond_and(Item *item)
|
||||
{
|
||||
if (item->type() != Item::COND_ITEM)
|
||||
return FALSE;
|
||||
|
||||
Item_cond *cond_item= (Item_cond*) item;
|
||||
return (cond_item->functype() == Item_func::COND_AND_FUNC);
|
||||
}
|
||||
|
||||
class Item_cond_or :public Item_cond
|
||||
{
|
||||
public:
|
||||
|
|
@ -1637,6 +1647,14 @@ public:
|
|||
Item *neg_transformer(THD *thd);
|
||||
};
|
||||
|
||||
inline bool is_cond_or(Item *item)
|
||||
{
|
||||
if (item->type() != Item::COND_ITEM)
|
||||
return FALSE;
|
||||
|
||||
Item_cond *cond_item= (Item_cond*) item;
|
||||
return (cond_item->functype() == Item_func::COND_OR_FUNC);
|
||||
}
|
||||
|
||||
/*
|
||||
XOR is Item_cond, not an Item_int_func because we could like to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue