-C Merge\sthe\sbranch-3.7.2\schanges\sinto\sthe\sstat3-3.7.2\ssubbranch.\s\sAlso\sfix\nsome\stest\sscript\sissues.
-D 2011-08-26T18:04:52.302
+C Veryquick\sand\smin.rc\stests\snow\spassing.
+D 2011-08-26T18:28:17.095
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 543f91f24cd7fee774ecc0a61c19704c0c3e78fd
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
F src/btree.c 40c7a36152403d8e7266f99ef157a661c7ab9691
F src/btree.h 2d1a83ad509047e8cc314fda7e054f99ff52414d
F src/btreeInt.h c424f2f131cc61ddf130f9bd736b3df12c8a51f0
-F src/build.c 556c5918354ff1102e286fa0f7c032e18bdc2640
+F src/build.c 90685b71dfb606dba062271297959eb499e18a17
F src/callback.c da3c38d0ef5d7f04fae371e519bda61aa9cb1704
F src/complete.c dc1d136c0feee03c2f7550bafc0d29075e36deac
F src/ctime.c c4eeabe49bb1422efd04b4ca474c0bd8063f8379
F test/alter3.test 25b95a136708f22b87184fa6a4309eea03d65153
F test/alter4.test 9386ffd1e9c7245f43eca412b2058d747509cc1f
F test/altermalloc.test e81ac9657ed25c6c5bb09bebfa5a047cd8e4acfc
-F test/analyze.test 2b2e06e06e575a431a0c3caa9e1511bdcdcc78ff
+F test/analyze.test f8ab7d15858b4093b06caf5e57e2a5ff7104bdae
F test/analyze2.test ea3df826879dd672031b27c6a845afc3a39f27d9
F test/analyze3.test 9be0af5e23b711559e8f78c42a6c04de956cba9b
F test/analyze5.test 713354664c5ff1853ab2cbcb740f0cf5cb7c802e
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 01cc4ff6af56a3dd08013862027bf8b91314986d 41b5f86971ed9d7ddca31bd9b43d0a41f03f002b
-R cea0fc29368023c16e8c038f08376226
+P a42db19d52b679e5f3ce6970883903816e75a4e4
+R 665754cf660cbecaba167a23a44d91dd
U drh
-Z 9d73d77c74a70edc1459c3063eaeecaf
+Z 68aaf0288cba84ca9c2643399ac9c8cc
-a42db19d52b679e5f3ce6970883903816e75a4e4
\ No newline at end of file
+a7e18468825622e518b2266a8724bdab99938b36
\ No newline at end of file
db->aDb[iDb].zName, SCHEMA_TABLE(iDb),
pIndex->zName
);
- if( sqlite3FindTable(db, "sqlite_stat1", db->aDb[iDb].zName) ){
- sqlite3NestedParse(pParse,
- "DELETE FROM %Q.sqlite_stat1 WHERE idx=%Q",
- db->aDb[iDb].zName, pIndex->zName
- );
- }
+ sqlite3ClearStatTables(pParse, iDb, "idx", pIndex->zName);
sqlite3ChangeCookie(pParse, iDb);
destroyRootPage(pParse, pIndex->tnum, iDb);
sqlite3VdbeAddOp4(v, OP_DropIndex, iDb, 0, 0, pIndex->zName, 0);
} {1 {table sqlite_stat1 may not be indexed}}
do_test analyze-1.7 {
execsql {
- SELECT * FROM sqlite_stat1
+ SELECT * FROM sqlite_stat1 WHERE idx NOT NULL
}
} {}
do_test analyze-1.8 {
} {0 {}}
do_test analyze-1.9 {
execsql {
- SELECT * FROM sqlite_stat1
+ SELECT * FROM sqlite_stat1 WHERE idx NOT NULL
}
} {}
do_test analyze-1.10 {
execsql {
SELECT * FROM sqlite_stat1
}
-} {t1 {} 0}
+} {}
do_test analyze-1.12 {
catchsql {
ANALYZE t1;
execsql {
SELECT * FROM sqlite_stat1
}
-} {t1 {} 0}
+} {}
# Create some indices that can be analyzed. But do not yet add
# data. Without data in the tables, no analysis is done.
ANALYZE main.t1;
SELECT * FROM sqlite_stat1 ORDER BY idx;
}
-} {t1 {} 0}
+} {}
do_test analyze-2.2 {
execsql {
CREATE INDEX t1i2 ON t1(b);
ANALYZE t1;
SELECT * FROM sqlite_stat1 ORDER BY idx;
}
-} {t1 {} 0}
+} {}
do_test analyze-2.3 {
execsql {
CREATE INDEX t1i3 ON t1(a,b);
ANALYZE main;
SELECT * FROM sqlite_stat1 ORDER BY idx;
}
-} {t1 {} 0}
+} {}
# Start adding data to the table. Verify that the analysis
# is done correctly.