Skip to content

Commit

Permalink
Fix postgres blueprint compileComment to proper escape its content
Browse files Browse the repository at this point in the history
  • Loading branch information
mfn committed Dec 16, 2017
1 parent eadcabe commit 18f7ede
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function compileComment(Blueprint $blueprint, Fluent $command)
return sprintf('comment on column %s.%s is %s',
$this->wrapTable($blueprint),
$this->wrap($command->column->name),
"'".addslashes($command->value)."'"
"'".str_replace("'", "''", $command->value)."'"
);
}

Expand Down

0 comments on commit 18f7ede

Please sign in to comment.