]> git.koha-community.org Git - koha.git/commit
Bug 9085 - Installer will not run with DEBUG set
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 14 Nov 2012 20:36:21 +0000 (15:36 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Nov 2012 19:42:12 +0000 (08:42 +1300)
commit987d9bd1104aa77d02e3051c7e71eef3f7910842
tree914e21947ab0abacf8bb357db28c7bb35eb3f8a5
parentb17765f2f9d02055eaf9f06af3a1c794f4b3bf42
Bug 9085 - Installer will not run with DEBUG set

This is due to raising all db errors combined with the fact that attempts
to make selections from a non-existent systempreferences table raises db errors.

The installer should run even with DEBUG set, otherwise dropping and recreating
a development database becomes somewhat of a chore. This patch adds code to
check for the existence of the systempreferece table. If the table exists, then
RaiseError is enabled on the database handle. Otherwise it is disabled to allow
the installer to run without throwing an error.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
The installer can now be run both with and without DEBUG set.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Context.pm