SQLite Forum

sqlite3_deserialize double memory freeing
I was only doing that to avoid having to open another database, just to check that my serialize/deserialize wrapper works correctly!  Now I create the content in temp and deserialize into main.  (I also had to rename the table that got copied otherwise some queries claim that the copied table doesn't exist when it clearly does - it seemed like deserialize wasn't setting a schema has changed flag unless I did the spurious modification.)