Fix sync2 with custom table name #1445

Merged
lunny merged 3 commits from lunny/fix_table_sync2 into master 2019-10-02 04:37:54 +00:00
Showing only changes of commit 6580b99657 - Show all commits

View File

@ -255,7 +255,7 @@ func (session *Session) Sync2(beans ...interface{}) error {
var oriTable *core.Table
for _, tb := range tables {
if strings.EqualFold(tb.Name, tbName) {
if strings.EqualFold(engine.TableName(tb.Name, true), tbName) {
oriTable = tb
break
}