Commit Graph

13642 Commits

Author SHA1 Message Date
drh
5f36a83329 Testing improvements and corner-case bug fixes for the dbstat virtual table.
FossilOrigin-Name: d51ce539327b4807150b030a10bb105fa34cbc24
2015-05-07 18:29:04 +00:00
drh
857df26b85 Enhance the dbstat virtual table with the ability to analyze ATTACHed
databases.

FossilOrigin-Name: 25ec09400b753fcb10a2aae57eb43dbf0548b7ca
2015-05-07 14:41:56 +00:00
drh
8f109e396f Version 3.8.10
FossilOrigin-Name: cf975957b9ae671f34bb65f049acf351e650d437
2015-05-07 11:53:08 +00:00
drh
9b40e474ef Remove a faulty assert() statement.
FossilOrigin-Name: 5f2539da8cb9df99029ab4ab7023804722697673
2015-05-07 00:09:29 +00:00
dan
b0cba4bc11 Have the autoconf package build the shell tool with SQLite linked in statically.
FossilOrigin-Name: 31834c3aa7deeafee1163a67caf5f3197f07baf4
2015-05-06 14:18:58 +00:00
drh
0c6ab89b41 Remove four lines of superfluous code identified by clang scan-build.
FossilOrigin-Name: 04afa3febee32854fbb09ef8d4ffffd432119716
2015-05-05 18:52:54 +00:00
drh
0a96931b76 Fix a minor coding inefficiency found during pre-release inspection.
FossilOrigin-Name: cc50883d67334507227e1384fef6cc7c93fd7de1
2015-05-05 16:57:52 +00:00
drh
bfa582a3f3 Add #ifdef statements to test_blob.c so that it will build
with SQLITE_OMIT_INCRBLOB.

FossilOrigin-Name: b8f090e65d010c62df335d0520a36a24904e8bc6
2015-05-05 11:08:02 +00:00
drh
59ba6e8832 Spell SQLITE_OMIT_VIRTUALTABLE correctly in a #if in dbstat.c.
FossilOrigin-Name: d2cb1becc07fad5cbd48c206c676493ba90cada1
2015-05-05 10:46:02 +00:00
dan
dd14ecbca5 Fix a faulty assert() in the btree part of the "PRAGMA page_size = ?" code.
FossilOrigin-Name: 90b197489a37e01dcb2f3a8182848c1301e1757b
2015-05-05 10:03:08 +00:00
drh
b6750b1057 Fix a problem in Makefile.in that only comes up on Windows with MinGW.
FossilOrigin-Name: 5f3cd68b3e3ac9957059c7076e95c5c4e8238f51
2015-05-05 01:09:06 +00:00
drh
8f70ee0e93 Fix #ifdef problem in tclsqlite.c.
FossilOrigin-Name: fe723bb5d5fa9522411c06dcee8bf1a8fd210db3
2015-05-05 00:48:23 +00:00
drh
a3ab9d0c61 Automatically enable the dbstat virtual table on all new database
connections with the SQLITE_ENABLE_DBSTAT_VTAB compile-time option is used.

FossilOrigin-Name: 1c9c6eaa9f75fd7b90fbf8b057656fd9e50b5060
2015-05-04 20:25:05 +00:00
drh
d1055b1bd5 In the command-line shell, and the ".binary" command and additional
C-style backslash escapes.

FossilOrigin-Name: 850c11866686a7b39d7b163fb60898c11283688e
2015-05-04 19:13:25 +00:00
drh
abbf5dd3cc Add the "dbstat" virtual table as a standard component in the SQLite
amalgamation, though turned off unless compiled with SQLITE_ENABLE_DBSTAT_VTAB.

FossilOrigin-Name: e7529705903a9d4d410801658a47fb43a4f2de2f
2015-05-04 19:06:09 +00:00
drh
1a4a680a38 Rename the test_stat.c source file to dbstat.c and rework the makefiles to
make dbstat.c a first-class source module.

