]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove the sqlite3_module.zName field which was used only for debugging. (CVS 3297)
authordrh <drh@noemail.net>
Mon, 26 Jun 2006 19:10:32 +0000 (19:10 +0000)
committerdrh <drh@noemail.net>
Mon, 26 Jun 2006 19:10:32 +0000 (19:10 +0000)
FossilOrigin-Name: 74a3961f39b9a045518835b20940471ac97bca66

manifest
manifest.uuid
src/sqlite.h.in
src/sqliteInt.h
src/test8.c
src/test_schema.c
src/test_tclvar.c
src/vdbeaux.c

index ed964a0f5c207f037554fe136421aa4466695c47..1b250ac4e4f7217c16d7dc31bae44a21a59b78fa 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\sfile\sdescriptor\sleak\sfollowing\smalloc\sfailure\son\sDROP\sTABLE\sIF\sEXISTS.\s(CVS\s3296)
-D 2006-06-26T12:50:09
+C Remove\sthe\ssqlite3_module.zName\sfield\swhich\swas\sused\sonly\sfor\sdebugging.\s(CVS\s3297)
+D 2006-06-26T19:10:32
 F Makefile.in f839b470345d3cb4b0644068474623fe2464b5d3
 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -72,9 +72,9 @@ F src/random.c d40f8d356cecbd351ccfab6eaedd7ec1b54f5261
 F src/select.c 380fa06c99ae01050c0054c4b1db91e9f1d8322d
 F src/server.c 087b92a39d883e3fa113cae259d64e4c7438bc96
 F src/shell.c ad73192b30a338a58fe81183d4a5d5a1d4e51d36
-F src/sqlite.h.in 698928d10c9960e14c008a9dfcbb1d785fc1d039
+F src/sqlite.h.in a60bbe9571428b0ae492335765de634905036742
 F src/sqlite3ext.h e334107f6cad0d00c0414e04189742a45ce916b1
-F src/sqliteInt.h 474a098e2fe94758275b5186b9fc484683994db8
+F src/sqliteInt.h a2bef52ecec0be7e56b88d82a514df7fe4863767
 F src/table.c f64ec4fbfe333f8df925bc6ba494f55e05b0e75e
 F src/tclsqlite.c 32d9e0147077f2e2c127c5f214fb3fe03ef97d18
 F src/test1.c 233d5c83d11f34aa1c02eb72011ba9a30b72e078
@@ -84,13 +84,13 @@ F src/test4.c 8b784cd82de158a2317cb4ac4bc86f91ad315e25
 F src/test5.c 7162f8526affb771c4ed256826eee7bb9eca265f
 F src/test6.c 60a02961ceb7b3edc25f5dc5c1ac2556622a76de
 F src/test7.c 03fa8d787f6aebc6d1f72504d52f33013ad2c8e3
-F src/test8.c 257b310d5e113abde281124363b2c2bbec2fe8bf
+F src/test8.c 6a4d1bd453cb708738d6262641abf80ac2d13a62
 F src/test_async.c e3deaedd4d86a56391b81808fde9e44fbd92f1d3
 F src/test_loadext.c 22065d601a18878e5542191001f0eaa5d77c0ed8
 F src/test_md5.c 6c42bc0a3c0b54be34623ff77a0eec32b2fa96e3
-F src/test_schema.c 06042ea462608aecb6f9a95d5649227121093646
+F src/test_schema.c 02f182f156e8e431a9508184df5638b370850495
 F src/test_server.c a6460daed0b92ecbc2531b6dc73717470e7a648c
-F src/test_tclvar.c 9b7275f058f6a8cc7f61b64e593cd433100725d8
+F src/test_tclvar.c 5242e36b29f18f178f0770ff6fd1dafbc5ddabe0
 F src/tokenize.c 7b448440dfd6e984d6bef7ac7fc60f1d26eaf8e7
 F src/trigger.c 0fc40125820409a6274834a6e04ad804d96e2793
 F src/update.c e3f5b7e9e1008e809248ea98bc76844f9a610f7a
