1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Make sure the RTree sqlite3_blob handle is reset prior to renaming the table.

FossilOrigin-Name: 1cdae2db3c54970a1811e597065724578408c84d49d75b8fe25d56281ddc2e94
This commit is contained in:
drh
2017-04-08 01:09:14 +00:00
parent 72507d431b
commit 297e2bdb8e
3 changed files with 8 additions and 7 deletions

View File

@ -3198,6 +3198,7 @@ static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
, pRtree->zDb, pRtree->zName, zNewName
);
if( zSql ){
nodeBlobReset(pRtree);
rc = sqlite3_exec(pRtree->db, zSql, 0, 0, 0);
sqlite3_free(zSql);
}