fix session_delete getCacher tablename param error (#1126)

This commit is contained in:
Slory7 2018-10-30 13:21:39 +08:00 committed by Lunny Xiao
parent 3add351809
commit 01dd69d390
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ func (session *Session) Delete(bean interface{}) (int64, error) {
})
}
if cacher := session.engine.getCacher(tableName); cacher != nil && session.statement.UseCache {
if cacher := session.engine.getCacher(tableNameNoQuote); cacher != nil && session.statement.UseCache {
session.cacheDelete(table, tableNameNoQuote, deleteSQL, argsForCache...)
}