From b1d6ec1db5a3fd9ae35e13395044318c3c3e0e8c Mon Sep 17 00:00:00 2001 From: fanybook Date: Fri, 5 Nov 2021 15:43:08 +0800 Subject: [PATCH] fixed hand error2 --- dialects/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialects/mysql.go b/dialects/mysql.go index 241aede8..9cc695ef 100644 --- a/dialects/mysql.go +++ b/dialects/mysql.go @@ -685,7 +685,7 @@ func (db *mysql) CreateTableSQL(ctx context.Context, queryer core.Queryer, table b.WriteString(db.rowFormat) } - if table.Comment != "" { + if table.Comment != "" { b.WriteString(" COMMENT='") b.WriteString(table.Comment) b.WriteString("'")