Skip to content

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

Open
@RogerKang

Description

@RogerKang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions