Bug #25318 ยป patch-em-dumpdb.diff
typo3/sysext/em/classes/database/class.tx_em_database.php 2011-03-14 15:18:04.000000000 +0100 | ||
---|---|---|
// Traverse the selected rows and dump each row as a line in the file:
|
||
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
|
||
$values = array();
|
||
foreach ($fieldStructure as $field) {
|
||
foreach ($fieldStructure as $field => $structure) {
|
||
$values[] = isset($row[$field]) ? "'" . str_replace($search, $replace, $row[$field]) . "'" : 'NULL';
|
||
}
|
||
$lines[] = 'INSERT INTO ' . $table . ' VALUES (' . implode(', ', $values) . ');';
|