• unknown's avatar
    Fixed bug #20076. · e8adb499
    unknown authored
    Server crashed in some cases when a query required a MIN/MAX
    agrregation for a 'ucs2' field. 
    In these cases  the aggregation caused calls of the function
    update_tmptable_sum_func that indirectly invoked 
    the method Item_sum_hybrid::min_max_update_str_field() 
    containing a call to strip_sp for a ucs2 character set.
    The latter led directly to the crash as it used my_isspace
    undefined for the ucs2 character set.
    Actually the call of strip_sp is not needed at all in this
    situation and has been removed by the fix.
    
    
    mysql-test/r/ctype_ucs.result:
      Added a test case for bug #20076.
    mysql-test/t/ctype_ucs.test:
      Added a test case for bug #20076.
    e8adb499
item_sum.cc 45.9 KB