Repository navigation
Return true from NpgsqlDataReader.HasRows even after all rows have been read - #181
Conversation
|
For more information, check the comments on the previous commit: I'm adding my own comment here again: I also agree this is a breaking change but as Josh said, I don't think people use the HasRows the way Npgsql was implemented. I think the most probable to happen is what is happening now: people is used to the way SqlClient and other providers work ( with the HasRows returning true ) and report the different behavior with Npgsql. This also happened with the GetResultSchema #174 as well as ConnectionState #164. As soon as Josh creates the pull request, we will mark it as breaking change so if we have any complaints about that in the future we will know which pull request made this change and we can study it better. But I think nobody will complain about this change. |
Return true from NpgsqlDataReader.HasRows even after all rows have been read
SqlClient returns true after all rows are read. This value changes with calls to NextResult. This is a breaking change, but brings Npgsql to match other providers. See https://groups.google.com/forum/#!topic/npgsql-help/feWIoTJJF9E for a users encounter with this bug.