]> granicus.if.org Git - python/commit
#15545: sort iterdump via SQL instead of in python code
authorR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:30:51 +0000 (11:30 -0500)
committerR David Murray <rdmurray@bitdance.com>
Thu, 10 Jan 2013 16:30:51 +0000 (11:30 -0500)
commitd618684d654bb5fc962624707721fc4793ed3801
tree5f5ee47fd7337457fb472f4c1c3a79f26d8e47d8
parentec8f8f7959169593fe258a3792b498135af70701
#15545: sort iterdump via SQL instead of in python code

Although there is not a regression in Python2, we make the same update here to
keep the code bases in sync.

(The fix for issue 9750 introduced a regression in Python 3 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