Move invocation of sqlcipher_codec_pragma
This commit is contained in:
parent
82db0d7e90
commit
63f8f9eccc
17
src/pragma.c
17
src/pragma.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue