Skip to content

Commit 3564a32

Browse files
committed
fix(cynosdb): [120305083] Fix the problem of matching errors caused by fuzzy query
1 parent 4cfa818 commit 3564a32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tencentcloud/services/cynosdb/service_tencentcloud_cynosdb.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,12 @@ func (me *CynosdbService) DescribeCynosdbClusterDatabasesById(ctx context.Contex
22322232
return
22332233
}
22342234

2235-
clusterDatabases = response.Response.DbInfos[0]
2235+
for _, dbInfo := range response.Response.DbInfos {
2236+
if dbInfo != nil && dbInfo.DbName != nil && *dbInfo.DbName == dbName {
2237+
clusterDatabases = dbInfo
2238+
return
2239+
}
2240+
}
22362241

22372242
return
22382243
}

0 commit comments

Comments
 (0)