• Sergey Glukhov's avatar
    Bug#37575 UCASE fails on monthname · c06df92a
    Sergey Glukhov authored
    The MONTHNAME/DAYNAME functions
    returns binary string, so the LOWER/UPPER functions
    are not effective on the result of MONTHNAME/DAYNAME call.  
    Character set of the MONTHNAME/DAYNAME function
    result has been changed to connection character set.
    
    
    include/m_ctype.h:
      added my_charset_repertoire function
    mysql-test/r/ctype_ucs.result:
      test result
    mysql-test/r/func_time.result:
      test result
    mysql-test/t/ctype_ucs.test:
      test case
    mysql-test/t/func_time.test:
      test case
    sql/item_timefunc.cc:
      Item_func_monthname::fix_length_and_dec and
      Item_func_dayname::fix_length_and_dec methods have been
      modified to use connection character set
    sql/item_timefunc.h:
      Item_func_monthname::fix_length_and_dec and
      Item_func_dayname::fix_length_and_dec methods have been
      modified to use connection character set
    sql/mysql_priv.h:
      added max_month_name_length, max_day_name_length fields into MY_LOCALE struct
    sql/mysqld.cc:
      The test_lc_time_sz function controls modifications
      of the locale database in debugging mode.
    sql/sql_locale.cc:
      initialization of max_month_name_length, max_day_name_length fields
    strings/ctype.c:
      added my_charset_repertoire function
    c06df92a
func_time.result 54.8 KB