• unknown's avatar
    Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(), · b214671e
    unknown authored
     DAYOFWEEK(), and WEEKDAY().
    
    
    mysql-test/r/func_time.result:
      Fixed new results for testcases containing EXPLAIN EXTENDED SELECT ...
       WEEKDAY ... DAYNAME. The new results are correct and correspond to
       the changes in create_func_weekday() and create_func_dayname().
    mysql-test/r/view.result:
      Fixed some testcases results (bugs #12963, #13000).
    mysql-test/t/view.test:
      Added testcases for for bugs #12963, #13000.
    sql/item_create.cc:
      Fixed bugs #12963, #13000: wrong VIEW creation with DAYNAME(),
       DAYOFWEEK(), and WEEKDAY().
       Modified create_func_dayname(), create_func_dayofweek(), and
       create_func_weekday(). They don´t insert Item_func_to_days
       object now.
    sql/item_timefunc.cc:
      Fixed bugs #12963, #13000: wrong VIEW creation with DAYNAME(),
       DAYOFWEEK(), and WEEKDAY().
       Modified Item_func_weekday::val_int(). The argument of weekday should
       not be considered now to be Item_func_to_days object.
    sql/item_timefunc.h:
      Fixed bugs #12963, 13000: wrong VIEW creation with DAYNAME(),
       DAYOFWEEK(), and WEEKDAY.
       Modified Item_func_weekday::func_name(). It returns now different
       names depending on the odbc_type attribute value.
    b214671e
item_timefunc.cc 78.6 KB