Commit 8c06b7ce authored by Guilherme Blanco's avatar Guilherme Blanco

Fixed issue if comment contains quotes. It sould duplicate the quotes in MySQL platform.

parent d56c9fe2
......@@ -368,7 +368,9 @@ class MySqlPlatform extends AbstractPlatform
$query .= 'TABLE ' . $tableName . ' (' . $queryFields . ') ';
if (isset($options['comment'])) {
$query .= sprintf("COMMENT = '%s' ", $options['comment']);
$comment = trim($options['comment'], " '");
$query .= sprintf("COMMENT = '%s' ", str_replace("'", "''", $comment));
}
if ( ! isset($options['charset'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment