• unknown's avatar
    Fix for BUG#8490: In mysql_make_view for join algorithm views we need · 60496497
    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
    60496497
view.result 50.4 KB