The existing delete function in the MysqlDb class lacked appropriate error handling mechanisms. Specifically, it did not throw exceptions or provide meaningful feedback when the SQL statement execution failed.
This Pull Request addresses the issue with this change:
Enhanced the error handling in the delete function by throwing exceptions when the SQL statement execution fails.
Testing:
Unit tests were updated to reflect these changes and all tests pass successfully. Also performed manual testing to confirm the correct exceptions are thrown in appropriate scenarios.
Problem:
The existing delete function in the MysqlDb class lacked appropriate error handling mechanisms. Specifically, it did not throw exceptions or provide meaningful feedback when the SQL statement execution failed. This Pull Request addresses the issue with this change:
Testing: Unit tests were updated to reflect these changes and all tests pass successfully. Also performed manual testing to confirm the correct exceptions are thrown in appropriate scenarios.
Please review the changes and provide feedback.