aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-01-09 03:19:59 +0000
committerdrh <drh@noemail.net>2002-01-09 03:19:59 +0000
commit74e24cd0fa90191856e76f2eb6007d17b5d2cec4 (patch)
tree6039ffc6ac8f3a45335a74d0ea3be033be5cdb31 /src/sqliteInt.h
parent3a88fbda1971660e46a9a46e388c0540781c2ba9 (diff)
downloadsqlite-74e24cd0fa90191856e76f2eb6007d17b5d2cec4.tar.gz
sqlite-74e24cd0fa90191856e76f2eb6007d17b5d2cec4.zip
Working on a bug: Dropping and recreating a table within a transaction
causes an assertion failure. (CVS 342) FossilOrigin-Name: b3656a5cfef91c89de2cbb9790087d0d53c03e6f
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 871fbf137..1e49e61a5 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
-** @(#) $Id: sqliteInt.h,v 1.75 2002/01/06 17:07:40 drh Exp $
+** @(#) $Id: sqliteInt.h,v 1.76 2002/01/09 03:20:00 drh Exp $
*/
#include "sqlite.h"
#include "hash.h"
@@ -179,6 +179,8 @@ struct sqlite {
int (*xBusyCallback)(void *,const char*,int); /* The busy callback */
Hash tblHash; /* All tables indexed by name */
Hash idxHash; /* All (named) indices indexed by name */
+ Hash tblDrop; /* Uncommitted DROP TABLEs */
+ Hash idxDrop; /* Uncommitted DROP INDEXs */
int nextRowid; /* Next generated rowID */
};
@@ -228,7 +230,6 @@ struct Table {
int tnum; /* Page containing root for this table */
u8 readOnly; /* True if this table should not be written by the user */
u8 isCommit; /* True if creation of this table has been committed */
- u8 isDelete; /* True if this table is being deleted */
u8 isTemp; /* True if stored in db->pBeTemp instead of db->pBe */
u8 hasPrimKey; /* True if there exists a primary key */
};
@@ -260,7 +261,7 @@ struct Index {
int tnum; /* Page containing root of this index in database file */
u8 isUnique; /* True if keys must all be unique */
u8 isCommit; /* True if creation of this index has been committed */
- u8 isDelete; /* True if deletion of this index has not been comitted */
+ u8 isDropped; /* True if a DROP INDEX has executed on this index */
Index *pNext; /* The next index associated with the same table */
};