drh
a817e42a21
Get the memleak.test script working again after recent changes. (CVS 3768)
...
FossilOrigin-Name: cd6ca078e3402f06836b6b510a4a431f576f7219
2007-03-30 17:17:51 +00:00
danielk1977
95b289b684
Coverage tests for some pragmas. (CVS 3767)
...
FossilOrigin-Name: eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
2007-03-30 17:11:12 +00:00
drh
369339db34
Always enable exclusive access mode for TEMP databases. This cannot be
...
changed. The locking_mode pragma has not effect on the TEMP database. (CVS 3766)
FossilOrigin-Name: 04d3b9098ed06d5be24253edde50ea61b4641df8
2007-03-30 16:01:55 +00:00
danielk1977
780b1d9416
Coverage improvements for where.c. (CVS 3764)
...
FossilOrigin-Name: 7e0aa964129612e2bad6fa45139d124f19cacd48
2007-03-30 14:56:34 +00:00
drh
073d3efae4
Avoid using the "clock" command in test scripts since it is a proc in Tcl8.5
...
and is thus not available to testfixture. (CVS 3760)
FossilOrigin-Name: 339941d83ae397d69084f41483afb1ea44d44967
2007-03-30 13:01:32 +00:00
danielk1977
935ed5eafd
Test coverage a few extra lines in where.c. (CVS 3756)
...
FossilOrigin-Name: ea49ddf64aa6073b8018dc2faaf199704d359412
2007-03-30 09:13:13 +00:00
danielk1977
b5584c0c69
Extra test cases to improve coverage of main.c. (CVS 3755)
...
FossilOrigin-Name: 19fc3d78962d225d42372b9298be5921ec1fc8a1
2007-03-30 07:10:50 +00:00
shess
06c69d2ed6
Buffer updates per-transaction rather than per-update. If lots of
...
updates happen within a single transaction, there was a lot of wasted
encode/decode overhead due to segment merges. This code buffers
updates in memory and writes out larger level-0 segments. It only
works when documents are presented in ascending order by docid.
Comparing a test set running 100 documents per transaction, the total
runtime is cut almost in half. (CVS 3751)
FossilOrigin-Name: 0229cba69698ab4b44f8583ef50a87c49422f8ec
2007-03-29 18:41:03 +00:00
drh
2ecad3b443
Make sure the strftime() date conversions put in leading zeros correctly.
...
Ticket #2276 . (CVS 3749)
FossilOrigin-Name: e853067ec4db3eedfb4adcdd4172de2c55b9ac58
2007-03-29 17:57:21 +00:00
danielk1977
69b637b56b
Add a couple of test cases to improve coverage testing. (CVS 3747)
...
FossilOrigin-Name: 0b22ce3637f87c453084c5bd994b6b19a0b014c0
2007-03-29 17:07:52 +00:00
shess
194f8972d5
Don't call ctype functions on hi-bit chars. Some platforms raise
...
assertions when this occurs, and it's almost certainly not the right
thing to do in the first place. (CVS 3746)
FossilOrigin-Name: f6c3abdc6c5e916e5366ba28fb1cd06ca3554303
2007-03-29 16:30:38 +00:00
danielk1977
a713f2c331
Explicitly test some error cases that up until now have not been checked. (CVS 3742)
...
FossilOrigin-Name: f26b014109b1b20367044c5d3fcb347af73d07aa
2007-03-29 12:19:11 +00:00
drh
95bad4c751
Improvements to the XFER Optimization of the INSERT statement. (CVS 3736)
...
FossilOrigin-Name: 53fff7d1f2f829010a2641c7738538b3155da4b2
2007-03-28 18:04:10 +00:00
drh
72e8fa42f9
Correctly handle NULLs in IN operators. Ticket #2273 .
...
The changes in where.c and in the WhereLevel.aInLoop structure are
not strictly necessary to fix this problem - they just make the code
easier to read. Only the change in OP_Next/OP_Prev operator of vdbe.c
is required. (CVS 3735)
FossilOrigin-Name: 26348556d824c032851e409ac510cddb55c200bf
2007-03-28 14:30:06 +00:00
drh
600e46a021
Fix an memory allocation error revealed by malloc3.test. (CVS 3733)
...
FossilOrigin-Name: 0f7fdb022ca7c94f7d264192e18b6e2bd1e8cff4
2007-03-28 01:59:33 +00:00
danielk1977
979f38e5ee
Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729)
...
FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
2007-03-27 16:19:51 +00:00
drh
91c58e23b2
Get the -DSQLITE_OMIT_XFER_OPT option working. Run speed tests on a full
...
regression. Add the script for generating sqlite3.c. (CVS 3723)
FossilOrigin-Name: 42c038518c4ba0ef827a5717d450f95165b3c729
2007-03-27 12:04:04 +00:00
drh
45068f4b5c
Set the same random seed for the speed tests. (CVS 3721)
...
FossilOrigin-Name: 8fe317054982969ad539cdbf1b996b97d86ec4f2
2007-03-26 16:30:15 +00:00
danielk1977
341a91c672
Run some malloc() tests with exclusive-access mode. (CVS 3720)
...
FossilOrigin-Name: 9ebba469023723652c4dbba3d9982a64a1fb144f
2007-03-26 16:13:58 +00:00
drh
e4dd73b4fa
Avoid unnecessary calls to pager_unwritelock() when in exclusive-access mode.
...
Add the speed2.test script to the test suite. (CVS 3718)
FossilOrigin-Name: ab53f5086334ea2f6c20c8f9d043baff39fae8d7
2007-03-26 13:48:12 +00:00
danielk1977
c5859718af
Run some malloc() tests with exclusive-access mode. (CVS 3717)
...
FossilOrigin-Name: 127454903764daff17390941a002f527ee2ffc87
2007-03-26 12:26:27 +00:00
danielk1977
ded6f4b2fe
Add some tests and fixes surrounding exclusive-access mode and the pager change-counter. (CVS 3716)
...
FossilOrigin-Name: 72cb2e1a73cd09d32900bb473377f66ff55058fb
2007-03-26 10:27:18 +00:00
danielk1977
334cdb63b0
Some fixes and test cases for exclusive access mode. (CVS 3714)
...
FossilOrigin-Name: 899e60707bea0fabab2ff3ac8a3fbb676a539120
2007-03-26 08:05:12 +00:00
drh
6d54da05ec
Add the sqlite3_prepare_v2 and sqlite3_prepare16_v2 APIs to the loadable
...
extension interface. (CVS 3713)
FossilOrigin-Name: f02ba56d5c6bbd57682a6bb57e9f92021dfb066e
2007-03-25 19:08:46 +00:00
danielk1977
414834686c
Changes for exclusive access mode. There are still some bugs. (CVS 3712)
...
FossilOrigin-Name: b6c700370be29db2b974f9abd719c3e56abf8058
2007-03-24 16:45:04 +00:00
danielk1977
e277be0545
Discard the contents of the pager-cache only when the change-counter indicates that it is stale. (CVS 3711)
...
FossilOrigin-Name: 07b56965f3227c9f78680728b955395295c4aa49
2007-03-23 18:12:06 +00:00
danielk1977
a8553141c9
Add some test cases simulating crashes with various storage medium sector sizes. (CVS 3704)
...
FossilOrigin-Name: c3c5f658cf9c69b6e81e63fbde5dd0a854be9fc7
2007-03-19 15:04:54 +00:00
danielk1977
b94bf855b2
Fix some problems with test cases in shared_err.test. Also a real bug causing a segfault after an IO error in pager.c. (CVS 3703)
...
FossilOrigin-Name: 9f62ef1ec385d9f1a1913439dc4c2d710373f12a
2007-03-19 13:53:37 +00:00
danielk1977
b472117c11
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)
...
FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
2007-03-19 05:54:48 +00:00
drh
309b338673
Added TRIM, LTRIM, and RTRIM functions. (CVS 3698)
...
FossilOrigin-Name: 6fe13eeade4fc7099fbda1e6520640927c08debc
2007-03-17 17:52:42 +00:00
drh
26b6d90d74
First cut at an implementation of the REPLACE() function. We might yet
...
make this a compile-time option or move it into a separate source file. (CVS 3697)
FossilOrigin-Name: c2fe746ea782f84e850aaf3af7f5536b027a19a1
2007-03-17 13:27:54 +00:00
danielk1977
06f52cb936
Add crash2.test, for robustness testing with variable disk block size. (CVS 3696)
...
FossilOrigin-Name: b0f8203dbbf1036418a2dcc480f352f761826194
2007-03-17 10:28:04 +00:00
danielk1977
59a33f98d6
Modifications to crash-test infrastructure. (CVS 3695)
...
FossilOrigin-Name: c4be8d9949fc7b5e1bed757423c5195f38069048
2007-03-17 10:26:59 +00:00
danielk1977
933bbd6c8d
Combine the two very similar definitions of (crashsql) in the test scripts. (CVS 3694)
...
FossilOrigin-Name: eaf434d5887bf75330e1cea12be810dfe667b62a
2007-03-17 07:22:42 +00:00
drh
a7aea3dd52
Fix the pager so that it handles persistent I/O errors correctly.
...
Update the testing infrastructure so that it tests for persistent
I/O errors instead of just transient errors. (CVS 3690)
FossilOrigin-Name: ea8507a796c65041f7e720edea89f919fca1a028
2007-03-15 12:51:16 +00:00
drh
d5eb79eb40
Infrastructure to make simulated I/O errors persistent instead of
...
transient. (CVS 3689)
FossilOrigin-Name: 1a53f531ecd51938fab37a59b7088d89d8f8569d
2007-03-15 12:17:42 +00:00
danielk1977
d45a0315cb
Do not crash when a corrupt database contains two indices with the same name. (CVS 3684)
...
FossilOrigin-Name: 48b2a40008a09881ed9da3548095495a3d4a6647
2007-03-13 16:32:25 +00:00
danielk1977
8efe541f24
Handle the case where the estimated cost of a virtual table scan is larger than SQLITE_BIG_DBL. Ticket #2253 . (CVS 3670)
...
FossilOrigin-Name: 52885ed8b76a06588acf202a38b4feabfca1cfd1
2007-03-02 08:12:22 +00:00
danielk1977
a41c7497e8
Disable the "SELECT max(rowid) ..." optimization for virtual tables. Ticket #2250 . (CVS 3669)
...
FossilOrigin-Name: ddb4d0af5770c7030fe6e92119972c9508724b9a
2007-03-02 07:27:00 +00:00
drh
fb658dedce
Additional test cases added. Improvements to the INSERT transfer
...
optimization. (CVS 3662)
FossilOrigin-Name: 2bf5475bde763f73f7f4dd9cac7d13a631a7d2aa
2007-02-24 15:18:49 +00:00
drh
dd73521bc2
Additional tests and some improvements to the INSERT transfer
...
optimization. More testing is needed. (CVS 3661)
FossilOrigin-Name: 830985814345f71ba2def3c206e36aabe9e1ee7c
2007-02-24 13:53:05 +00:00
drh
8103b7d2b7
Make sure the INSERT xfer optimization does not trigger if the CHECK
...
constraints on the two tables are not identical. Ticket #2252 . (CVS 3660)
FossilOrigin-Name: 6fc18275230563437f2985eac3795e4dfe8eb9de
2007-02-24 13:23:51 +00:00
drh
945498f3f2
Make sure that integer values are converted to real when pulled from
...
a REAL table column by GROUP BY. Ticket #2251 . Also make sure default
values are correctly expanded. There may be other places in the code
where this issue comes up - we need to look further. (CVS 3659)
FossilOrigin-Name: e11bbf174c5a2fa75e3d1dd450c8b2a18f40e4da
2007-02-24 11:52:52 +00:00
drh
3e35580779
Disable the OR optimization if it would conflict with column
...
affinity coercions. Ticket #2249 . Additional cleanup and testing
of the OR optimization. (CVS 3658)
FossilOrigin-Name: 908daaa9ab86e0bd1da6d0807d6aaba240c3cee0
2007-02-23 23:13:33 +00:00
drh
de087bd5ed
Clarify the documentation on how comparisons occur in an IN operator.
...
Fix the comparison operators when both sides of an IN operator are
expressions (ticket #2248 ).
Changes to main.mk for adding FTS2 into the standard build also
got mixed in with this check-in by mistake. (CVS 3656)
FossilOrigin-Name: da81725ca1cd894b3f2d734767e10cc0dc329566
2007-02-23 03:00:44 +00:00
shess
450d0aa933
Fix typos in test naming (was using 'e' instead of 'f'). (CVS 3655)
...
FossilOrigin-Name: 16cb00adeb3b68220ba2567b86b230bbbf2a0330
2007-02-23 00:14:05 +00:00
danielk1977
b77ff0139e
Fix for an UPDATE on a virtual table when the WHERE clause matches zero rows.
...
Ticket #2244 . (CVS 3652)
FossilOrigin-Name: 43bf797842f00a104f5c5619ad3215edddfc641b
2007-02-21 16:52:12 +00:00
drh
920769d3a6
In the corrupt2.test script,
...
change uses of (open ... a) to (open ... RDWR) to work around
inconsistencies in behavior across various platforms. (CVS 3645)
FossilOrigin-Name: 50e86b0368ae0268e7f07e44a746e13ad86a3b8b
2007-02-14 12:32:13 +00:00
danielk1977
0817d0dfc2
Use OP_VColumn instead of OP_Column when querying virtual tables for values to save in aggregate context records. #2230 . (CVS 3644)
...
FossilOrigin-Name: cb78f7cb0f0bf0c799a929fd6ea30f25e2a7b5d0
2007-02-14 09:19:36 +00:00
shess
3438ea3b9e
http://www.sqlite.org/cvstrac/tktview?tn=2219
...
When creating fts tables in an attached database, the backing tables
are created in database 'main'. This change propagates the
appropriate database name to the routines which build sql statements.
Note that I propagate the database name and table name separately. I
briefly considered just making the table name be "db.table", but it
didn't fit so well in the model used to store the table name and other
information, and having the db name passed separately seemed a bit
more transparent. (CVS 3631)
FossilOrigin-Name: 283385d20724f0144f38de89bd179715ee5e738b
2007-02-07 01:01:17 +00:00