You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What version of Go and system type/arch are you using?
go 1.20
2. What version of GoFrame are you using?
v 2.5.6
3. Can this issue be re-produced with the latest release?
4. What did you do?
yes
5. What did you expect to see?
gdb 包下面 清除表缓存与清除所有缓存实际方法一致
// ClearCache removes cached sql result of certain table.func (c*Core) ClearCache(ctx context.Context, tablestring) (errerror) {
returnc.db.GetCache().Clear(ctx)
}
// ClearCacheAll removes all cached sql result from cachefunc (c*Core) ClearCacheAll(ctx context.Context) (errerror) {
returnc.db.GetCache().Clear(ctx)
}
gutil 包下面 GetOrDefaultAny 函数判断条件为空字符串,与预期不符
// GetOrDefaultAny checks and returns value according whether parameter `param` available.// It returns `param[0]` if it is available, or else it returns `def`.funcGetOrDefaultAny(definterface{}, param...interface{}) interface{} {
value:=defiflen(param) >0&¶m[0] !="" {
value=param[0]
}
returnvalue
}
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@yimuysl001 Sorry, I'm late. I missed some issue messages due to lost emails.
Thanks for the feedback! The 1 point here has been fixed in subsequent versions. At the same time, I have submitted a PR to fix the 2 point #3844. Point 3 is not very clear. Can you describe it further or provide the minimum runnable source code that can reproduce the problem?
1. What version of
Go
and system type/arch are you using?go 1.20
2. What version of
GoFrame
are you using?v 2.5.6
3. Can this issue be re-produced with the latest release?
4. What did you do?
yes
5. What did you expect to see?
3.数据库驱动dm ,config 文件配置相应的模块后,还是使用的默认模块,没有正常切为配置的模块
6. What did you see instead?
The text was updated successfully, but these errors were encountered: