Johan Sundstr?m (Achtung Liebe!) @ Pike (-) developers forum wrote:
A wild guess says it was easier to design (for a loose intepretation of "design") it that way when query() is a vehicle for not both read and write, and was defined to yield raw data only output rather than something we could attach methods to.
Well, then, maybe, the "design" is flawed. affected_rows is a value that is obtained at the end of a query, so it is local to a query. If you have 2 query result sets, then having that value for each result set privatly seems more correct.