fix bug on postgres
This commit is contained in:
parent
4279949a1a
commit
ddefae3150
|
@ -255,7 +255,7 @@ func (session *Session) Sync2(beans ...interface{}) error {
|
||||||
|
|
||||||
var oriTable *core.Table
|
var oriTable *core.Table
|
||||||
for _, tb := range tables {
|
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
|
oriTable = tb
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue