修复 mysql 语句生成的BUG
This commit is contained in:
@ -127,7 +127,10 @@ func (t *Table) ToString() ([]string, error) {
|
||||
indexList = append(indexList, indexStr)
|
||||
}
|
||||
replaceTable[TableFieldList] = strings.Join(fieldList, ",")
|
||||
replaceTable[TableIndexList] = strings.Join(indexList, ",")
|
||||
if len(indexList) > 0 && consts.DatabaseDriverMysql == DatabaseDriver {
|
||||
replaceTable[TableIndexList] = "," + strings.Join(indexList, ",")
|
||||
indexList = make([]string, 0)
|
||||
}
|
||||
|
||||
if len(t.Engine) > 0 {
|
||||
replaceTable[TableEngine] = "ENGINE=" + t.Engine
|
||||
|
Reference in New Issue
Block a user