Commit de38dc32 authored by Guilherme Blanco's avatar Guilherme Blanco Committed by Benjamin Eberlei

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

parent fdc866a3
......@@ -372,7 +372,9 @@ class MySqlPlatform extends AbstractPlatform
$query .= 'TABLE ' . $tableName . ' (' . $queryFields . ') ';
if (isset($options['comment'])) {
$query .= 'COMMENT = ' . $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