diff --git a/installer/data/mysql/db_revs/240600056.pl b/installer/data/mysql/db_revs/240600056.pl index 82b0413128..abe1915c4d 100755 --- a/installer/data/mysql/db_revs/240600056.pl +++ b/installer/data/mysql/db_revs/240600056.pl @@ -12,17 +12,15 @@ return { q{ SELECT borrowernumber FROM borrowers - WHERE updated_on = '0000-00-00 00:00:00' + WHERE CAST(updated_on AS CHAR(19)) = '0000-00-00 00:00:00' } ); $sth->execute; my $results = $sth->fetchall_arrayref( {} ); - if (@$results) { sanitize_zero_date( 'borrowers', 'updated_on' ); say_info( $out, "The following borrowers' updated_on has been sanitized: " . join( ', ', map { $_->{borrowernumber} } @$results ) ); } - }, };