Browse Source

fix session_delete getCacher tablename param error

xormplus 7 years ago
parent
commit
9c069d6e2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      session_delete.go

+ 1 - 1
session_delete.go

@@ -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...)
 	}