[TYPO3-core] RFC: Fix sys_refindex problem when using multiplyDBfieldSize=2

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Nov 7 13:32:48 CET 2006


Michael Stucki schrieb:
> Hi Martin,
> 
> 
>>Attached is a diff that does this. If a CHAR/VARCHAR becomes a TEXT,
>>then all occurences in index definitions are changed so that Mysql will
>>get a correct index prefix for that field.
>>
>>With this patch we may remove the '(199)' in the index of sys_refindex.
> 
> 
> I tested this, and it works as expected. Just one note:
> 
> | $match = array();
> 
> I think you can remove this line, $match is set automatically by preg_match.

No, preg_match uses the existing array. It will NOT clear it! So always 
reset your match array when doing a loop.

Masi



More information about the TYPO3-team-core mailing list