aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-07-23 08:31:35 +0000
committerdan <dan@noemail.net>2010-07-23 08:31:35 +0000
commit1dcb9df43f6f94ec7cc42798c111817d67fe9d91 (patch)
tree506d638a507519c5812fa3d25bbc8614fdca0fb1 /src
parente9cdceafab9ccf7eb84d799733024299a01c8d54 (diff)
downloadsqlite-1dcb9df43f6f94ec7cc42798c111817d67fe9d91.tar.gz
sqlite-1dcb9df43f6f94ec7cc42798c111817d67fe9d91.zip
Remove the unused Schema.db variable.
FossilOrigin-Name: 430be657be68687c998f2f5f8dcd112bf26106be
Diffstat (limited to 'src')
-rw-r--r--src/sqliteInt.h11
-rw-r--r--src/vtab.c1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 24394aebb..3060f0748 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -661,14 +661,6 @@ struct Db {
/*
** An instance of the following structure stores a database schema.
-**
-** If there are no virtual tables configured in this schema, the
-** Schema.db variable is set to NULL. After the first virtual table
-** has been added, it is set to point to the database connection
-** used to create the connection. Once a virtual table has been
-** added to the Schema structure and the Schema.db variable populated,
-** only that database connection may use the Schema to prepare
-** statements.
*/
struct Schema {
int schema_cookie; /* Database schema version number for this file */
@@ -681,9 +673,6 @@ struct Schema {
u8 enc; /* Text encoding used by this database */
u16 flags; /* Flags associated with this schema */
int cache_size; /* Number of pages to use in the cache */
-#ifndef SQLITE_OMIT_VIRTUALTABLE
- sqlite3 *db; /* "Owner" connection. See comment above */
-#endif
};
/*
diff --git a/src/vtab.c b/src/vtab.c
index 24e922e8d..d23846024 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -393,7 +393,6 @@ void sqlite3VtabFinishParse(Parse *pParse, Token *pEnd){
assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */
return;
}
- pSchema->db = pParse->db;
pParse->pNewTable = 0;
}
}