From 7074ef6142e26131495c3707f8143609ea8956ac Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 Aug 2015 11:08:03 +0000 Subject: [PATCH] * Backup/MySQL: limited index length was not reported for PHP mysqli driver --- phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php b/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php index 945695163a..f25bee8645 100644 --- a/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php +++ b/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php @@ -320,7 +320,8 @@ class ADODB_mysqli extends ADOConnection { ); } - $indexes[$row[2]]['columns'][$row[3] - 1] = $row[4]; + $indexes[$row[2]]['columns'][$row[3] - 1] = $row[4]. + (is_numeric($row[7]) ? '('.(int)$row[7].')' : ''); } // sort columns by order in the index