summaryrefslogtreecommitdiff
path: root/Lib/sqlite3/dump.py
AgeCommit message (Collapse)AuthorLines
2013-01-10#15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.R David Murray-3/+3
With '%', non-ascii worked because the '%' automatically got promoted to unicode. With format that doesn't happen, which led to encoding errors. This fix goes back to using %, and adds a test to make sure non-ascii string values work in iterdump.
2013-01-10#15545: sort iterdump via SQL instead of in python codeR David Murray-1/+2
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.
2012-02-12Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotesPetri Lehtinen-22/+28
Closes #9750
2008-03-28These svn adds were forgotten in r62000Gregory P. Smith-0/+63