Skip to content

cursor.read(rowCount) will hang if rowCount larger than total rows' size #7

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

Closed
johnfrench3 opened this issue Aug 11, 2023 · 0 comments
Assignees

Comments

@johnfrench3
Copy link
Owner

Assume we have a table which contains 100 rows of data. And we query a select statement with cursor given rowCount = 1000:

cursor.read(1000, (err, rows) => {
// do something
});
And the callback of read() will never be called.
If we set rowCount <= 100, then everything works as expected.
But we can not always know how many rows inside a table. So I think a cursor should work fine when the total row count less than cursor rowCount parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant