[Koha-bugs] [Bug 7167] updatedatabase improvements

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 13 10:38:44 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7167

--- Comment #154 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 11571
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11571&action=edit
Bug 7167: Don't raise an error in routine TableExists

Hi Jared,

In most cases, if a .pl is not loadable, it is because there is a problem with
the write flag or the file has a perl syntax error. It is why I encapsulate the
error and raise my own error (I can't load
/home/jcamins/kohaclone/installer/data/mysql/versions/update_sample.pl. Please
check the execute flag and if this file is a valid perl script). But I display
the original error too (DBD::mysql::db do failed: Table 'koha.testtable'
doesn't exist at /home/jcamins/kohaclone/C4/Update/Database.pm line 542.). In
this case, the last one is the good one.

I stupidly copy the existent TableExists routine which raise an error. This
patch switches off the RaiseError flag.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list