Open lekoala opened 10 months ago
so i think i got the general idea. The issue happens here
numRecords
in the DataList, but that reset the handle to the first rowworking on a fix :)
so i have a solution not sure it's the best one, but at least it's working :)
This will need to wait until https://github.com/actions/runner-images/issues/9033 is resolved so we can use a compatible version of sqlite3 in CI
@GuySartorelli well, the ci is not needed to confirm that my fix works :-) but i'm in no rush, no issues with running my own little fork in the meantime
Just found a really odd issue when testing sqlite
in a template i have this
<% loop MyList %> ... <% end_loop %>
The list contains only one record, but it's displayed twice
It seems due to the switch to generators We have yield $data, but that is actually called twice due to the rewind call in SSViewer_scope. I don't have a solution yet. Removing $this->itemIterator->rewind(); fixes the issue, but it's probably there for a reason.
Also, with sqlite, fetchArray can start giving AGAIN the results after false has been returned, so that might also be it, or a combination of both issues.
PRs