Project

General

Profile

Actions

Bug #15915

closed

Database Analyser does not create sys_refindex if multiplyDBfieldSize is set

Added by Andreas Otto † about 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2006-03-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using the "Compare"-function from the Database Analyser fails to create the table "sys_refindex" with the following error message if $TYPO3_CONF_VARS[SYS][multiplyDBfieldSize]=2 is used (the database analyser than tries to create a field of type TEXT instead of VARCHAR):

BLOB/TEXT column 'ref_string' used in key specification without a key length

To solve this a length has to be assigned to the key referencing the column "ref_string".

This happens because MySQL needs to know how many bytes of a BLOB column should be indexed. See [1] for an explanation.

The MySQL version used on the server- or client-side is not relevant here.

This error is likely to happen in other extensions as well when index is used on BLOB columns.

[1]<http://groups.google.com/group/mailing.database.myodbc/msg/2055be92b8d210e4>

(issue imported from #M3015)


Files

typo4-4.0.0-CVS-sys_refindex.txt (2.14 KB) typo4-4.0.0-CVS-sys_refindex.txt Administrator Admin, 2006-03-28 09:54
Actions

Also available in: Atom PDF