Commit 9e37731c authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'CommentQuotes' into 2.3

parents fdc866a3 de38dc32
......@@ -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