fix bug on postgres

This commit is contained in:
Lunny Xiao 2019-10-02 09:03:05 +08:00
parent 4279949a1a
commit ddefae3150
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(engine.tbNameWithSchema(tb.Name), engine.tbNameWithSchema(tbName)) {
if strings.EqualFold(engine.TableName(tb.Name, true), tbName) {
oriTable = tb
break
}