Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added backslash to escaped chars

  • Loading branch information...
commit 0f738195e826bf20de6aab46cf608d4b682fd7f5 1 parent f11dc49
@schmunk42 authored
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";
}
Please sign in to comment.
Something went wrong with that request. Please try again.