fix issue #1992: detect if error occurred after got false by calling rows.Next()

This commit is contained in:
changqing.wang 2021-07-18 11:37:33 +08:00
parent 779a74ccff
commit d0411b8e3b
1 changed files with 5 additions and 0 deletions

View File

@ -270,6 +270,11 @@ func (session *Session) noCacheFind(table *schemas.Table, containerValue reflect
return err return err
} }
} }
if err:=rows.Err(); err!=nil{
return err
}
return nil return nil
} }