修复当数据库设置为lower_case_table_names=1时无法查询访问日志的Bug

This commit is contained in:
刘祥超
2021-12-20 16:20:33 +08:00
parent 7d82c3abf6
commit 9a4be1f5a7
4 changed files with 33 additions and 8 deletions

View File

@@ -306,14 +306,14 @@ func (this *HTTPAccessLogDAO) listAccessLogs(tx *dbs.Tx, lastRequestId string, s
dao := daoWrapper.DAO
tableName, hasRemoteAddrField, hasDomainField, exists, err := findHTTPAccessLogTableName(dao.Instance, day)
if !exists {
// 表格不存在则跳过
return
}
if err != nil {
logs.Println("[DB_NODE]" + err.Error())
return
}
if !exists {
// 表格不存在则跳过
return
}
query := dao.Query(tx)