• unknown's avatar
    Bug#19671 mysql_list_fields returns incorrect table name for VIEWs · a7f9f7ae
    unknown authored
    After view onening real view db name and table name are placed
    into table_list->view_db & table_list->view_name.
    Item_field class does not handle these names properly during 
    intialization of Send_field.
    The fix is to use new class 'Item_ident_for_show' 
    which sets correct view db name and table name for Send_field.
    
    
    sql/item.cc:
      Bug#19671 mysql_list_fields returns incorrect table name for VIEWs
      new Item_ident_for_show class which correctly sets view db and table names
      for Send_field.
    sql/item.h:
      Bug#19671 mysql_list_fields returns incorrect table name for VIEWs
      new Item_ident_for_show class which correctly sets view db and table names
      for Send_field.
    sql/sql_show.cc:
      Bug#19671 mysql_list_fields returns incorrect table name for VIEWs
      new Item_ident_for_show is used for views
    tests/mysql_client_test.c:
      Bug#19671 mysql_list_fields returns incorrect table name for VIEWs
      test case
    a7f9f7ae
item.h 78.3 KB