• Igor Babaev's avatar
    Back-ported the patch for bug #59696 from mysql-5.6 code line. · 6867e1b0
    Igor Babaev authored
    The patch fixed the following optimizer defect: when performing
    substitution for best equal fields into where conditions to be
    able to do their evaluations as soon as possible the optimizer 
    skipped conditions over views. That could lead to suboptimal 
    execution of queries that used views.  
    Slightly changed the test case to demonstrate the performance
    improvements if this fix.
    6867e1b0
item.cc 232 KB