From f1a27d343b5022f2360659122b2856e3cc6b986e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Sep 2023 14:33:31 +0200 Subject: [PATCH] Bug 34847: Fix t/db_dependent/Search.t If 01e still exists then the test will fail with Truncated incorrect DECIMAL value: '01e' at t/db_dependent/Search.t line 945 Test plan: % perl /kohadevbox/misc4dev/run_tests.pl --run-db-upgrade-only % prove t/db_dependent/Search.t --- t/db_dependent/Search.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 988947a571d..b3e1c77de66 100755 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -511,7 +511,7 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' UPDATE marc_subfield_structure SET hidden=4 WHERE frameworkcode='$fw' AND - tagfield=952 AND + tagfield='952' AND tagsubfield='p'; }); @@ -520,7 +520,7 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' UPDATE marc_subfield_structure SET hidden=-7 WHERE frameworkcode='$fw' AND - tagfield=952 AND + tagfield='952' AND tagsubfield='y'; }); @@ -1018,7 +1018,7 @@ END { $dbh->do(q{ UPDATE marc_subfield_structure SET hidden=0 - WHERE tagfield=952 AND + WHERE tagfield='952' AND ( tagsubfield IN ('p', 'y') ) }); -- 2.25.1