remove unneccessary warning on sync

This commit is contained in:
Lunny Xiao 2016-03-06 23:22:26 +08:00
parent 5df1bc92df
commit 1045aa020f
1 changed files with 4 additions and 2 deletions

View File

@ -4097,9 +4097,11 @@ func (s *Session) Sync2(beans ...interface{}) error {
}
}
} else {
if !(strings.HasPrefix(curType, expectedType) && curType[len(expectedType)] == '(') {
engine.LogWarnf("Table %s column %s db type is %s, struct type is %s",
table.Name, col.Name, curType, expectedType)
}
}
} else if expectedType == core.Varchar {
if engine.dialect.DBType() == core.MYSQL {
if oriCol.Length < col.Length {