]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 20 Nov 2012 11:50:08 +0000 (06:50 -0500)
commitcb6870d8d137611e37ccd1cade4e257072c20bed
tree6a11ec8962bdf7637a12b916988dc62031a9a7ad
parenta7ff2a2e4d6deaf63922dd5568f466e878923b67
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>
C4/Context.pm