mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-26 06:56:36 +08:00
修复一个因为SQL_CACHE而导致子查询产生的错误
This commit is contained in:
@@ -214,7 +214,8 @@ func (this *DNSDomainDAO) FindDomainRouteName(tx *dbs.Tx, domainId int64, routeC
|
||||
// ExistAvailableDomains 判断是否有域名可选
|
||||
func (this *DNSDomainDAO) ExistAvailableDomains(tx *dbs.Tx) (bool, error) {
|
||||
subQuery, err := SharedDNSProviderDAO.Query(tx).
|
||||
Where("state=1"). // 这里要使用非变量
|
||||
Where("state=1"). // 这里要使用非变量
|
||||
SQLCache(dbs.QuerySqlCacheDefault). // 子查询不能使用SQL_CACHE
|
||||
ResultPk().
|
||||
AsSQL()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user