Skip to content

gh-153729: Fix sqlite3 iterdump() for populated virtual tables#153730

Open
tonghuaroot wants to merge 2 commits into
python:mainfrom
tonghuaroot:iterdump-vtab-data
Open

gh-153729: Fix sqlite3 iterdump() for populated virtual tables#153730
tonghuaroot wants to merge 2 commits into
python:mainfrom
tonghuaroot:iterdump-vtab-data

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

iterdump() dumped a virtual table's own rows as INSERT statements on top of
its schema. Those rows live in the shadow tables (dumped separately) and replay
before the module is instantiated, so restoring the dump raised
sqlite3.OperationalError. Skip the per-row dump for virtual tables, matching
the SQLite shell's .dump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant