• Sergey Glukhov's avatar
    Bug#45806 crash when replacing into a view with a join! · 2dd70946
    Sergey Glukhov authored
    The crash happend because for views which are joins
    we have table_list->table == 0 and 
    table_list->table->'any method' call leads to crash.
    The fix is to perform table_list->table->file->extra()
    method for all tables belonging to view.
    
    
    mysql-test/r/view.result:
      test result
    mysql-test/t/view.test:
      test case
    sql/sql_insert.cc:
      added prepare_for_positional_update() function
      which updates extra info about primary key for
      tables belonging to view.
    2dd70946
view.result 110 KB