Project

General

Profile

Actions

Bug #14422

closed

bug with MySQL 4.1.7

Added by old_kttxpo over 19 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2004-11-30
Due date:
% Done:

0%

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

Description

all SQL statements like NOT NULL DEFAULT '0' seem to be rejected by mysqld
There has already been some fixes for ext. installation, but if you use the install tool to upgrade from 3.6 to 3.7 for example, you cannot import the static tables, and you cannot apply the comparison's results as well.

Well.. if it has already been fixed up, I'll blush and cry sorry.
(issue imported from #M560)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #14354: MySQL gt 4.1 no default value for auto incClosedIngmar Schlecht2004-10-12

Actions
Actions #1

Updated by old_kttxpo over 19 years ago

looks like # 0000546, because of the new syntax on auto increment.

Actions #2

Updated by old_kttxpo over 19 years ago

someting like this should be able to correct it.
!/bin/bash
version=typo3_src-3.7.0
for i in $(find $version -name *.sql)
do
echo "Patching $i..."
sed -r "s/DEFAULT '0' NOT NULL auto_increment/NOT NULL auto_increment/g" -i $i
grep "DEFAULT '0' NOT NULL auto_increment" $i
done
for i in $(find content/typo3conf -name *.sql)
do
echo "Patching $i..."
sed -r "s/DEFAULT '0' NOT NULL auto_increment/NOT NULL auto_increment/g" -i $i
grep "DEFAULT '0' NOT NULL auto_increment" $i
done

Actions

Also available in: Atom PDF