fix bug on postgres

This commit is contained in:
Lunny Xiao 2019-10-02 09:03:05 +08:00
parent d859c0f80c
commit 6580b99657
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

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
}