• evgen@moonbone.local's avatar
    Fix bug #11416 Server crash if using a view that uses function convert_tz · ac324506
    evgen@moonbone.local authored
    When parser parses function convert_tz it loads available timezone tables in
    thd->lex->time_zone_tables_used. But view have another lex that main query.
    Thus time_zone_tables_used of main query left uninitialized.
    When Item_func_conver_tz is fixed it takes timezone tables from main query
    and later when it executed it assumes that timezone tables are loaded and
    failed that assertion.
    ac324506
view.test 55.1 KB