Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-11-10 12:08:32 +08:00
commit aa18ee658d

View File

@ -29,7 +29,7 @@ import (
)
func GetRefDuplicatedDefRootIDs() (ret []string) {
rows, err := query("SELECT DISTINCT def_block_root_id FROM `refs` GROUP BY def_block_id, def_block_root_id HAVING COUNT(*) > 1 LIMIT 1")
rows, err := query("SELECT DISTINCT def_block_root_id FROM `refs` GROUP BY def_block_id, def_block_root_id, block_id HAVING COUNT(*) > 1")
if nil != err {
logging.LogErrorf("sql query failed: %s", err)
return