add hook to support PRAGMA rekey='xyz'

This commit is contained in:
Stephen Lombardo 2008-08-04 15:16:50 -04:00
parent 38fc33fa6d
commit 04faa55bf8

View File

@ -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)