]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
merge #15545: fix sqlite3.iterdump regression on unsortable row_factory objects.
authorR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:15:57 +0000 (11:15 -0500)
committerR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:15:57 +0000 (11:15 -0500)
commit96983afd0cedf7347965d1fc6af388cf3dc88976
treed4edc352e7387fa8ebe9cbf3a4f2b343ec85fe3a
parent15d24b7c4c993fc0320e9ce906b41bdaec5d8bc2
parent7bd04867e53d78ddb0f5e8f78b9256298d41fadd
merge #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.
Misc/NEWS