Skip to content

Commit a5b771d

Browse files
committed
fix comment after rebase
1 parent a3fb75b commit a5b771d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/ast/dml.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,17 @@ impl Display for CreateTable {
286286
if let Some(engine) = &self.engine {
287287
write!(f, " ENGINE={engine}")?;
288288
}
289-
if let Some(comment) = &self.comment {
290-
write!(f, " COMMENT '{comment}'")?;
289+
if let Some(comment_def) = &self.comment {
290+
match comment_def {
291+
CommentDef::WithEq(comment) => {
292+
write!(f, " COMMENT = '{comment}'")?;
293+
}
294+
CommentDef::WithoutEq(comment) => {
295+
write!(f, " COMMENT '{comment}'")?;
296+
}
297+
}
291298
}
299+
292300
if let Some(auto_increment_offset) = self.auto_increment_offset {
293301
write!(f, " AUTO_INCREMENT {auto_increment_offset}")?;
294302
}

0 commit comments

Comments
 (0)