Permalink
Browse files

Merge pull request #218 from okovalov/master

[MySQL] Fixed bug with comments not adding quotes for tables
  • Loading branch information...
2 parents d26680a + 21d64b7 commit d56c9fe25334798478cfff0cba2cbd4e50eb5653 @guilhermeblanco guilhermeblanco committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
@@ -368,7 +368,7 @@ protected function _getCreateTableSQL($tableName, array $columns, array $options
$query .= 'TABLE ' . $tableName . ' (' . $queryFields . ') ';
if (isset($options['comment'])) {
- $query .= 'COMMENT = ' . $options['comment'] . ' ';
+ $query .= sprintf("COMMENT = '%s' ", $options['comment']);
}
if ( ! isset($options['charset'])) {

0 comments on commit d56c9fe

Please sign in to comment.