mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Schema modifications are committed internally when a statement transaction
is committed. (CVS 1592) FossilOrigin-Name: 4cfc5a36e9891a9b69209f94194fc492e203ab75
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
** in this file for details. If in doubt, do not deviate from existing
|
||||
** commenting and indentation practices when changing or adding code.
|
||||
**
|
||||
** $Id: vdbe.c,v 1.371 2004/06/14 05:10:43 danielk1977 Exp $
|
||||
** $Id: vdbe.c,v 1.372 2004/06/14 13:14:59 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -4711,6 +4711,7 @@ abort_due_to_interrupt:
|
||||
}else{
|
||||
rc = SQLITE_INTERRUPT;
|
||||
}
|
||||
p->rc = rc;
|
||||
sqlite3SetString(&p->zErrMsg, sqlite3ErrStr(rc), (char*)0);
|
||||
goto vdbe_halt;
|
||||
}
|
||||
|
||||
@@ -1151,6 +1151,7 @@ static int vdbeCommit(sqlite *db){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -1275,6 +1276,8 @@ int sqlite3VdbeReset(Vdbe *p, char **pzErrMsg){
|
||||
|
||||
if( p->rc!=SQLITE_OK ){
|
||||
sqlite3RollbackInternalChanges(db);
|
||||
}else if( db->flags & SQLITE_InternChanges ){
|
||||
db->flags &= ~SQLITE_InternChanges;
|
||||
}
|
||||
|
||||
if( (p->magic==VDBE_MAGIC_RUN && p->pc>=0) || p->magic==VDBE_MAGIC_HALT ){
|
||||
|
||||
Reference in New Issue
Block a user