fix sync2 with custom table name

This commit is contained in:
Lunny Xiao 2019-10-01 21:50:24 +08:00
parent bc8bb23ad0
commit 4279949a1a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func (session *Session) Sync2(beans ...interface{}) error {
} else {
tbName = engine.TableName(bean)
}
tbNameWithSchema := engine.tbNameWithSchema(tbName)
tbNameWithSchema := engine.TableName(tbName, true)
var oriTable *core.Table
for _, tb := range tables {