[TYPO3-core] FYI72 Bug #13270: t3lib_cache_backend_dbbackendtestcase does not reflect current db backend table definitions

Christian Kuhn lolli at schwarzbu.ch
Sun Jan 17 18:13:30 CET 2010


The attached patch will be committed to SVN trunk and TYPO3_4-3 in 72
hours if nobody objects.

Type: Bugfix, nobrainer

BT reference: http://bugs.typo3.org/view.php?id=13270

Branches: trunk, TYPO3_4-3

Problem:
The db backend defines those fields for cache tables:
  id int(11) unsigned NOT NULL auto_increment,
  identifier varchar(128) DEFAULT '' NOT NULL,
  crdate int(11) unsigned DEFAULT '0' NOT NULL,
  content mediumtext,
  lifetime int(11) unsigned DEFAULT '0' NOT NULL,

But the testcase uses this definiton:
  id int(11) unsigned NOT NULL auto_increment,
  identifier varchar(250) DEFAULT '' NOT NULL,
  crdate int(11) unsigned DEFAULT '0' NOT NULL,
  content mediumtext,
  tags mediumtext,
  lifetime int(11) unsigned DEFAULT '0' NOT NULL,

Solution:
- Change identifier varchar(250) to 128
- Remove tags field

Regards
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13270.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100117/2cd6c3cd/attachment.asc>


More information about the TYPO3-team-core mailing list