In the case 1 - One record is updated successfull and got the message “Update Done”
In the Case 2 - Zero record is updated (No row affected) and the same message is showing as “Update Done”
Note that “No row affected” is still successful execution of the SQL, the result of update() method is a recordset object, not number of records affected. To get the affected row count, you may use, e.g.