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
Poco::Data::RecordSet row iteration doesn't work when the statment has limit() #793
Comments
Here's a patch; SQLite tests pass but it has to be tested with other back-ends before it is committed. If you can spare some time and do the testing, it will speed up the upstreaming.
|
Aleks, thanks for quick response. I just realized, that things become much more complicated when multiple result sets involved as well. e.g. when underlying query consists of more than 1 select. |
When a statement has a defined limit, the following code doesn't work:
The code doesn't work, since RecordSet implementation uses underlying statement subTotalRowCount() (which accumulates row counts) as an measure of row count, however, every execute causes underlying extractor storage cleanup, hence storage contains no more than 1 row for every execution.
The text was updated successfully, but these errors were encountered: