New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cursor.each throws "RqlDriverError: No more rows in the cursor" #3826
Comments
Thank you for the issue report @bittrance . At least it doesn't match the documentation http://rethinkdb.com/api/javascript/each/ which says
So I assume that if you only pass in one callback like in your example, it should simply stop calling that once the cursor is exhausted (or if it is exhausted from the beginning, never call the callback). Ping @deontologician |
Well, you're right it's a regression. I did a bisect and found 580e206 was the culprit, looking to find the cause now |
We should make another JS driver point release once this is merged. |
Merged into next and v1.16.x |
@AtnNn can you please push out an update for the JS driver? |
A new version of the JavaScript driver (1.16.2) has been released with this fix. |
@bittrance Thanks for reporting this, and for the test, it was really useful in finding the problem quickly. |
The following code throws a no-more-rows exception on an empty table with npmjs.org node driver version 1.16.1.
This is counterintuitive to me; I would expect .each() to iterate zero times on an empty result.
I don't have a system where I can easily downgrade right now, but I think this may be a regression as my test started failing after upgrade from 1.15 to 1.16?
The text was updated successfully, but these errors were encountered: