From 21f9f166cd63573b53c3b6948668658f4462e767 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Feb 2018 10:49:40 -0300 Subject: [PATCH] Bug 20144: [sql_modes] Shorten auth_header.authtypecode values in tests Fix for: Data too long for column 'authtypecode' Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice --- t/db_dependent/UsageStats.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/UsageStats.t b/t/db_dependent/UsageStats.t index 430a698e3d..0391b355a9 100644 --- a/t/db_dependent/UsageStats.t +++ b/t/db_dependent/UsageStats.t @@ -286,9 +286,9 @@ sub construct_objects_needed { (authtypecode, marcxml) VALUES (?, "")'; $insert_sth = $dbh->prepare($query); - $insert_sth->execute('authtypecode1'); + $insert_sth->execute('atc1'); my $authid1 = $dbh->last_insert_id( undef, undef, 'auth_header', undef ); - $insert_sth->execute('authtypecode2'); + $insert_sth->execute('atc2'); my $authid2 = $dbh->last_insert_id( undef, undef, 'auth_header', undef ); # ---------- Add 1 old_issues -- 2.14.2