Project

General

Profile

Actions

Bug #15772

closed

"NOT NULL" removed from SQL gives error with MySQL 3.23.52

Added by Kasper Skårhøj over 18 years ago. Updated over 18 years ago.

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

0%

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

Description

Lines 324ff in class.t3lib_install.php

// Remove NOT NULL statements (they are not needed)
$parts[1] = str_replace(' NOT NULL', '', $parts[1]);

results in an error with MySQL 3.23.52 because two new tables (sys_refindex + sys_preview) in TYPO3 4.0 uses a varchar(32) field as primary key and primary keys in that MySQL version seems to require the "NOT NULL" attribute.
This will surely be a problem when people begin to upgrade sites.

(issue imported from #M2777)


Files

class.t3lib_install.php.patch (2.48 KB) class.t3lib_install.php.patch Administrator Admin, 2006-03-26 00:23

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #15888: Database analyzer fails creating some tables with MySQL 3.23ClosedIngmar Schlecht2006-03-23

Actions
Has duplicate TYPO3 Core - Bug #15587: SQL-Error while updating to 4beta2 (create table sys_refindex)ClosedIngmar Schlecht2006-02-07

Actions
Actions

Also available in: Atom PDF