You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It must have a first PRAGMA foreign_keys=OFF; statement before start transaction.
Instead of a CREATE VIRTUAL TABLE, it must enable writable schema and write direct to sqlite_schema table. It must be changed in Python implementation.
PRAGMA writable_schema=ON;
INSERT INTO sqlite_schema(type,name,tbl_name,rootpage,sql)VALUES('table','wagtailsearch_indexentry_fts','wagtailsearch_indexentry_fts',0,'CREATE VIRTUAL TABLE wagtailsearch_indexentry_fts USING fts5(autocomplete, body, title)');
Activity
iurisilvio commentedon Jun 1, 2023
I tried to fix the
iterdumpoutput.PRAGMA foreign_keys=OFF;statement before start transaction.CREATE VIRTUAL TABLE, it must enable writable schema and write direct to sqlite_schema table. It must be changed in Python implementation.iurisilvio commentedon Jun 1, 2023
For now, I'll just change implementation to use sqlite3 binary
.dumpcommand.iurisilvio commentedon Jun 1, 2023
It is a known issue. python/cpython#64662