• unknown's avatar
    Fix for BUG#8490: In mysql_make_view for join algorithm views we need · b9ada358
    unknown authored
    to insert view's subqueries into select_lex->slave(->next)* chain. 
    In case a join has several such views, don't add the same subqueries several times
    (this forms a loop on the above chain which breaks many parts of the code)
    
    
    mysql-test/r/view.result:
      Testcase for BUG#8490
    mysql-test/t/view.test:
      Testcase for BUG#8490
    b9ada358
sql_view.cc 32.7 KB