Skip to content

Commit 63f8f9e

Browse files
Move invocation of sqlcipher_codec_pragma
1 parent 82db0d7 commit 63f8f9e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/pragma.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,15 @@ void sqlite3Pragma(
790790
goto pragma_out;
791791
}
792792

793+
/* BEGIN SQLCIPHER */
794+
#ifdef SQLITE_HAS_CODEC
795+
if(sqlcipher_codec_pragma(db, iDb, pParse, zLeft, zRight)) {
796+
/* sqlcipher_codec_pragma executes internal */
797+
goto pragma_out;
798+
}
799+
#endif
800+
/* END SQLCIPHER */
801+
793802
/* Locate the pragma in the lookup table */
794803
lwr = 0;
795804
upr = ArraySize(aPragmaNames)-1;
@@ -2309,14 +2318,6 @@ void sqlite3Pragma(
23092318

23102319
} /* End of the PRAGMA switch */
23112320

2312-
/* BEGIN SQLCIPHER */
2313-
#ifdef SQLITE_HAS_CODEC
2314-
if(sqlcipher_codec_pragma(db, iDb, pParse, zLeft, zRight)) {
2315-
/* sqlcipher_codec_pragma executes internal */
2316-
}
2317-
#endif
2318-
/* END SQLCIPHER */
2319-
23202321
pragma_out:
23212322
sqlite3DbFree(db, zLeft);
23222323
sqlite3DbFree(db, zRight);

0 commit comments

Comments
 (0)