Oct 10, 2014; 07:00
Ke Carlton
=?utf-8?q?Datasource_=E2=80=94_behaviour_change=2E?=
Just a heads up,
The behaviour of ds->all has been changed.
Now it simply removes the 50 row limit from a Datasource (effectively sets
->maxrows to -1) which is useful when you want to return all rows like this:
ds->all->findrows(::this = 'that')
// The above is now the same as this:
ds->maxrows(-1)->findrows(::this = 'that')
// And this:
ds->all->sql('statement')
// Now does the same as these:
ds->sql('statement',-1)
ds->maxrows(-1)->sql('statement')
Previously ds->all would find all rows and return the ds; this has been
replaced with ds->findall:
with row in ds->findall->rows do { }
The behaviour of ->allrows has not changed, so before upgrading to the
latest version of DS I recommend you change any code from:
ds->all->rows
to:
ds->allrows
or:
ds->findall->rows
I don't believe many people will be using ->all in this manner — but it's
worth checking before you upgrade to the latest release.
Thanks,
Ke