fix sync2 with custom table name
This commit is contained in:
parent
bc8bb23ad0
commit
4279949a1a
|
@ -251,7 +251,7 @@ func (session *Session) Sync2(beans ...interface{}) error {
|
||||||
} else {
|
} else {
|
||||||
tbName = engine.TableName(bean)
|
tbName = engine.TableName(bean)
|
||||||
}
|
}
|
||||||
tbNameWithSchema := engine.tbNameWithSchema(tbName)
|
tbNameWithSchema := engine.TableName(tbName, true)
|
||||||
|
|
||||||
var oriTable *core.Table
|
var oriTable *core.Table
|
||||||
for _, tb := range tables {
|
for _, tb := range tables {
|
||||||
|
|
Loading…
Reference in New Issue