mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-19 21:43:15 +03:00
Partial fix for ticket #96: Return SQLITE_MISUSE from sqlite_exec() if called
from a child process with an active transaction that was started in the parent. (CVS 675) FossilOrigin-Name: 72a609ec6492e7d740b6e6184fa14a5e6b04a5dc
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
** ROLLBACK
|
||||
** PRAGMA
|
||||
**
|
||||
** $Id: build.c,v 1.104 2002/07/13 03:11:53 drh Exp $
|
||||
** $Id: build.c,v 1.105 2002/07/13 17:23:21 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -1730,6 +1730,7 @@ void sqliteBeginTransaction(Parse *pParse, int onError){
|
||||
if( db->flags & SQLITE_InTrans ) return;
|
||||
sqliteBeginWriteOperation(pParse, 0);
|
||||
db->flags |= SQLITE_InTrans;
|
||||
db->pid = sqliteOsProcessId();
|
||||
db->onError = onError;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user