@@ -, +, @@ # expecting: Koha::Exceptions::Object::BadValue # found: DBIx::Class::Exception ({UNKNOWN}: Can't locate object method "rethrow" via package "DBD::mysql::st execute failed: Incorrect datetime value: 'bad_date' for column 'returndate' at row 1 [for Statement "UPDATE `issues` SET `returndate` = ? WHERE ( `issue_id` = ? )" with ParamValues: 0='bad_date', 1=238] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line --- Koha/Database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Database.pm +++ a/Koha/Database.pm @@ -103,7 +103,7 @@ sub _new_schema { %encoding_attr, RaiseError => $RaiseError, PrintError => 1, - unsafe => 1, + unsafe => !$RaiseError, quote_names => 1, on_connect_do => [ $encoding_query || (), --