• Varun Gupta's avatar
    MDEV-11060 sql/protocol.cc:532: void Protocol::end_statement(): Assertion `0' failed · f41bd7e5
    Varun Gupta authored
    In file sql/opt_range.cc,when calculate_cond_selectivity_for_table() is called with optimizer_use_condition_selectivity=4 then
    	- thd->no_errors is set to 1
    	- the original value of thd->no_error is not restored to its original value
    	- this is causing the assertion to fail in the subsequent queries
    
    Fixed by restoring the original value of thd->no_errors
    f41bd7e5
selectivity_innodb.test 4.59 KB