Overhauled error handling in Database classes
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Dec 2014 15:56:35 +0000 (16:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Dec 2014 15:56:35 +0000 (16:56 +0100)
commit5826dd061e333b7393ff35e02d10907a43cbec08
tree38f5049f4fe3d5211ac629fbf0252f4112fe89b4
parent729f537ac617e9f43ee99e6aeac65ca9d3ec4f48
Overhauled error handling in Database classes

Since we're no longer using prepared statement emulation, prepares fail at another stage which did not properly report the actual error message.

Additionally I've changed the error mode to actually throw exceptions rather than bogus non-success return values like 'false'.
wcfsetup/install/files/lib/system/database/Database.class.php
wcfsetup/install/files/lib/system/database/DatabaseException.class.php
wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php