HasRows fails to detect rows #3018
Labels
✔️ Triage Done
Issues that are triaged by dev team and are in investigation.
🙌 Up-for-Grabs
Issues that are ready to be picked up for anyone interested. Please self-assign and remove the label
Describe the bug
For queries that do have records, SqlDataReader.HasRows method returns false when the DB returns more than 1 InfoMessageToken, before sending a RowToken, HasRows assumes no records are left, and returns false even though it should have been true.
Using a db that returns two infomessages in the beginning is enough to reproduce the behavior.
Expected behavior
HasRows shoud return true.
Additional context
When trying to identify the issue we encounter that this should probably be a
while
instead of anif
statement.The text was updated successfully, but these errors were encountered: