[MySQL] Fixed bug with comments not adding quotes for tables #218

Merged
merged 1 commit into from Oct 15, 2012
@@ -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'])) {