From 93f072a236afa9f94fbd4a305ad2a72a7c607f7f Mon Sep 17 00:00:00 2001 From: Claus Due <claus@namelesscoder.net> Date: Fri, 24 Feb 2017 13:55:48 +0100 Subject: [PATCH] [BUGFIX] Limit maximum key length on sys_refindex Prevents issues if key length exceeds maximum key lengt for the SQL server. Keys are now kept below a 255 byte limit. Change-Id: I8e0c2a167f94695dd728c777368fac9e779678d8 Resolves: #79993 Releases: master Reviewed-on: https://review.typo3.org/51828 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Thomas Hohn <thomas@hohn.dk> Tested-by: Thomas Hohn <thomas@hohn.dk> Reviewed-by: Anders Kostending <aha@systime.dk> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/core/ext_tables.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/core/ext_tables.sql b/typo3/sysext/core/ext_tables.sql index 2c902b5b81ef..8319c9b8f426 100644 --- a/typo3/sysext/core/ext_tables.sql +++ b/typo3/sysext/core/ext_tables.sql @@ -583,9 +583,9 @@ CREATE TABLE sys_refindex ( ref_string varchar(1024) DEFAULT '' NOT NULL, PRIMARY KEY (hash), - KEY lookup_rec (tablename,recuid), - KEY lookup_uid (ref_table,ref_uid), - KEY lookup_string (ref_string) + KEY lookup_rec (tablename(240),recuid), + KEY lookup_uid (ref_table(240),ref_uid), + KEY lookup_string (ref_string(255)) ); # -- GitLab