Bug #14354 » 0000416-class.t3lib_install.php.part2.diff
./class.t3lib_install.php Thu Feb 3 13:38:28 2005 | ||
---|---|---|
$table = trim($reg[1]);
|
||
if ($table) {
|
||
if (TYPO3_OS=='WIN') {$table=strtolower($table);} // tablenames are always lowercase on windows!
|
||
$sqlLines=explode("\n", $linecontent);
|
||
for ($i=0; $i < count($sqlLines); $i++){
|
||
if(strstr($sqlLines[$i],'auto_increment')) {
|
||
$sqlLines[$i] = eregi_replace('default \'0\'','',$sqlLines[$i]);
|
||
}
|
||
}
|
||
$linecontent = implode ("\n", $sqlLines);
|
||
$crTables[$table] = $linecontent;
|
||
}
|
||
} elseif ($insertCountFlag && eregi('^insert[[:space:]]*into[[:space:]]*([[:alnum:]_]*)',substr($linecontent,0,100),$reg)) {
|