Bug #14790 » bug_1155.diff
typo3_src-3.8.0/t3lib/class.t3lib_install.php 2005-08-21 03:04:29.000000000 +0200 | ||
---|---|---|
function getCreateTables($statements, $insertCountFlag=0) {
|
||
$crTables = array();
|
||
foreach($statements as $line => $linecontent) {
|
||
if (eregi('^create[[:space:]]*table[[:space:]]*([[:alnum:]_]*)',substr($linecontent,0,100),$reg)) {
|
||
if (eregi('^create[[:space:]]+table[[:space:]]*([[:alnum:]_\`]*)',substr($linecontent,0,100),$reg)) {
|
||
$table = trim($reg[1]);
|
||
if ($table) {
|
||
if (TYPO3_OS=='WIN') { $table=strtolower($table); } // table names are always lowercase on Windows!
|
||
... | ... | |
$linecontent = implode(chr(10), $sqlLines);
|
||
$crTables[$table] = $linecontent;
|
||
}
|
||
} elseif ($insertCountFlag && eregi('^insert[[:space:]]*into[[:space:]]*([[:alnum:]_]*)',substr($linecontent,0,100),$reg)) {
|
||
} elseif ($insertCountFlag && eregi('^insert[[:space:]]+into[[:space:]]*([[:alnum:]_\`]*)',substr($linecontent,0,100),$reg)) {
|
||
$nTable = trim($reg[1]);
|
||
$insertCount[$nTable]++;
|
||
}
|