Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 01dd69d

Browse files
Slory7lunny
authored andcommitted
fix session_delete getCacher tablename param error (#1126)
1 parent 3add351 commit 01dd69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (session *Session) Delete(bean interface{}) (int64, error) {
199199
})
200200
}
201201

202-
if cacher := session.engine.getCacher(tableName); cacher != nil && session.statement.UseCache {
202+
if cacher := session.engine.getCacher(tableNameNoQuote); cacher != nil && session.statement.UseCache {
203203
session.cacheDelete(table, tableNameNoQuote, deleteSQL, argsForCache...)
204204
}
205205

0 commit comments

Comments
 (0)