Koha/installer
Jonathan Druart aa178bcf6a Bug 25026: Use HandleError to not raise or print error
DBIC has its own HandleError, and so it does not work to unset
RaiseError or PrintError if unsafe is not set (what we don't want here).

The idea of this patch is to overwrite the HandleError when we need it:
Either if KOHA_DB_DO_NOT_RAISE_OR_PRINT_ERROR is set (misc4dev)
Or if the installer is triggered (we don't want to explode if the DB
does not exist).

There is an additional trick, when the installer is completed, we want
to restore the original behaviour, and so a disconnect is made.
Note that during the installer we want to display eventual SQL errors,
that's why we still display the errors.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-09 10:20:49 +01:00
..
data/mysql Bug 18506: DBRev 20.12.00.011 2021-02-09 09:48:49 +01:00
externalmodules.pl
html-template-to-template-toolkit.pl
install.pl Bug 25026: Use HandleError to not raise or print error 2021-02-09 10:20:49 +01:00
onboarding.pl Bug 14866: Make high holds work with different item types 2020-11-06 15:55:17 +01:00