fix bug on postgres
This commit is contained in:
parent
6580b99657
commit
f6b642c82a
|
@ -251,11 +251,11 @@ func (session *Session) Sync2(beans ...interface{}) error {
|
||||||
} else {
|
} else {
|
||||||
tbName = engine.TableName(bean)
|
tbName = engine.TableName(bean)
|
||||||
}
|
}
|
||||||
tbNameWithSchema := engine.TableName(tbName, true)
|
tbNameWithSchema := engine.tbNameWithSchema(tbName)
|
||||||
|
|
||||||
var oriTable *core.Table
|
var oriTable *core.Table
|
||||||
for _, tb := range tables {
|
for _, tb := range tables {
|
||||||
if strings.EqualFold(engine.TableName(tb.Name, true), tbName) {
|
if strings.EqualFold(engine.tbNameWithSchema(tb.Name), engine.tbNameWithSchema(tbName)) {
|
||||||
oriTable = tb
|
oriTable = tb
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue