-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the issue of len not working with the result of db query. (#554)
* Fixed the issue of len not working with the result of db query. The earlier implentation was adding an __len__ function to the result object and that worked fine for old-style classes. With old-style classes gone in Python 3, that started giving trouble. Fixed it by writing a ResultSet class and a special SqliteResultSet which doesn't support len, but supports bool. Fixes #547. * cleanup of db tests.
- Loading branch information
1 parent
663cc97
commit fa27cc5
Showing
2 changed files
with
118 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters