diff options
author | unknown <bell@sanja.is.com.ua> | 2003-11-03 12:28:36 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-11-03 12:28:36 +0200 |
commit | ef163ff0fc200c8c647b48e1390d187ebffed2ba (patch) | |
tree | 9fcd3368f411e3ebf81bd5b0e3aa64c0f430970f /sql/item_cmpfunc.cc | |
parent | 22c9da4dee3f5c7b1f780aa47f1a361191e51487 (diff) | |
download | mariadb-git-ef163ff0fc200c8c647b48e1390d187ebffed2ba.tar.gz |
after review fix
mysql-test/r/func_str.result:
new results
sql/item.cc:
charset changed
printing string moved to String
sql/item_cmpfunc.cc:
new comparation class builder to avoid long switch
new print_agrs used
sql/item_cmpfunc.h:
new comparation class builder to avoid long switch
sql/item_func.cc:
new print_agrs
sql/item_func.h:
new print_agrs
sql/item_strfunc.cc:
new print_agrs
sql/item_subselect.cc:
new comparation class builder to avoid long switch
sql/item_subselect.h:
new comparation class builder to avoid long switch
sql/item_timefunc.cc:
charset changed
sql/mysql_priv.h:
new comparation class builder to avoid long switch
sql/mysqld.cc:
new comparation class builder to avoid long switch
sql/sql_parse.cc:
new comparation class builder to avoid long switch
sql/sql_string.cc:
string printing moved to String class
sql/sql_string.h:
string printing moved to String class
sql/sql_yacc.yy:
birect class creation where it is possible
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 3897022e8ce..1ec1a19382d 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -59,27 +59,38 @@ static void my_coll_agg_error(DTCollation &c1, DTCollation &c2, const char *fnam fname); } -Item_bool_func2* Item_bool_func2::eq_creator(Item *a, Item *b) + +Item_bool_func2* Eq_creator::create(Item *a, Item *b) const { return new Item_func_eq(a, b); } -Item_bool_func2* Item_bool_func2::ne_creator(Item *a, Item *b) + + +Item_bool_func2* Ne_creator::create(Item *a, Item *b) const { return new Item_func_ne(a, b); } -Item_bool_func2* Item_bool_func2::gt_creator(Item *a, Item *b) + + +Item_bool_func2* Gt_creator::create(Item *a, Item *b) const { return new Item_func_gt(a, b); } -Item_bool_func2* Item_bool_func2::lt_creator(Item *a, Item *b) + + +Item_bool_func2* Lt_creator::create(Item *a, Item *b) const { return new Item_func_lt(a, b); } -Item_bool_func2* Item_bool_func2::ge_creator(Item *a, Item *b) + + +Item_bool_func2* Ge_creator::create(Item *a, Item *b) const { return new Item_func_ge(a, b); } -Item_bool_func2* Item_bool_func2::le_creator(Item *a, Item *b) + + +Item_bool_func2* Le_creator::create(Item *a, Item *b) const { return new Item_func_le(a, b); } @@ -1549,12 +1560,7 @@ void Item_func_in::print(String *str) str->append('('); args[0]->print(str); str->append(" in (", 5); - for (uint i=1 ; i < arg_count ; i++) - { - if (i > 1) - str->append(','); - args[i]->print(str); - } + print_args(str, 1); str->append("))", 2); } |