ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.28k stars 1.35k forks source link

Fix/ecakubi enhance delete function #1017

Open eca-kubi opened 1 year ago

eca-kubi commented 1 year ago

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.