Environment.db_query example should not call fetchall
|Reported by:||Owned by:|
Description (last modified by )
In Trac 1.0, a call to
Environment.db_query can be traced to a call to
readonly=True, which calls fetchall to return the iterable. Therefore it seems like the example in the documentation for using
Environment.db_query needs to be updated to remove the call to
This is a pretty minor issue, so I'm not sure it is worth a ticket, but I've been trying to understand when it is necessary to call
fetchall, and couldn't think of another way to relay the info.
I grep'ed the source for instances in which
fetchall is called in the application code (outside the db layer), and only found 3. The call in db21.py seems unnecessary.