add table charset empty check
This commit is contained in:
parent
2ac6c662e3
commit
d87e921b17
|
@ -551,8 +551,11 @@ func (db *mysql) CreateTableSql(table *core.Table, tableName, storeEngine, chars
|
|||
|
||||
if len(charset) == 0 {
|
||||
charset = db.URI().Charset
|
||||
}
|
||||
if len(charset) != 0 {
|
||||
sql += " DEFAULT CHARSET " + charset
|
||||
}
|
||||
sql += " DEFAULT CHARSET " + charset
|
||||
|
||||
|
||||
|
||||
if db.rowFormat != "" {
|
||||
|
|
Loading…
Reference in New Issue