Move invocation of sqlcipher_codec_pragma

This commit is contained in:
Nick Parker 2014-04-04 14:31:27 -05:00
parent 82db0d7e90
commit 63f8f9eccc
1 changed files with 9 additions and 8 deletions

View File

@ -790,6 +790,15 @@ void sqlite3Pragma(
goto pragma_out;
}
/* BEGIN SQLCIPHER */
#ifdef SQLITE_HAS_CODEC
if(sqlcipher_codec_pragma(db, iDb, pParse, zLeft, zRight)) {
/* sqlcipher_codec_pragma executes internal */
goto pragma_out;
}
#endif
/* END SQLCIPHER */
/* Locate the pragma in the lookup table */
lwr = 0;
upr = ArraySize(aPragmaNames)-1;
@ -2309,14 +2318,6 @@ void sqlite3Pragma(
} /* End of the PRAGMA switch */
/* BEGIN SQLCIPHER */
#ifdef SQLITE_HAS_CODEC
if(sqlcipher_codec_pragma(db, iDb, pParse, zLeft, zRight)) {
/* sqlcipher_codec_pragma executes internal */
}
#endif
/* END SQLCIPHER */
pragma_out:
sqlite3DbFree(db, zLeft);
sqlite3DbFree(db, zRight);