diff options
author | unknown <konstantin@mysql.com> | 2004-02-03 23:34:31 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-02-03 23:34:31 +0300 |
commit | fc7a75b0ac00a84e3319dfce53c58cacd20f4ed0 (patch) | |
tree | 22a3ec5bd5c72bb334906323290b6c8911aa8d07 /sql/item.cc | |
parent | 1a7af0059d80e83e0bf9b83dca0f02998f7bc74b (diff) | |
download | mariadb-git-fc7a75b0ac00a84e3319dfce53c58cacd20f4ed0.tar.gz |
cleanup: #ifdef DELETE_ITEMS removed
sql/item.cc:
#ifdef DELETE_ITEMS removed
sql/item_cmpfunc.cc:
#ifdef DELETE_ITEMS removed
sql/sql_parse.cc:
#ifdef DELETE_ITEMS removed
sql/sql_select.cc:
#ifdef DELETE_ITEMS removed
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sql/item.cc b/sql/item.cc index 09328dfbf07..4d06d0d7765 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -1779,17 +1779,9 @@ Item *resolve_const_item(Item *item,Item *comp_item) String tmp(buff,sizeof(buff),&my_charset_bin),*result; result=item->val_str(&tmp); if (item->null_value) - { -#ifdef DELETE_ITEMS - delete item; -#endif return new Item_null(name); - } uint length=result->length(); char *tmp_str=sql_strmake(result->ptr(),length); -#ifdef DELETE_ITEMS - delete item; -#endif return new Item_string(name,tmp_str,length,result->charset()); } if (res_type == INT_RESULT) @@ -1797,9 +1789,6 @@ Item *resolve_const_item(Item *item,Item *comp_item) longlong result=item->val_int(); uint length=item->max_length; bool null_value=item->null_value; -#ifdef DELETE_ITEMS - delete item; -#endif return (null_value ? (Item*) new Item_null(name) : (Item*) new Item_int(name,result,length)); } @@ -1808,9 +1797,6 @@ Item *resolve_const_item(Item *item,Item *comp_item) double result=item->val(); uint length=item->max_length,decimals=item->decimals; bool null_value=item->null_value; -#ifdef DELETE_ITEMS - delete item; -#endif return (null_value ? (Item*) new Item_null(name) : (Item*) new Item_real(name,result,decimals,length)); } |