Browse files

added backslash to escaped chars

  • Loading branch information...
1 parent f11dc49 commit 0f738195e826bf20de6aab46cf608d4b682fd7f5 @schmunk42 committed Oct 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 EDatabaseCommand.php
View
2 EDatabaseCommand.php
@@ -149,7 +149,7 @@ private function generateInserts($table, $schema)
foreach ($data AS $row) {
$code .= $this->indent(2) . '$this->insert("' . $table->name . '", array(' . "\n";
foreach ($row AS $column => $value) {
- $code .= $this->indent(3) . '"' . $column . '"=>' . (($value === null) ? 'null' : '"' . addcslashes($value,'"') . '"') . ',' . "\n";
+ $code .= $this->indent(3) . '"' . $column . '"=>' . (($value === null) ? 'null' : '"' . addcslashes($value,'"\\') . '"') . ',' . "\n";
}
$code .= $this->indent(2) . ') );' . "\n\n";
}

0 comments on commit 0f73819

Please sign in to comment.