Commit Graph

4924 Commits

Author SHA1 Message Date
mlcreech
ede2627695 Fix build errors in test_osinst (CVS 4998)
FossilOrigin-Name: f047399799798e693ef75c472144f30a0175b662
2008-04-13 23:13:39 +00:00
danielk1977
2551caf381 Modify speedtest8.c so that it can use the logging from test_osinst.c when HAVE_OSINST is defined. (CVS 4997)
FossilOrigin-Name: 7622d74ad6088de4d94cb727b60ac4a042c52016
2008-04-12 16:03:37 +00:00
drh
8a29dfdea0 Remove all instances of sprintf() from the FTS modules. Ticket #3049. (CVS 4996)
FossilOrigin-Name: 062bf5d44d53ae0ee2bf96eddcc8de09157aa789
2008-04-12 13:06:09 +00:00
danielk1977
0520dbbae3 Modify test_osinst.c so that it only uses public interfaces. (CVS 4995)
FossilOrigin-Name: 3866a5da2bdcfafe956e1a9bf117f3277207de05
2008-04-12 11:30:12 +00:00
danielk1977
70b9b04c7c Add a logfile option to test_osinst.c. (CVS 4994)
FossilOrigin-Name: f97d89458259978b7b1b5c5e5a0d19cabcb9e536
2008-04-12 10:53:11 +00:00
drh
c2a721f73a Add the speedtest8inst1.c program for running speed tests with an
instrumented VFS. (CVS 4993)

FossilOrigin-Name: baa8056c67c03ac78a1ed6da5a46fda793340739
2008-04-11 21:20:48 +00:00
drh
06fbb733b9 Faster implementation of hexToInt that uses not branches. Ticket #3047. (CVS 4992)
FossilOrigin-Name: a70e9587569c99dd05e79c6745ff930aa31d763c
2008-04-11 19:37:55 +00:00
drh
3a200e0a44 Avoid the use of uninitialized variables in sqlite3GenerateRowIndexDelete.
Ticket #3048. (CVS 4991)

FossilOrigin-Name: a93b7a344a713a9ed9d72be4707eb28c2979648c
2008-04-11 19:18:24 +00:00
danielk1977
1ea1b3f8b9 Remove a recently added assert() that is failing with certain compilers on 32-bit platforms. Ticket #3043. (CVS 4990)
FossilOrigin-Name: 03c0279d7b004ccc4264143e366c793b4d774f9f
2008-04-11 17:15:46 +00:00
danielk1977
006015d8e5 Remove entries from the sqlite_stat1 table whenever an index is dropped. Related to #3033. (CVS 4989)
FossilOrigin-Name: 349aab42c7896f04ecb6ca33f08a4c194051e837
2008-04-11 17:11:26 +00:00
drh
5c070538f1 Additional reductions in the use of memset(). (CVS 4988)
FossilOrigin-Name: 38746c54385e3cb456cda660ea50769b5424db30
2008-04-11 15:36:03 +00:00
drh
26c9b5eaba Speed improvements by removing unnecessary memset() operations.
Also: do not resize the opcode array of a virtual machine to its
minimum size after code generation completes.  The extra resize
merely uses time. (CVS 4987)

FossilOrigin-Name: 2589955507fc1717891c4e07d1d658eb41660b87
2008-04-11 14:56:53 +00:00
drh
80106e5c4b Enhancements to the change counter tests. Ticket #3013. (CVS 4986)
FossilOrigin-Name: 1aaed6a4694f60ebcec5dee98f09fe756c81dfa4
2008-04-10 18:44:36 +00:00
drh
665850fbef Correctly handle virtual tables that are created and dropped all within
a single transaction.  Ticket #2994. (CVS 4985)

FossilOrigin-Name: 0acb1b428d1181f597a2a665cae3eef5775f15f1
2008-04-10 18:35:21 +00:00
danielk1977
1e21fd523b Add the --ostrace and --ossummary options to tester.tcl. To log calls the vfs layer from within test scripts. (CVS 4984)
FossilOrigin-Name: e1322415d0ca2d6b45f35ef9257b37161ec043e2
2008-04-10 17:27:38 +00:00
drh
00e087b24b Enhanced testing and documentation of sqlite3_result_error_code().
Ticket #2940. (CVS 4983)

