MantisBT: next 17197438

Author Committer Branch Timestamp Parent
dhx dhx next 2011-09-17 01:50 next 78de4cd9
Changeset

Implement QueryFailed and ParameterCountMismatch exceptions

These changes are quite invasive towards the database support in
MantisBT. A number of legacy error reporting and handling functions
specific to database handling have been removed.

Legacy database backends (those not using PDO) can be implemented so
that they throw their own exceptions in the same way PDO does. This
moves responsibility over getLastError() type functions into the legacy
backends where it belongs.

add - application/MantisBT/Exception/Database/ParameterCountMismatch.php Diff File
add - application/MantisBT/Exception/Database/QueryFailed.php Diff File
rm - application/MantisBT/Exception/Db.php Diff
mod - application/MantisBT/Db/DriverAbstract.php Diff File
mod - application/MantisBT/Db/DriverInterface.php Diff File
mod - application/MantisBT/Db/PDO/Mysql.php Diff File
mod - application/MantisBT/Db/PDO/PDOAbstract.php Diff File
mod - application/MantisBT/Error.php Diff File
mod - application/core/database_api.php Diff File