@@ -2197,9 +2197,9 @@ void Item_func_between::fix_length_and_dec()
2197
2197
*/
2198
2198
if (!args[0 ] || !args[1 ] || !args[2 ])
2199
2199
return ;
2200
- if ( agg_cmp_type (&cmp_type , args, 3 ))
2200
+ if (agg_cmp_type (&m_compare_type , args, 3 ))
2201
2201
return ;
2202
- if (cmp_type == STRING_RESULT &&
2202
+ if (m_compare_type == STRING_RESULT &&
2203
2203
agg_arg_charsets_for_comparison (cmp_collation, args, 3 ))
2204
2204
return ;
2205
2205
@@ -2211,7 +2211,7 @@ void Item_func_between::fix_length_and_dec()
2211
2211
For this to work, we need to know what date/time type we compare
2212
2212
strings as.
2213
2213
*/
2214
- if (cmp_type == TIME_RESULT)
2214
+ if (m_compare_type == TIME_RESULT)
2215
2215
compare_as_dates= find_date_time_item (args, 3 , 0 );
2216
2216
2217
2217
/* See the comment about the similar block in Item_bool_func2 */
@@ -2225,7 +2225,7 @@ void Item_func_between::fix_length_and_dec()
2225
2225
const bool cvt_arg1= convert_const_to_int (thd, field_item, &args[1 ]);
2226
2226
const bool cvt_arg2= convert_const_to_int (thd, field_item, &args[2 ]);
2227
2227
if (cvt_arg1 && cvt_arg2)
2228
- cmp_type= INT_RESULT; // Works for all types.
2228
+ m_compare_type= INT_RESULT; // Works for all types.
2229
2229
}
2230
2230
}
2231
2231
}
@@ -2235,7 +2235,7 @@ longlong Item_func_between::val_int()
2235
2235
{
2236
2236
DBUG_ASSERT (fixed == 1 );
2237
2237
2238
- switch (cmp_type ) {
2238
+ switch (m_compare_type ) {
2239
2239
case TIME_RESULT:
2240
2240
{
2241
2241
THD *thd= current_thd;
@@ -3972,7 +3972,7 @@ void Item_func_in::fix_length_and_dec()
3972
3972
Item *date_arg= 0 ;
3973
3973
uint found_types= 0 ;
3974
3974
uint type_cnt= 0 , i;
3975
- Item_result cmp_type = STRING_RESULT;
3975
+ m_compare_type = STRING_RESULT;
3976
3976
left_result_type= args[0 ]->cmp_type ();
3977
3977
if (!(found_types= collect_cmp_types (args, arg_count, true )))
3978
3978
return ;
@@ -3990,18 +3990,18 @@ void Item_func_in::fix_length_and_dec()
3990
3990
if (found_types & (1U << i))
3991
3991
{
3992
3992
(type_cnt)++;
3993
- cmp_type = (Item_result) i;
3993
+ m_compare_type = (Item_result) i;
3994
3994
}
3995
3995
}
3996
3996
3997
3997
if (type_cnt == 1 )
3998
3998
{
3999
- if (cmp_type == STRING_RESULT &&
3999
+ if (m_compare_type == STRING_RESULT &&
4000
4000
agg_arg_charsets_for_comparison (cmp_collation, args, arg_count))
4001
4001
return ;
4002
4002
arg_types_compatible= TRUE ;
4003
4003
4004
- if (cmp_type == ROW_RESULT)
4004
+ if (m_compare_type == ROW_RESULT)
4005
4005
{
4006
4006
uint cols= args[0 ]->cols ();
4007
4007
cmp_item_row *cmp= 0 ;
@@ -4051,7 +4051,7 @@ void Item_func_in::fix_length_and_dec()
4051
4051
See the comment about the similar block in Item_bool_func2
4052
4052
*/
4053
4053
if (args[0 ]->real_item ()->type () == FIELD_ITEM &&
4054
- !thd->lex ->is_view_context_analysis () && cmp_type != INT_RESULT)
4054
+ !thd->lex ->is_view_context_analysis () && m_compare_type != INT_RESULT)
4055
4055
{
4056
4056
Item_field *field_item= (Item_field*) (args[0 ]->real_item ());
4057
4057
if (field_item->field_type () == MYSQL_TYPE_LONGLONG ||
@@ -4064,10 +4064,10 @@ void Item_func_in::fix_length_and_dec()
4064
4064
all_converted= FALSE ;
4065
4065
}
4066
4066
if (all_converted)
4067
- cmp_type = INT_RESULT;
4067
+ m_compare_type = INT_RESULT;
4068
4068
}
4069
4069
}
4070
- switch (cmp_type ) {
4070
+ switch (m_compare_type ) {
4071
4071
case STRING_RESULT:
4072
4072
array=new (thd->mem_root ) in_string (arg_count-1 ,(qsort2_cmp) srtcmp_in,
4073
4073
cmp_collation.collation );
0 commit comments