Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB dump creation doesn't dump any data
07-05-2012, 08:29 PM,
#1
DB dump creation doesn't dump any data
Hi,

I tried to backup database in Admin-Tools -> Backup tools -> DB create dump, but it created SQL script with empty data (https://rapidshare.com/files/3692697571/1341498986.sql). I created path for this issue (https://rapidshare.com/files/3150571900/...dump.patch), it solved my problem.
Reply
07-05-2012, 09:25 PM,
#2
RE: DB dump creation doesn't dump any data
(07-05-2012, 08:29 PM)georgius Wrote: Hi,

I tried to backup database in Admin-Tools -> Backup tools -> DB create dump, but it created SQL script with empty data (https://rapidshare.com/files/3692697571/1341498986.sql). I created path for this issue (https://rapidshare.com/files/3150571900/...dump.patch), it solved my problem.

Thanks for the patch. It's just a bit hard to read, because there are so many differences due to line endings. I suppose not the whole file has changed, so you could as well describe the difference in a forum article.

Uwe
Reply
07-05-2012, 09:39 PM,
#3
RE: DB dump creation doesn't dump any data
Change is not so big, just whole cycle
Code:
for ($i=0;$i<(count($record)/2);$i++){
   if (is_numeric($record[$i])) $values .= $record[$i];
   else $values .= "'".$record[$i]."'";
            
   if ($i<(count($record)/2-1)) $values .= ",";
}
is replaced with
Code:
$i=0;
foreach ($record as $column) {
   if (is_numeric($column)) $values .= $column;
   else $values .= "'".$column."'";

   if ($i != (count($record) - 1)) $values .= ",";
   $i++;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Contact Us | LetoDMS Community Forum | Return to Top | | Lite (Archive) Mode | RSS Syndication