aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-05-31 08:26:49 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-05-31 08:26:49 +0000
commit1d850a72c265ad9368b322ca39125c9b0c3d8509 (patch)
tree3ae42a002f87796ecea58f7094dea2096fa4439a /src/pragma.c
parenta19b775db9b2f12263e54cf0f64162ced526fff5 (diff)
downloadsqlite-1d850a72c265ad9368b322ca39125c9b0c3d8509.tar.gz
sqlite-1d850a72c265ad9368b322ca39125c9b0c3d8509.zip
Replace OP_Begin, OP_Commit and OP_Rollback with OP_AutoCommit. (CVS 1500)
FossilOrigin-Name: b8ed812c92f2dbb4431d45aeb41646ceb53e0cbc
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pragma.c b/src/pragma.c
index 1c50d37aa..d80005b41 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the PRAGMA command.
**
-** $Id: pragma.c,v 1.34 2004/05/29 11:24:50 danielk1977 Exp $
+** $Id: pragma.c,v 1.35 2004/05/31 08:26:49 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -93,7 +93,7 @@ static int changeTempStorage(Parse *pParse, const char *zStorageType){
sqlite *db = pParse->db;
if( db->temp_store==ts ) return SQLITE_OK;
if( db->aDb[1].pBt!=0 ){
- if( db->flags & SQLITE_InTrans ){
+ if( !db->autoCommit ){
sqlite3ErrorMsg(pParse, "temporary storage cannot be changed "
"from within a transaction");
return SQLITE_ERROR;