• Mithun C Y's avatar
    Bug #21096444: MYSQL IS TRYING TO PERFORM A CONSISTENT READ BUT THE READ VIEW IS NOT ASSIGNED! · c28626d0
    Mithun C Y authored
    Issue: A select for update subquery in having clause
    resulted deadlock and its transaction was rolled back
    by innodb. val_XXX interfaces do not handle errors and
    it do not propogate errors to its caller. sub_select
    did not see this error when it called
    evaluate_join_record and later made a call to innodb.
    As transaction is rolled back innodb asserted.
    
    Fix: Now evaluate_join_record checks if there is any
    error reported and then return the same to its caller.
    c28626d0
sql_select.cc 557 KB