Koha-clms/Koha/Acquisition
Jonathan Druart 3fb268cd4b Bug 26365: Remove comparison with 0000-00-00 for datecancellationprinted
Using MySQL 8:
t/db_dependent/Koha/Acquisition/Order.t .. 10/11 No method count found for Koha::Acquisition::Orders DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Incorrect DATE value: '0000-00-00' [for Statement "SELECT COUNT( * ) FROM `aqorders` `me` WHERE ( ( ( `datecancellationprinted` IS NULL OR `datecancellationprinted` = ? ) AND `ordernumber` IN ( ?, ?, ? ) ) )" with ParamValues: 0='0000-00-00', 1=23, 2=24, 3=25] at /kohadevbox/koha/Koha/Objects.pm line 597

We must remove the comparison with 0000-00-00

Highlighted by bug 23166.

I wanted to provide a DB rev but we (obviously) cannot:
MySQL [koha_kohadev]> UPDATE aqorders SET datecancellationprinted=NULL WHERE datecancellationprinted="0000-00-00";
ERROR 1292 (22007): Incorrect date value: '0000-00-00' for column 'datecancellationprinted' at row 1

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-11 09:56:56 +02:00
..
Bookseller Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
Invoice Bug 24157: Add new method Acq::Invoice::Adjustement->fund 2020-07-30 17:30:23 +02:00
Order Bug 24161: Fix license statements 2020-05-04 09:44:44 +01:00
Basket.pm Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
BasketGroup.pm Bug 24461: Add to_api_mapping to Koha::Acquisition::BasketGroup 2020-03-24 11:32:37 +00:00
BasketGroups.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Baskets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Bookseller.pm Bug 18177: remove aqbooksellers.currency 2020-03-27 12:15:55 +00:00
Booksellers.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budget.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budgets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Currencies.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Currency.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Fund.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Funds.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Invoice.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Invoices.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Order.pm Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
Orders.pm Bug 26365: Remove comparison with 0000-00-00 for datecancellationprinted 2020-09-11 09:56:56 +02:00