mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
fix SQL error caused by missing quotes
This commit is contained in:
parent
2d93c48b75
commit
b40fd0a8eb
@ -941,7 +941,7 @@ 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').
|
||||
$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(".
|
||||
|
Loading…
Reference in New Issue
Block a user