From 04faa55bf8219511609c67e3130aaf45cd007a8a Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Mon, 4 Aug 2008 15:16:50 -0400 Subject: [PATCH] add hook to support PRAGMA rekey='xyz' --- src/pragma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pragma.c b/src/pragma.c index bac601c0..5829c80a 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1283,6 +1283,8 @@ void sqlite3Pragma( #if SQLITE_HAS_CODEC if( sqlite3StrICmp(zLeft, "key")==0 ){ sqlite3_key(db, zRight, strlen(zRight)); + }else if ( sqlite3StrICmp(zLeft, "rekey")==0 ){ + sqlite3_rekey(db, zRight, strlen(zRight)); }else #endif #if SQLITE_HAS_CODEC || defined(SQLITE_ENABLE_CEROD)