@@ -4922,16 +4922,17 @@ double Item_copy_string::val_real()
4922
4922
int err_not_used;
4923
4923
char *end_not_used;
4924
4924
return (null_value ? 0.0 :
4925
- str_value.charset ()->strntod ((char *) str_value.ptr (), str_value.length (),
4925
+ str_value.charset ()->strntod ((char *) str_value.ptr (),
4926
+ str_value.length (),
4926
4927
&end_not_used, &err_not_used));
4927
4928
}
4928
4929
4929
4930
longlong Item_copy_string::val_int ()
4930
4931
{
4931
4932
int err;
4932
4933
return null_value ? 0 : str_value.charset ()->strntoll (str_value.ptr (),
4933
- str_value.length (), 10 , ( char **) 0 ,
4934
- &err);
4934
+ str_value.length (), 10 ,
4935
+ ( char **) 0 , &err);
4935
4936
}
4936
4937
4937
4938
@@ -5032,9 +5033,11 @@ bool Item_ref_null_helper::val_native(THD *thd, Native *to)
5032
5033
}
5033
5034
5034
5035
5035
- bool Item_ref_null_helper::get_date (THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate)
5036
+ bool Item_ref_null_helper::get_date (THD *thd, MYSQL_TIME *ltime,
5037
+ date_mode_t fuzzydate)
5036
5038
{
5037
- return (owner->was_null |= null_value= (*ref)->get_date_result (thd, ltime, fuzzydate));
5039
+ return (owner->was_null |= null_value= (*ref)->get_date_result (thd, ltime,
5040
+ fuzzydate));
5038
5041
}
5039
5042
5040
5043
@@ -5751,7 +5754,8 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference)
5751
5754
Item_ref *rf;
5752
5755
rf= new (thd->mem_root ) Item_ref (thd, context,
5753
5756
(*from_field)->table ->s ->db ,
5754
- Lex_cstring_strlen ((*from_field)->table ->alias .c_ptr ()),
5757
+ Lex_cstring_strlen ((*from_field)->
5758
+ table->alias .c_ptr ()),
5755
5759
field_name);
5756
5760
if (!rf)
5757
5761
return -1 ;
@@ -5908,8 +5912,9 @@ bool Item_field::fix_fields(THD *thd, Item **reference)
5908
5912
return TRUE ;
5909
5913
5910
5914
thd->change_item_tree (reference,
5911
- select->context_analysis_place == IN_GROUP_BY &&
5912
- alias_name_used ? *rf->ref : rf);
5915
+ select->context_analysis_place ==
5916
+ IN_GROUP_BY &&
5917
+ alias_name_used ? *rf->ref : rf);
5913
5918
5914
5919
/*
5915
5920
We can not "move" aggregate function in the place where
@@ -8891,7 +8896,8 @@ bool Item_cache_wrapper::is_null()
8891
8896
Get the date value of the possibly cached item
8892
8897
*/
8893
8898
8894
- bool Item_cache_wrapper::get_date (THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate)
8899
+ bool Item_cache_wrapper::get_date (THD *thd, MYSQL_TIME *ltime,
8900
+ date_mode_t fuzzydate)
8895
8901
{
8896
8902
Item *cached_value;
8897
8903
DBUG_ENTER (" Item_cache_wrapper::get_date" );
@@ -9434,7 +9440,8 @@ my_decimal *Item_default_value::val_decimal(my_decimal *decimal_value)
9434
9440
return Item_field::val_decimal (decimal_value);
9435
9441
}
9436
9442
9437
- bool Item_default_value::get_date (THD *thd, MYSQL_TIME *ltime,date_mode_t fuzzydate)
9443
+ bool Item_default_value::get_date (THD *thd, MYSQL_TIME *ltime,
9444
+ date_mode_t fuzzydate)
9438
9445
{
9439
9446
calculate ();
9440
9447
return Item_field::get_date (thd, ltime, fuzzydate);
@@ -9791,8 +9798,8 @@ void Item_cache::store(Item *item)
9791
9798
9792
9799
void Item_cache::print (String *str, enum_query_type query_type)
9793
9800
{
9794
- if (example && // There is a cached item
9795
- (query_type & QT_NO_DATA_EXPANSION)) // Caller is show-create-table
9801
+ if (example && // There is a cached item
9802
+ (query_type & QT_NO_DATA_EXPANSION)) // Caller is show-create-table
9796
9803
{
9797
9804
// Instead of "cache" or the cached value, print the cached item name
9798
9805
example->print (str, query_type);
@@ -9971,15 +9978,12 @@ Item *Item_cache_temporal::clone_item(THD *thd)
9971
9978
9972
9979
Item *Item_cache_temporal::convert_to_basic_const_item (THD *thd)
9973
9980
{
9974
- Item *new_item;
9975
9981
DBUG_ASSERT (value_cached || example != 0 );
9976
9982
if (!value_cached)
9977
9983
cache_value ();
9978
9984
if (null_value)
9979
9985
return new (thd->mem_root ) Item_null (thd);
9980
- else
9981
- return make_literal (thd);
9982
- return new_item;
9986
+ return make_literal (thd);
9983
9987
}
9984
9988
9985
9989
Item *Item_cache_datetime::make_literal (THD *thd)
@@ -10281,8 +10285,8 @@ bool Item_cache_row::setup(THD *thd, Item *item)
10281
10285
return 1 ;
10282
10286
for (uint i= 0 ; i < item_count; i++)
10283
10287
{
10284
- Item *el= item->element_index (i);
10285
10288
Item_cache *tmp;
10289
+ Item *el= item->element_index (i);
10286
10290
if (!(tmp= values[i]= el->get_cache (thd)))
10287
10291
return 1 ;
10288
10292
tmp->setup (thd, el);
0 commit comments