We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b415f6 commit f844a5dCopy full SHA for f844a5d
1 file changed
src/crypto_impl.c
@@ -979,8 +979,9 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
979
assert( 1==sqlite3BtreeIsInTrans(pDest) );
980
assert( 1==sqlite3BtreeIsInTrans(pSrc) );
981
982
+
983
sqlite3CodecGetKey(db, db->nDb - 1, (void**)&key, &password_sz);
- sqlcipher_codec_ctx_set_pass(ctx, key, password_sz, 2);
984
+ sqlite3CodecAttach(db, 0, key, password_sz);
985
986
int i = 0;
987
for(i=0; i<ArraySize(aCopy); i+=2){
@@ -997,7 +998,6 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
997
998
db->nChange = saved_nChange;
999
db->nTotalChange = saved_nTotalChange;
1000
db->xTrace = saved_xTrace;
- sqlite3BtreeSetPageSize(pDest, -1, -1, 1);
1001
db->autoCommit = 1;
1002
if( pDb ){
1003
sqlite3BtreeClose(pDb->pBt);
0 commit comments