• dlenev@brandersnatch.localdomain's avatar
    Fix for bug #7899 "CREATE TABLE .. SELECT .. and CONVERT_TZ() function · 80282016
    dlenev@brandersnatch.localdomain authored
    does not work well together". Now using simplier and more correct
    implementation of st_lex::unlink_first_table()/link_first_table_back() 
    (It also nicely handles case when global table list is created because
    of implictly used time zone tables). (2nd attempt)
    
    Fix for bug #7705 "CONVERT_TZ() crashes with subquery/WHERE on index
    column". Implemented new approach for caching objects for constant
    time zone arguments. Now instead of determining whenever these arguments
    are constants and performing time zone lookup at fix_fields() stage, we
    do it on first get_date() invocation.
    
    Cleanup of global @@time_zone variable handling.
    80282016
timezone2.result 11.9 KB