FossilOrigin-Name: a24480a474993f82ff58edbe12d2093c59b1a2dc
2015-05-04 18:31:09 +00:00
drh
84ab95395e Include the "dbstat" virtual table in the amalgamation.
FossilOrigin-Name: fc6504aa8ca19b3737f72c1e20db8df6b7608dd2
2015-05-04 17:06:39 +00:00
drh
9af8646dce Fix a faulty assert() in the SELECT code generator and add a test case
to prevent regression.

FossilOrigin-Name: 1421c8ffba179d6aafa2643012f80a2738779117
2015-05-04 16:09:34 +00:00
drh
33aa4dbe44 Fix a bug in --changeset output for sqldiff.exe for floating-point values.
Also fix harmless compiler warnings in sqldiff.exe.

FossilOrigin-Name: 9f428530f9a6cb54f0a2fc3e666c38c7c093558a
2015-05-04 15:04:47 +00:00
drh
9a9219ff24 Add the --lib option to the sqldiff.exe command-line utility.
FossilOrigin-Name: a117e8f6bd60ed7f6e4cdcd2ee8d624fe040f7ab
2015-05-04 13:25:56 +00:00
dan
c722cf7d03 Add the 'y' flag to the fts3/4 matchinfo() function.
FossilOrigin-Name: aef1e8f47123e2e865432a0abf194dea4f23447a
2015-05-04 12:29:50 +00:00
drh
1a57c17d0f Improvements to fuzzershell: Avoid excess memory allocations when loading
many files.  Show the total runtime on final output.  Show individual filenames
as they are processed even if they are single test-case files.

FossilOrigin-Name: 34a722a2f3331c35211526c9ec055d4d9175c965
2015-05-02 19:54:35 +00:00
drh
1a51337af8 Add the ".limit" command to the command-line shell.
FossilOrigin-Name: 803cb60e75e0b09a526eefec11139cb3e8ae8c7c
2015-05-02 17:40:23 +00:00
dan
36b948f88a Reorganize some multi-threaded code in vdbesort.c so that full MC/DC test coverage does not depend on the outcome of a race condition.
FossilOrigin-Name: 78c7ec95931265b89a92f6a799fc9b1a9f0476bf
2015-05-02 12:40:12 +00:00
drh
c049057242 Cleanup of the sqlite3StrAccumInit() function. No functionality changes.
FossilOrigin-Name: 7952c32268aa650d9ee946d5bfe190f712e3bbe6
2015-05-02 11:45:53 +00:00
dan
28f98455f4 Add the experimental matchinfo 'y' flag to fts3/4.
FossilOrigin-Name: 92941609af74044b3078e020324a37b04a0638b0
2015-05-02 09:44:15 +00:00
drh
c843016e36 Enhance the fuzzershell --uniquecases option to output results in order of
increasing runtime and to include the runtime in the comment separator of
the output.

FossilOrigin-Name: 04630b989d8794b9ed2553f4d223de2b322437c5
2015-05-01 20:34:47 +00:00
drh
b3df0c675c Enhance fuzzershell to accept multiple input files. Add the test/fuzzdata2.txt
fuzz test content.

FossilOrigin-Name: ab5523aafe4817232388d28ea99be0953e7dccf3
2015-05-01 19:21:12 +00:00
drh
e9c5f97683 Fix an assert in RTREE that would fire if the rtree table is misdeclared.
FossilOrigin-Name: 9a45409cc4078f2b6e68aa777f6ab86a14309833
2015-05-01 18:00:37 +00:00
dan
929b923388 Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file.
FossilOrigin-Name: 40db3e40126db1035fcc12989026915744dc5651
2015-05-01 16:57:24 +00:00
drh
5789d1a46f Remove obselete comment text from the description of the Table object.
No changes to code.

FossilOrigin-Name: 6566b72a9c68b347d126189b376f52ffd56edfba
2015-05-01 15:25:51 +00:00
drh
abf582509d Use the sqlite3Fts3ErrMsg() function to set error message text in FTS3,
and to ensure that error messages are not overwritten and thus leaked.

FossilOrigin-Name: 605347e087ec5eb817f3c94f4616abe26c7ab66b
2015-05-01 14:07:30 +00:00
drh
6296a2ab4b Enhance the CLI to initialize the dbstat virtual table if compiled using
SQLITE_ENABLE_STAT_VTAB.

