1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

New #ifdefs to fix certain compile-time options.

FossilOrigin-Name: 688c6279ef1d4ff8d58e83a1c73ca0221ab8570a7cd89459946a86afdad6ec1c
This commit is contained in:
drh
2023-10-24 16:16:27 +00:00
parent 3da982635c
commit 9d486435f1
4 changed files with 19 additions and 10 deletions

View File

@@ -6911,21 +6911,29 @@ case OP_CreateBtree: { /* out2 */
*/
case OP_SqlExec: {
char *zErr;
#ifndef SQLITE_OMIT_AUTHORIZATION
sqlite3_xauth xAuth;
#endif
u8 mTrace;
sqlite3VdbeIncrWriteCounter(p, 0);
db->nSqlExec++;
zErr = 0;
#ifndef SQLITE_OMIT_AUTHORIZATION
xAuth = db->xAuth;
#endif
mTrace = db->mTrace;
if( pOp->p1 ){
#ifndef SQLITE_OMIT_AUTHORIZATION
db->xAuth = 0;
#endif
db->mTrace = 0;
}
rc = sqlite3_exec(db, pOp->p4.z, 0, 0, &zErr);
db->nSqlExec--;
#ifndef SQLITE_OMIT_AUTHORIZATION
db->xAuth = xAuth;
#endif
db->mTrace = mTrace;
if( zErr || rc ){
sqlite3VdbeError(p, "%s", zErr);