@@ -101,7 +101,7 @@ F src/vdbe.c 77679f2e01cb7bbd5087dca96c79116b66119a8f
 F src/vdbe.h 258b5d1c0aaa72192f09ff0568ce42b383f156fa
 F src/vdbeInt.h 37d74cc5651547d76c11682c67286bdf4099b54b
 F src/vdbeapi.c 6af0e7160af260052a7a4500464221a03dada75f
-F src/vdbeaux.c d957835c822e5b79f1adc1b22cf959e116414bbd
+F src/vdbeaux.c bb0a7b800a7167f2e49702a2bfc971919c0b99d1
 F src/vdbefifo.c 9efb94c8c3f4c979ebd0028219483f88e57584f5
 F src/vdbemem.c 5f0afe3b92bb2c037f8d5d697f7c151fa50783a3
 F src/vtab.c 4751954e26e9caa6ce3ea5ad9468bd34f07d1de7
@@ -374,7 +374,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P 3538beace8ece6339fe8aaf40852ce5e5e7da283
-R 7f31a48109f4f6df3e35eac6efc09953
+P 6a63f76c8de977b628c4cab258be5a11d7d7def9
+R 13217c648df812862d4f04bedcadf8ca
 U drh
-Z b3481a9c45f0d830fe849860e961f559
+Z 7d581b1a7871f427abdbb3e24fd87b75
index 4404e78c919ee55eb2ab55091cb1d47bb152e2a9..5559a73ac5ee9e0484fcfc5003a8af2cc5e8f343 100644 (file)
@@ -1 +1 @@
-6a63f76c8de977b628c4cab258be5a11d7d7def9
\ No newline at end of file
+74a3961f39b9a045518835b20940471ac97bca66
\ No newline at end of file
index 03b908e42ddc73d268185506e4dbc24ad2172082..de2fcdc7c96f53f9e88b42ecbcc9f8ce107244d0 100644 (file)
@@ -12,7 +12,7 @@
 ** This header file defines the interface that the SQLite library
 ** presents to client programs.
 **
