Philip Iezzi
> $row = $customerTbl->find(5)->current();

That works, but only if a row exists with that id value.

One advantage we gain by find() returning a Rowset is that the Rowset
class has an exists() method, so you can easily test if the query
returned a non-empty result set based on the id value you provided.

Rob Allen wrote:
> Does anyone do $tbl->find(1); and find a rowset usable?

I implemented this change because it is _less_ usable to have to check
the return type of find() to see if it was a Row vs. a Rowset, depending
on whether you gave it one or multiple id values.

Regards,
Bill Karwin

Reply via email to