1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix a bug where a condition was incorrectly being compiled out when SQLITE_OMIT_VIRTUALTABLE was defined.

FossilOrigin-Name: 1958db4493461b3a54217a6a45f2730287107860
This commit is contained in:
dan
2009-09-07 17:32:34 +00:00
parent d7d385dde0
commit 0c6621ac66
3 changed files with 10 additions and 20 deletions

View File

@@ -290,12 +290,12 @@ static void resolveP2Values(Vdbe *p, int *pMaxFuncArgs){
}else if( opcode==OP_Statement ){
hasStatementBegin = 1;
p->usesStmtJournal = 1;
}else if( opcode==OP_Destroy ){
}else if( opcode==OP_Destroy || opcode==OP_Program ){
doesStatementRollback = 1;
}else if( opcode==OP_Transaction && pOp->p2!=0 ){
p->readOnly = 0;
#ifndef SQLITE_OMIT_VIRTUALTABLE
}else if( opcode==OP_VUpdate || opcode==OP_VRename || opcode==OP_Program ){
}else if( opcode==OP_VUpdate || opcode==OP_VRename ){
doesStatementRollback = 1;
}else if( opcode==OP_VFilter ){
int n;