We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fb75b commit a5b771dCopy full SHA for a5b771d
src/ast/dml.rs
@@ -286,9 +286,17 @@ impl Display for CreateTable {
286
if let Some(engine) = &self.engine {
287
write!(f, " ENGINE={engine}")?;
288
}
289
- if let Some(comment) = &self.comment {
290
- write!(f, " COMMENT '{comment}'")?;
+ if let Some(comment_def) = &self.comment {
+ match comment_def {
291
+ CommentDef::WithEq(comment) => {
292
+ write!(f, " COMMENT = '{comment}'")?;
293
+ }
294
+ CommentDef::WithoutEq(comment) => {
295
+ write!(f, " COMMENT '{comment}'")?;
296
297
298
299
+
300
if let Some(auto_increment_offset) = self.auto_increment_offset {
301
write!(f, " AUTO_INCREMENT {auto_increment_offset}")?;
302
0 commit comments