diff options
author | drh <drh@noemail.net> | 2006-07-26 01:39:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-07-26 01:39:30 +0000 |
commit | 881feaa04380c6c79db9a763048c2f3d04c3a73e (patch) | |
tree | 0f82df4a168d67264c3fcf8d005920ecb9107077 /src/sqliteInt.h | |
parent | 5bd270b20006cb170c638028e4fdeb1e38771e26 (diff) | |
download | sqlite-881feaa04380c6c79db9a763048c2f3d04c3a73e.tar.gz sqlite-881feaa04380c6c79db9a763048c2f3d04c3a73e.zip |
Initial attempt at making sqlite3_interrupt() work even when called from
a separate thread. (CVS 3335)
FossilOrigin-Name: 35fd67d7a0c55797eb460e3bd02c96afe619f026
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 145fab2d0..d5e4376c9 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.521 2006/07/11 14:17:52 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.522 2006/07/26 01:39:30 drh Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -481,6 +481,10 @@ struct sqlite3 { sqlite3_value *pErr; /* Most recent error message */ char *zErrMsg; /* Most recent error message (UTF-8 encoded) */ char *zErrMsg16; /* Most recent error message (UTF-16 encoded) */ + union { + int isInterrupted; /* True if sqlite3_interrupt has been called */ + double notUsed1; /* Spacer */ + } u1; #ifndef SQLITE_OMIT_AUTHORIZATION int (*xAuth)(void*,int,const char*,const char*,const char*,const char*); /* Access authorization function */ @@ -520,7 +524,6 @@ struct sqlite3 { ** transaction is active on that particular database file. */ #define SQLITE_VdbeTrace 0x00000001 /* True to trace VDBE execution */ -#define SQLITE_Interrupt 0x00000004 /* Cancel current operation */ #define SQLITE_InTrans 0x00000008 /* True if in a transaction */ #define SQLITE_InternChanges 0x00000010 /* Uncommitted Hash table changes */ #define SQLITE_FullColNames 0x00000020 /* Show full column names on SELECT */ |