• Jon Olav Hauglid's avatar
    Bug #54401 assert in Diagnostics_area::set_eof_status , HANDLER · 132ccf93
    Jon Olav Hauglid authored
    This assert checks that the server does not try to send EOF to the
    client if there has been some error during processing. This to make
    sure that the error is in fact sent to the client.
    
    The problem was that any errors during processing of WHERE conditions
    in HANDLER ... READ statements where not detected by the handler code.
    The handler code therefore still tried to send EOF to the client,
    triggering the assert. The bug was only noticeable in debug builds.
    
    This patch fixes the problem by making sure that the handler code
    checks for errors during condition processing and acts accordingly.
    132ccf93
handler_innodb.result 38.9 KB