• unknown's avatar
    A fix for Bug#32030 "DELETE does not return an error and deletes rows if · 9d4d6f47
    unknown authored
    error evaluating WHERE"
    
    DELETE with a subquery in WHERE clause would sometimes ignore subquery
    evaluation error and proceed with deletion.
    
    The fix is to check for an error after evaluation of the WHERE clause
    in DELETE.
    
    Addressed review comments.
    
    
    mysql-test/r/group_min_max.result:
      Update the test results to reflect the fix for Bug#32030.
    mysql-test/r/ps.result:
      Update test results (Bug#32030)
    mysql-test/t/group_min_max.test:
      Update the test case to reflect the fix for Bug#32030
    mysql-test/t/ps.test:
      Add a test case for Bug#32030
    sql/sql_delete.cc:
      Check for an error before calling send_ok(). Two different places are
      covered because the subquery code has slightly different execution
      paths depending on ps-protocol/old-protocol
    9d4d6f47
sql_delete.cc 30.1 KB