Skip to content

gh-108364: In sqlite3, disable foreign keys before dumping SQL schema#113957

Merged
erlend-aasland merged 1 commit into
python:mainfrom
felixxm:pr/108471
Jan 12, 2024
Merged

gh-108364: In sqlite3, disable foreign keys before dumping SQL schema#113957
erlend-aasland merged 1 commit into
python:mainfrom
felixxm:pr/108471

Conversation

@felixxm

@felixxm felixxm commented Jan 11, 2024

Copy link
Copy Markdown
Contributor

Comment thread Lib/sqlite3/dump.py Outdated
Comment thread Lib/test/test_sqlite3/test_dump.py Outdated

@erlend-aasland erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Mariusz!

Please apply Serhiy's style suggestions; I'll land this tomorrow.

…schema

Co-Authored-By: Erlend E. Aasland <erlend@python.org>
@felixxm

felixxm commented Jan 12, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for reviews 🥇 Updated.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

For future, please do not use rebase and force push. It helps reviewers to see what was changed since the last review.

@erlend-aasland erlend-aasland merged commit de777e4 into python:main Jan 12, 2024
@erlend-aasland

Copy link
Copy Markdown
Contributor

Thanks, @felixxm!

kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…schema (python#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>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…schema (python#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>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…schema (python#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants