]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove an unused #define from whereInt.h. Add comments describing the new sqlite3Btre...
authordan <dan@noemail.net>
Fri, 23 Oct 2015 11:50:23 +0000 (11:50 +0000)
committerdan <dan@noemail.net>
Fri, 23 Oct 2015 11:50:23 +0000 (11:50 +0000)
FossilOrigin-Name: 4c0ba8be43bb7c7100456bd8cd6921c164be31e1

manifest
manifest.uuid
src/btree.h
src/whereInt.h

index 24f91f41c7bacfdb0f1b21e62085eff4dd6b6d1b..6617a2ff55d55f72ae1d44d2c3244b7bb8bf35f6 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Modifications\sto\spass\sa\sflag\sto\sinternal\sroutine\ssqlite3BtreeCursor()\swhen\sa\scursor\sthat\sis\sused\ssolely\sfor\sdeleting\sb-tree\sentries,\sor\sfor\sobtaining\sthe\scomponents\sof\skeys\sto\sdelete\sfrom\sother\sb-trees,\sis\sopened.
-D 2015-10-22T20:54:33.626
+C Remove\san\sunused\s#define\sfrom\swhereInt.h.\sAdd\scomments\sdescribing\sthe\snew\ssqlite3BtreeCursor()\sflags.
+D 2015-10-23T11:50:23.745
 F Makefile.in 2ea961bc09e441874eb3d1bf7398e04feb24f3ee
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 702d3e98f3afc6587a78481257f3c4c900efc3a4
@@ -281,7 +281,7 @@ F src/backup.c c3a9c4209439b806c44cf30daf466955727bf46c
 F src/bitvec.c d1f21d7d91690747881f03940584f4cc548c9d3d
 F src/btmutex.c 45a968cc85afed9b5e6cf55bf1f42f8d18107f79
 F src/btree.c 9d684e19f84633323de7a767da2e2b8cf51fa600
-F src/btree.h ccc489437299e48ba5f7d957baa686a9adf2d1ba
+F src/btree.h cf936d962b3f4179948d53ea58f3580de9b2ed0c
 F src/btreeInt.h 8177c9ab90d772d6d2c6c517e05bed774b7c92c0
 F src/build.c d6162335d690396dfc5c4bd59e8b2b0c14ba6285
 F src/callback.c 7b44ce59674338ad48b0e84e7b72f935ea4f68b0
@@ -416,7 +416,7 @@ F src/wal.c 18b0ed49830cf04fe2d68224b41838a73ac6cd24
 F src/wal.h df01efe09c5cb8c8e391ff1715cca294f89668a4
 F src/walker.c 2e14d17f592d176b6dc879c33fbdec4fbccaa2ba
 F src/where.c 0bb01a0545afb9ee064d64e4821f34a79742a6cf
-F src/whereInt.h 87b0b66cf0a337c8b282a33e4233e9dad14b626b
+F src/whereInt.h 7892bb54cf9ca0ae5c7e6094491b94c9286dc647
 F src/wherecode.c b924b78acd9e623fb69bfa2cb65cd7d542166dd3
 F src/whereexpr.c e63244ca06c503e5f3c5b7f3c9aea0db826089ed
 F test/8_3_names.test ebbb5cd36741350040fd28b432ceadf495be25b2
@@ -1392,10 +1392,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 4315d20200d578c9252dcb26e60739063a8eff1d
-R f9b9301d7918e2f3aec8c2ac058ff295
-T *branch * btree-fordelete-flag
-T *sym-btree-fordelete-flag *
-T -sym-trunk *
+P cdc92919e600007cae5eb61223684f48a65babc0
+R 372ed0826353f0987c018dd56c7ed9e6
 U dan
-Z 49648c9fd09be094288b39d12da5947c
+Z 7d97368360f9df42d106befc4db01e49
index ed6782c8b4a52d3ce938b7e59697e8dc5fbab6c3..cd45c7b9d43c5f4870ac34ea8b2713ef65dc57fa 100644 (file)
@@ -1 +1 @@
-cdc92919e600007cae5eb61223684f48a65babc0
\ No newline at end of file
+4c0ba8be43bb7c7100456bd8cd6921c164be31e1
\ No newline at end of file
index 66420f8413a290c65111d017f79cfc26f856ab29..a0e2e33d4bf4ad9ba6379349cb597e7a9f25e8de 100644 (file)
@@ -167,9 +167,19 @@ int sqlite3BtreeNewDb(Btree *p);
 
 /* 
 ** Flags passed as the third argument to sqlite3BtreeCursor().
+**
+** For read-only cursors the wrFlag argument is always zero. For read-write
+** cursors it may be set to either (BTREE_WRCSR|BTREE_FORDELETE) or
+** (BTREE_WRCSR). If the BTREE_FORDELETE flag is set, then the cursor will
+** only be used by SQLite for the following:
+**
+**   * to seek to and delete specific entries, and/or
+**
+**   * to read values that will be used to create keys that other
+**     BTREE_FORDELETE cursors will seek to and delete.
 */
-#define BTREE_WRCSR     0x00000004  /* read-write cursor */
-#define BTREE_FORDELETE 0x00000008  /* Cursor is for seek/delete only */
+#define BTREE_WRCSR     0x00000004     /* read-write cursor */
+#define BTREE_FORDELETE 0x00000008     /* Cursor is for seek/delete only */
 
 int sqlite3BtreeCursor(
   Btree*,                              /* BTree containing table to open */
index f4bc4077e452fb004eb80f3ec4c28580b1a0a3b2..cae09acc8283b7d3a3a6e05c3405d54517d6cf40 100644 (file)
@@ -530,4 +530,3 @@ void sqlite3WhereTabFuncArgs(Parse*, struct SrcList_item*, WhereClause*);
 #define WHERE_SKIPSCAN     0x00008000  /* Uses the skip-scan algorithm */
 #define WHERE_UNQ_WANTED   0x00010000  /* WHERE_ONEROW would have been helpful*/
 #define WHERE_PARTIALIDX   0x00020000  /* The automatic index is partial */
-#define WHERE_FORDELETE    0x00040000  /* Table cursor is "for-delete" */