-** @(#) $Id: sqlite.h.in,v 1.182 2006/06/23 08:05:19 danielk1977 Exp $
+** @(#) $Id: sqlite.h.in,v 1.183 2006/06/26 19:10:32 drh Exp $
 */
 #ifndef _SQLITE3_H_
 #define _SQLITE3_H_
@@ -1536,7 +1536,6 @@ typedef struct sqlite3_module sqlite3_module;
 */
 struct sqlite3_module {
   int iVersion;
-  const char *zName;
   int (*xCreate)(sqlite3*, void *pAux,
                int argc, char **argv,
                sqlite3_vtab **ppVTab);
index f25ebfd2cc2c8b52e221981769a714cc2cb6c95e..f49de42d3ab4cd0941f9d233eff20a4b3ab922ef 100644 (file)
@@ -11,7 +11,7 @@
 *************************************************************************
 ** Internal interface definitions for SQLite.
 **
-** @(#) $Id: sqliteInt.h,v 1.512 2006/06/24 08:51:05 danielk1977 Exp $
+** @(#) $Id: sqliteInt.h,v 1.513 2006/06/26 19:10:32 drh Exp $
 */
 #ifndef _SQLITEINT_H_
 #define _SQLITEINT_H_
@@ -703,11 +703,6 @@ struct Table {
   Index *pIndex;   /* List of SQL indexes on this table. */
   int tnum;        /* Root BTree node for this table (see note above) */
   Select *pSelect; /* NULL for tables.  Points to definition if a view. */
-  u8 readOnly;     /* True if this table should not be written by the user */
-  u8 isEphem;      /* True if created using OP_OpenEphermeral */
-  u8 hasPrimKey;   /* True if there exists a primary key */
-  u8 keyConf;      /* What to do in case of uniqueness conflict on iPKey */
-  u8 autoInc;      /* True if the integer primary key is autoincrement */
   int nRef;          /* Number of pointers to this Table */
   Trigger *pTrigger; /* List of SQL triggers on this table */
   FKey *pFKey;       /* Linked list of all foreign keys in this table */
@@ -718,13 +713,18 @@ struct Table {
 #ifndef SQLITE_OMIT_ALTERTABLE
   int addColOffset;  /* Offset in CREATE TABLE statement to add a new column */
 #endif
+  u8 readOnly;     /* True if this table should not be written by the user */
+  u8 isEphem;      /* True if created using OP_OpenEphermeral */
+  u8 hasPrimKey;   /* True if there exists a primary key */
+  u8 keyConf;      /* What to do in case of uniqueness conflict on iPKey */
+  u8 autoInc;      /* True if the integer primary key is autoincrement */
 #ifndef SQLITE_OMIT_VIRTUALTABLE
+  u8 isVirtual;             /* True if this is a virtual table */
+  u8 isCommit;              /* True once the CREATE TABLE has been committed */
   Module *pMod;             /* Pointer to the implementation of the module */
   sqlite3_vtab *pVtab;      /* Pointer to the module instance */
-  u8 isVirtual;             /* True if this is a virtual table */
   int nModuleArg;           /* Number of arguments to the module */
   char **azModuleArg;       /* Text of all module args. [0] is module name */
-  u8 isCommit;              /* True once the CREATE TABLE has been committed */
 #endif
   Schema *pSchema;
 };
index 8555b9b81bab096c7c82e0f143624dd415815772..179dc6d492e1a80e83226a04bb0c7c8c5aa9559b 100644 (file)
@@ -13,7 +13,7 @@
 ** is not included in the SQLite library.  It is used for automated
 ** testing of the SQLite library.
 **
-** $Id: test8.c,v 1.37 2006/06/24 11:51:34 danielk1977 Exp $
+** $Id: test8.c,v 1.38 2006/06/26 19:10:32 drh Exp $
 */
 #include "sqliteInt.h"
 #include "tcl.h"
@@ -902,7 +902,6 @@ static int echoRollback(sqlite3_vtab *tab){
 */
 static sqlite3_module echoModule = {
   0,                         /* iVersion */
-  "echo",                    /* zName */
   echoCreate,
   echoConnect,
   echoBestIndex,
index f9e8ba01f367025a4e2963f4259090ef2270b641..17818aea0e7edab1c9fdedd95de4006d1171dd1b 100644 (file)
@@ -13,7 +13,7 @@
 ** is not included in the SQLite library.  It is used for automated
 ** testing of the SQLite library.
 **
-** $Id: test_schema.c,v 1.7 2006/06/24 09:34:23 danielk1977 Exp $
+** $Id: test_schema.c,v 1.8 2006/06/26 19:10:32 drh Exp $
 */
 
 /* The code in this file defines a sqlite3 virtual-table module that
@@ -269,7 +269,6 @@ static int schemaBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
 */
 static sqlite3_module schemaModule = {
   0,                           /* iVersion */
-  "schema",                    /* zName */
   schemaCreate,
   schemaCreate,
   schemaBestIndex,
index d92100a282586de32f38d2a17de171970fd05483..7de54810fecd625c432b6567eb0ffc61eb03bea2 100644 (file)
@@ -16,7 +16,7 @@
 ** The emphasis of this file is a virtual table that provides
 ** access to TCL variables.
 **
-** $Id: test_tclvar.c,v 1.4 2006/06/26 11:17:51 danielk1977 Exp $
+** $Id: test_tclvar.c,v 1.5 2006/06/26 19:10:32 drh Exp $
 */
 #include "sqliteInt.h"
 #include "tcl.h"
@@ -126,7 +126,6 @@ static int tclvarBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
 */
 static sqlite3_module tclvarModule = {
   0,                         /* iVersion */
-  "tclvar",                  /* zName */
   tclvarConnect,
   tclvarConnect,
   tclvarBestIndex,
index b95d690f7d256f9ced7c1f143b2a1b5f85febbd2..837aad25917f2dc2034bc3ea487ce7654396bb7d 100644 (file)
@@ -574,7 +574,7 @@ static char *displayP3(Op *pOp, char *zTemp, int nTemp){
 #ifndef SQLITE_OMIT_VIRTUALTABLE
     case P3_VTAB: {
       sqlite3_vtab *pVtab = (sqlite3_vtab*)pOp->p3;
-      sqlite3_snprintf(nTemp, zTemp, "%p:%s", pVtab, pVtab->pModule->zName);
+      sqlite3_snprintf(nTemp, zTemp, "vtab:%p:%p", pVtab, pVtab->pModule);
       zP3 = zTemp;
       break;
     }