Project

General

Profile

Bug #14354 » class.t3lib_install__beta2.diff

Administrator Admin, 2005-04-18 11:49

View differences:

t3lib/class.t3lib_install.php 2005-04-18 11:33:44.653615968 +0200
foreach($sqlcodeArr as $line => $linecontent) {
$is_set = 0;
if(stristr($linecontent,'auto_increment')) {
$linecontent = eregi_replace(' default \'0\'','',$linecontent);
}
if (!$removeNonSQL || (strcmp(trim($linecontent),'') && substr(trim($linecontent),0,1)!='#' && substr(trim($linecontent),0,2)!='--')) { // '--' is seen as mysqldump comments from server version 3.23.49
$statementArray[$statementArrayPointer].= $linecontent;
$is_set = 1;
......
$sqlLines = explode(chr(10), $linecontent);
foreach($sqlLines as $k=>$v) {
if(stristr($v,'auto_increment')) {
$sqlLines[$key] = eregi_replace(' default \'0\'','',$v);
$sqlLines[$k] = eregi_replace(' default \'0\'','',$v);
}
}
$linecontent = implode(chr(10), $sqlLines);
(6-6/6)