aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-08-17 02:26:35 +0000
committerdrh <drh@noemail.net>2017-08-17 02:26:35 +0000
commitdc6b41ed4791d3ccfb2a311df03d32b09220a690 (patch)
tree37cd93f6c029dd73fcac84c768877146a1d4bada /src/sqliteInt.h
parentfe0cf7a18c665b991a87e8329788563b750f9d9d (diff)
downloadsqlite-dc6b41ed4791d3ccfb2a311df03d32b09220a690.tar.gz
sqlite-dc6b41ed4791d3ccfb2a311df03d32b09220a690.zip
Defer schema resets when the query planner is running.
Proposed fix for ticket [be436a7f4587ce517]. FossilOrigin-Name: a7bc7752ba0266684f5317e424a4ee9add4af002272082183519e708ab9ffc79
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index c457b5401..8aa9832e8 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1213,6 +1213,7 @@ struct Schema {
#define DB_SchemaLoaded 0x0001 /* The schema has been loaded */
#define DB_UnresetViews 0x0002 /* Some views have defined column names */
#define DB_Empty 0x0004 /* The file is empty (length 0 bytes) */
+#define DB_ResetWanted 0x0008 /* Reset the schema when nSchemaLock==0 */
/*
** The number of different kinds of things that can be limited
@@ -1329,6 +1330,7 @@ struct sqlite3 {
u32 flags; /* flags settable by pragmas. See below */
i64 lastRowid; /* ROWID of most recent insert (see above) */
i64 szMmap; /* Default mmap_size setting */
+ u32 nSchemaLock; /* Do not reset the schema when non-zero */
unsigned int openFlags; /* Flags passed to sqlite3_vfs.xOpen() */
int errCode; /* Most recent error code (SQLITE_*) */
int errMask; /* & result codes with this before returning */