Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
备份出来的 SQL 是一个分号
  • Loading branch information
forecho committed Mar 10, 2016
1 parent 338b7ed commit 6331c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/MysqlBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getData($tableName)
$valueString = "('" . $valueString . "'),";
$values = "\n" . $valueString;
if ($values != "") {
$data_string .= "INSERT INTO `$tableName` (`$items`) VALUES" . rtrim($values, ",") . ";;;" . PHP_EOL;
$data_string .= "INSERT INTO `$tableName` (`$items`) VALUES" . rtrim($values, ",") . ";" . PHP_EOL;
}
}

Expand Down Expand Up @@ -162,4 +162,4 @@ public function writeComment($string)
fwrite($this->fp, '-- -------------------------------------------' . PHP_EOL);
}

}
}

0 comments on commit 6331c52

Please sign in to comment.