Changed sqlcipher_codec_ctx_migrate to use VFS xDelete instead of standard library remove

This commit is contained in:
Gil Besso 2017-11-07 15:27:44 +02:00
parent df092f0a7a
commit 87c389ce04
1 changed files with 1 additions and 1 deletions

View File

@ -1165,7 +1165,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
pDb->pBt = 0;
pDb->pSchema = 0;
sqlite3ResetAllSchemasOfConnection(db);
remove(migrated_db_filename);
db->pVfs->xDelete(db->pVfs, migrated_db_filename, 0);
sqlite3_free(migrated_db_filename);
} else {
CODEC_TRACE(("*** migration failure** \n\n"));