FossilOrigin-Name: 822dfc00173dad7703aa6413bb94f72f0da8e2c6
2015-04-30 20:35:33 +00:00
drh
f2db338926 Fix a harmless comment typo.
FossilOrigin-Name: 012a0c4e8485b1c2206ecff1946bf036bae04f3c
2015-04-30 20:33:25 +00:00
dan
d154a43ed9 Avoid dropping an error code in test function sqlite3_dbstat_register().
FossilOrigin-Name: 9a9f633f035fc3f6484b2d8eeed937374f4558c4
2015-04-30 20:26:53 +00:00
drh
6c98415a1c Modify the mkfuzzdata1.tcl script so that it retains the culled test vectors
in the tmp2 subdirectory.

FossilOrigin-Name: 431a958f3b605ef059119eaedd69796e14bec291
2015-04-30 13:06:15 +00:00
drh
6a412b8be9 Fix signed/unsigned comparison compiler warnings. Add the
SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded
identically on every run, for testing purposes.

FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0
2015-04-30 12:31:49 +00:00
drh
f3cdcdccbe Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
2015-04-29 16:50:28 +00:00
drh
b4a91a9a88 Improved support for OSTRACE on Windows.
FossilOrigin-Name: ca43812bde499a23244e2860d3ceddc97d29f09e
2015-04-29 00:35:07 +00:00
mistachkin
5824d44bab Revise when the sqlite3ErrName() function is defined.
FossilOrigin-Name: 9e593fb3dbc58e86f499ba4399530e3e760eb84d
2015-04-28 23:34:10 +00:00
drh
0bdef92dc2 Update the test/fuzzdata1.txt file with the latest cases discovered by AFL.
FossilOrigin-Name: f2063f5320f5a5d884f9c931eb91b7cc94945b92
2015-04-28 14:49:41 +00:00
dan
d68d1f4863 Fix an assert() failure that could occur if the internal sqlite3_rename_parent() SQL scalar function was invoked directly.
FossilOrigin-Name: 36e515261825be60ffdc73d13340d77cf377e8e1
2015-04-28 14:07:02 +00:00
drh
bd6789e761 Fix sqlite3VdbeMakeWritable() to always clear the MEM_Ephem flag.
Change the OP_Move opcode to always deephemeralize moved content.

FossilOrigin-Name: fbb06727181eac1470b2dd458d2d159146439d21
2015-04-28 14:00:02 +00:00
drh
5fb71254e4 Shift the Mem.pScopyFrom pointer in the correct direction in OP_Move.
Fix for a defective check-in [a2135ad13049] and ticket [d6352363751].
Debugging code only - does not affect normal operation.

FossilOrigin-Name: add4e043b35f9c454dea7b888eef1c1e14d791f1
2015-04-28 12:44:55 +00:00
drh
06d83377e1 Add code to the shell to optionally initialize the dbstat virtual table.
FossilOrigin-Name: 7ed86dd3b85ee092a19fe5d1e2fba39ce0166a2a
2015-04-28 12:27:22 +00:00
drh
42c0a2b2f3 Fix comment typos. No code changes.
FossilOrigin-Name: 60174cf572f8788e67a0434d5fe763724d7425a3
2015-04-28 01:28:36 +00:00
drh
4d35c41f48 Add a TCL script that can be run to generate the fuzzdata1.txt file.
FossilOrigin-Name: fdc79fd14af8e05d1d5b4665303715b391f2e402
2015-04-28 00:53:26 +00:00
dan
995f8b9d73 Add fault-injection tests for the code in test_stat.c.
FossilOrigin-Name: ea5e0b74c997492025225cd86e65e8a8c86ca4a0
2015-04-27 19:53:55 +00:00
drh
a30c158c38 Update the fuzzer test data after having run it through afl-cmin to remove
redundant test cases.

FossilOrigin-Name: 8134d41b964428b3af022735bce9d07c6ad28b21
2015-04-27 15:08:53 +00:00
drh
b3f3d64b4b Fix compiler warnings in sqldiff.
FossilOrigin-Name: 5f48d6f6c0a573ecc5bd42cb6c019288e22d295f
2015-04-25 18:39:21 +00:00