From ca3243d00ff094c86fcd02406543b6b3d06627ee 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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 988947a571..b3e1c77de6 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.39.5