fix issue #1992: detect if error occurred after got false by calling rows.Next()
This commit is contained in:
parent
779a74ccff
commit
d0411b8e3b
|
@ -270,6 +270,11 @@ func (session *Session) noCacheFind(table *schemas.Table, containerValue reflect
|
|||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err:=rows.Err(); err!=nil{
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue