]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957)
authorMariusz Felisiak <felisiak.mariusz@gmail.com>
Fri, 12 Jan 2024 09:50:37 +0000 (10:50 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 09:50:37 +0000 (10:50 +0100)
commitde777e490fb356d7bcc7c907141c20a5135d97df
treee9297e40aec54d80e0d4871714a4ebe1d4eb6480
parentfcb4c8d31a4b1c60ed9990db3eacd1db9cac4df2
gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957)

sqlite3.Connection.iterdump now ensures that foreign key support is
disabled before dumping the database schema, if there is any foreign key
violation.

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Lib/sqlite3/dump.py
Lib/test/test_sqlite3/test_dump.py
Misc/NEWS.d/next/Library/2024-01-11-22-22-51.gh-issue-108364.QH7C-1.rst [new file with mode: 0644]