FossilOrigin-Name: 5be56dbe879f89351239accf5069e4cb166e0792
2008-04-10 17:14:07 +00:00
drh
e296582705 Disable nuisance warnings on borland compilers. ticket #2936. (CVS 4982)
FossilOrigin-Name: 1e094ecfd7c6feaf8d524aa3c1477910b2328946
2008-04-10 16:47:41 +00:00
drh
19bba916f9 Make sure check-in (4976) also fixes ticket #2935. (CVS 4981)
FossilOrigin-Name: e3f798b1cafc3458941cf86ac4f9d4269fdf5b7e
2008-04-10 16:42:58 +00:00
drh
de24478e78 Give file scope to the sqlite3Apis constant. Ticket #3024. (CVS 4980)
FossilOrigin-Name: 30c5086068071385c13f02b3d33511127968335b
2008-04-10 16:01:10 +00:00
drh
4154c22345 Verify that a RAISE(ROLLBACK,...) works like RAISE(FAIL,...) when not
inside a transaction.  Ticket #3035. (CVS 4979)

FossilOrigin-Name: 87dc82d0436c6c3a9bd67544d52911012a5a7c66
2008-04-10 15:12:45 +00:00
drh
fab69597cc Make sure all memory allocations are 8-byte aligned. Ticket #3040.
Note that the mem3.c memory allocator returns 4-byte aligned memory
allocations.  But as mem3.c is intended for use in 32-bit embedded
systems, we are not going to change that. (CVS 4978)

FossilOrigin-Name: d11e8e307af906db75ae7aede790464fabd06422
2008-04-10 14:57:24 +00:00
danielk1977
5d1f5aa6ef Add source file test_osinst.c. A wrapper vfs with instrumentation capabilities. (CVS 4977)
FossilOrigin-Name: d9a6b653d3cb608610f13d2492fe9b3887acb3b9
2008-04-10 14:51:00 +00:00
drh
b5df14486d Make sure changes to virtual tables are counted the same as real tables.
Ticket #3038. (CVS 4976)

FossilOrigin-Name: 55591fc49c8ab8146c1f3eff733e637501bff627
2008-04-10 14:00:09 +00:00
drh
e5fb98af23 Fix to the "copy" method in the TCL interface. Ticket #3039. (CVS 4975)
FossilOrigin-Name: 6f07968ec4c9d773a852ecc8343df416d17af2a4
2008-04-10 13:42:56 +00:00
drh
d9b97cf3ef Document the fast that the result flag combinations to
sqlite3_open_v2() that are not defined in the documentation results
in undefined behavior.  Ticket #3037. (CVS 4974)

FossilOrigin-Name: b390e1f7f8d2b530a6765f2ab6804335c5550870
2008-04-10 13:38:17 +00:00
drh
08c88eb0d3 First cut at optimizing single-row updates to use a one-pass algorithm. (CVS 4973)
FossilOrigin-Name: fba97f7874d723111e873d1470fc1a95e64f922d
2008-04-10 13:33:18 +00:00
drh
67ade0a2d0 Add three new test cases to speed4p.test. Two of the three do single-row
updates based on rowid and on primary key. (CVS 4972)

FossilOrigin-Name: a2da7f9ac24ed17329ce9bde2e521a5b945e4ec2
2008-04-10 13:32:36 +00:00
drh
0e6ed0f040 Fix a bug in the speed4p.test performance testing script. (CVS 4971)
FossilOrigin-Name: 80311594149af093f1719ec433a633c332a5955e
2008-04-10 13:20:21 +00:00
mlcreech
4003298ba2 Replace always-true condition with assertion (CVS 4970)
FossilOrigin-Name: be7f3240c21c01509263005af2ccc3d7626fe729
2008-04-08 03:09:22 +00:00
mlcreech
1f045330c0 Add test case for empty VFS list (CVS 4969)
FossilOrigin-Name: 6797814ec59fe819424e8e7f77779a719ecd82d3
2008-04-08 03:07:54 +00:00
drh
35b5a33e24 Add the sqlite3PutVarint32 routine as an alternative to sqlite3PutVarint.
Gives 0.5% speed increase. (CVS 4968)

