]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#15545: fix sqlite3.iterdump regression on unsortable row_factory objects.
authorR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:04:09 +0000 (11:04 -0500)
committerR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:04:09 +0000 (11:04 -0500)
commitb52312923bee35b86fc072ec546cc3e588ae64c9
tree621c1002f13493da15de8719e084ac2d0775cf11
parent78470b4c3a423fb304438be269afbbdd2247d676
#15545: fix sqlite3.iterdump regression on unsortable row_factory objects.

The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall.  But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception.  The
sorting is still a nice idea, so the patch moves the sort into the sql.

Fix and test by Peter Otten.
Lib/sqlite3/dump.py
Lib/sqlite3/test/dump.py
Misc/NEWS