From 65f80b03389bb9cf926d8616b0586c8affcd5fe4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Feb 2018 10:48:49 -0300 Subject: [PATCH] Bug 20144: [sql_modes] Set auth_header.marcxml to an empty string in tests Fix for: Field 'marcxml' doesn't have a default value 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 b06dcb1e70..430a698e3d 100644 --- a/t/db_dependent/UsageStats.t +++ b/t/db_dependent/UsageStats.t @@ -283,8 +283,8 @@ sub construct_objects_needed { # ---------- Add 2 auth_header $query = ' INSERT INTO auth_header - (authtypecode) - VALUES (?)'; + (authtypecode, marcxml) + VALUES (?, "")'; $insert_sth = $dbh->prepare($query); $insert_sth->execute('authtypecode1'); my $authid1 = $dbh->last_insert_id( undef, undef, 'auth_header', undef ); -- 2.14.2