FossilOrigin-Name: b2517a7d8f7275943d44cc301f9d54fc8a4653e7
2008-04-05 18:41:42 +00:00
drh
335d29d208 Smaller and hopefully faster routine for converting blob literals into binary. (CVS 4967)
FossilOrigin-Name: 92d49499ee3371db64267c7e2ba72a5e12ea76f3
2008-04-04 15:12:21 +00:00
drh
1c22f2ddfb Fix the output labels on the tests in malloc9. (CVS 4966)
FossilOrigin-Name: 9987a7b193095dc90a83666bdac5e23105909cba
2008-04-04 12:21:25 +00:00
drh
bd4d397ca9 Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965)
FossilOrigin-Name: 046a98a8c88be7389c1571a819ccf1907a3f7217
2008-04-04 12:21:08 +00:00
drh
d094db1c7b Remove superfluous code from btree.c. (CVS 4964)
FossilOrigin-Name: 40173010706fb52ecd60197ce6e97d51a1899267
2008-04-03 21:46:57 +00:00
drh
4b1d66c1ec Make sure the zTail return from sqlite3_prepare() is initialized even
if there is a malloc failure. (CVS 4963)

FossilOrigin-Name: 040cffe2727936ce9228666fce5b00db47493e7d
2008-04-03 21:42:21 +00:00
drh
75e99a4727 Fix to the previous check-in so that it works on a intel Mac. (CVS 4962)
FossilOrigin-Name: 1d67f41c885d052ab10a33892938a85b56882b3d
2008-04-03 20:09:06 +00:00
drh
d543a42248 Use an improved RDTSC access routine. (CVS 4961)
FossilOrigin-Name: b4eba9c533f6aac9dde4f2c9796fe02e25158a0f
2008-04-03 19:40:59 +00:00
drh
17afdd238f Changes speedtest8 and speedtest16 so that the database file can be specified
on the command-line.  Allows speed testing against a :memory: database. (CVS 4960)

FossilOrigin-Name: 64badc50531668de45d76a3dcd90db17e1fe1ab1
2008-04-03 17:57:24 +00:00
danielk1977
fb103a8488 Instead of calling sqlite3_exec() to evaluate "PRAGMA encoding = UTF16" in sqlite3_open16(), set the connection encoding flag directly. (CVS 4959)
FossilOrigin-Name: 33a12e737c343dbc452a25321a63456c1a8f7548
2008-04-03 16:28:24 +00:00
drh
7720d6448a Add the speedtest8.c and speedtest16.c files to the tools subdirectory. (CVS 4958)
FossilOrigin-Name: b8d211a76fa56d812fc1758b58d65eef832494cb
2008-04-03 16:01:27 +00:00
danielk1977
3a2c8c8b73 Avoid an out-of-bounds read in sqlite3_prepare() and fix a case where the output variable *pzTail was being set incorrectly. Fix for #3027. (CVS 4957)
FossilOrigin-Name: c287a7b29410be12cf88f886e8e2525a42aa9c03
2008-04-03 14:36:25 +00:00
danielk1977
ce98bba24b Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
2008-04-03 10:13:01 +00:00
drh
41eb9e9986 Minor optimizations. (CVS 4955)
FossilOrigin-Name: e8529455803e0dab167f4faba5846fa1eafef741
2008-04-02 18:33:07 +00:00
drh
6a9ad3da22 Simplifications to the LockTable opcode. (CVS 4954)
FossilOrigin-Name: 66c5d715bbb732b0861a8a6f994cb4a8f259f2f8
2008-04-02 16:29:30 +00:00
mlcreech
6cc9c28920 Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
FossilOrigin-Name: 846f9739d3e288dc81e40f5bfab046bd80bb22b2
2008-04-02 04:23:32 +00:00
drh
47de955ea9 Avoid factoring single-instruction constants that end up getting replaced
by an SCopy instruction. (CVS 4952)

FossilOrigin-Name: e84ff57b6217afa84d60547dcc3a270b5e116818
2008-04-01 18:04:11 +00:00
drh
c5499bef4b Add the testcase() macro. Additional CSE test coverage. (CVS 4951)
FossilOrigin-Name: 492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
2008-04-01 15:06:33 +00:00
drh
b3843a82ea Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
2008-04-01 12:24:11 +00:00
drh
da250ea599 Fix the CSE mechanism so that it takes into account column affinity
changes that might be imposed by comparison operators. (CVS 4949)

FossilOrigin-Name: 91cc646e2b0c1d62a1989405cc9384a2c22d98d0
2008-04-01 05:07:14 +00:00