From ec156e115d8ee35b7e2b953a14f3275bfc7a4800 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 30 Nov 2017 01:26:23 +0100 Subject: [PATCH] * InfoLog/Setup: fix SQL error on update from 16.1 (Truncated incorrect double value) --- infolog/setup/tables_update.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index 9c19276263..02428239e5 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -941,8 +941,8 @@ function infolog_upgrade16_1_003() { // copy full info_addr to info_des, if length(info_from)+length(info_addr)+2 > 255 and then shorten it to fit $GLOBALS['egw_setup']->db->query("UPDATE egw_infolog SET info_des=". - $GLOBALS['egw_setup']->db->concat('info_addr', '"\n\n"', 'info_des'). - " WHERE LENGTH(info_from)+LENGTH(info_addr > 253)", __LINE__, __FILE__); + $GLOBALS['egw_setup']->db->concat('info_addr', "'\n\n'", 'info_des'). + " WHERE LENGTH(info_from)+LENGTH(info_addr) > 253", __LINE__, __FILE__); $GLOBALS['egw_setup']->db->query("UPDATE egw_infolog SET info_from = CASE WHEN info_from != '' THEN SUBSTRING(". $GLOBALS['egw_setup']->db->concat('info_from', "', '", 'info_addr')." FROM 1 FOR 255) ELSE info_addr END".