drh
c890fec362
Bring test coverage up to 99%. (CVS 5522)
...
FossilOrigin-Name: 2cd6bae80984126023bcf479e5f3db5eaa5c4134
2008-08-01 20:10:08 +00:00
drh
4cfb22f798
Fix problems in test scripts. Add new test cases to improve test coverage. (CVS 5521)
...
FossilOrigin-Name: b65f493c7519e8a5ee632a395b57d45269741dda
2008-08-01 18:47:01 +00:00
danielk1977
987a00e8b5
Also test that setting sqlite3_vtab.zErrMsg works from within the xRename method. (CVS 5520)
...
FossilOrigin-Name: 4f4a9ccae7d25b9856d1203f6b289d552c2b425e
2008-08-01 17:51:47 +00:00
danielk1977
3e3a84d32a
Test that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, xRowid, xUpdate, xSync and xBegin can all return error messages using the sqlite3_vtab.zErrMsg variable. (CVS 5519)
...
FossilOrigin-Name: 007359b770f225877880b11f4c5d97bb548e38ca
2008-08-01 17:37:40 +00:00
drh
6480aad473
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)
...
FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9
2008-08-01 16:31:14 +00:00
drh
e2a7c6e04f
Add a permutation test case for running all OOM tests with lookaside
...
disabled. (CVS 5517)
FossilOrigin-Name: 3f70e03ae83d374f5f69770bd7a4b279584f7090
2008-08-01 15:06:30 +00:00
drh
129ed69ea2
Update the memsubsys1 test script to take into account the buffer size
...
changes of the previous check-in. (CVS 5513)
FossilOrigin-Name: d43ff7bb8fc59c54b85658aaeb3dd088a324276f
2008-07-31 17:20:58 +00:00
shane
8225f5ac55
Omit calls to test_get_table_printf() if SQLITE_OMIT_GET_TABLE defined. (CVS 5509)
...
FossilOrigin-Name: 524a4075ddaecb07469da717e8afebc91240616e
2008-07-31 02:05:04 +00:00
shane
2a5fc4d6f5
Omit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)
...
FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff
2008-07-31 01:47:11 +00:00
drh
5462624dc4
When opening a zero-size database on unix, write one byte into the file before
...
interrogating the inode number. This works around issues with msdos
filesystems mounted on OS-X. Ticket #3260 . (CVS 5504)
FossilOrigin-Name: a480a8845fb3b49967de0790b30e6250c824b9be
2008-07-30 17:28:04 +00:00
drh
61669b3824
Implicit string->numeric conversion should go to an integer value when
...
possible. Ticket #3257 . (CVS 5502)
FossilOrigin-Name: da0e4bff30a77f72ae283406b547401c2ebb42c5
2008-07-30 13:27:10 +00:00
drh
d63bd75987
Make sure everything is deallocated before calling sqlite3_shutdown().
...
Ticket #3259 . (CVS 5501)
FossilOrigin-Name: 4a6ee88697ddc28e0c7df1954d1526de18191827
2008-07-30 13:15:46 +00:00
shess
7fdb522caf
Backport http://www.sqlite.org/cvstrac/chngview?cn=5489 from fts3.
...
Re-used prepared statement from fts2 cursor. (CVS 5499)
FossilOrigin-Name: 02870ed21dae2601a656b2f30c3ca0041e9cb60f
2008-07-29 20:38:17 +00:00
shess
9eb7c2ad83
Add some simple tests to make sure that the different fulltextFilter
...
query paths are being exercised. (CVS 5498)
FossilOrigin-Name: ae96d960e6e31315d25c7e5c3fb8363ed1b35350
2008-07-29 20:24:46 +00:00
drh
5f4bcf15d1
Enhancements to the pagecache malloc test configuration. Changes to the
...
speed test scripts to use the new test enhancements. (CVS 5494)
FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e
2008-07-29 14:29:06 +00:00
danielk1977
003c1ffa15
Add a missing "finish_test" to the end of misc5.test. (CVS 5491)
...
FossilOrigin-Name: 89216b166924e831dd6264dd60f8da42cef7deee
2008-07-29 10:26:45 +00:00
drh
633e6d57d9
Implement the "lookaside" memory allocation cache. Use of this cache makes
...
the speed1.test script run about 15% faster. Added new interfaces to
control the cache. (CVS 5488)
FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +00:00
danielk1977
161546c7e5
Fix a case where database corruption was causing an invalid reference. (CVS 5484)
...
FossilOrigin-Name: 7aecabacf924ad8c1f9f4e707d0c56e433e3a434
2008-07-26 18:26:10 +00:00
drh
ec424a5be6
Add the capability to track the maximum depth of the LALR(1) parser stack
...
so that critical applications can check to see if they are getting close
to limits. (CVS 5481)
FossilOrigin-Name: ef0250f3dc769a4acd534f31fa06d90922d4145b
2008-07-25 15:39:03 +00:00
drh
1bb14aca96
Fix the corrupt7 tests to track changes in the integrity check error message. (CVS 5480)
...
FossilOrigin-Name: 22177dac2e3cd9acafe7fcc71674a675fdd098ff
2008-07-25 14:53:17 +00:00
drh
ebf1b467f7
Increase limits on memsubsys1 tests to accomodate the larger structure
...
sizes on 64-bit platforms. (CVS 5479)
FossilOrigin-Name: f7720f1bfcc6dcdd60002520e10f545a6f0eb126
2008-07-25 13:39:08 +00:00
danielk1977
31fab4f30b
Updates to mem6.c allocator. (CVS 5473)
...
FossilOrigin-Name: 43a4cae2acea33d1a17c0037516e9c27fb7e8e91
2008-07-25 08:48:59 +00:00
drh
2abcd58f09
Reduce the size of the parser allocation. Add additional instrumentation
...
to mem2. speed1*.test uses scratch malloc. (CVS 5472)
FossilOrigin-Name: 599a9dea8fc97d0e7f09e67c9954de8cc1b8748e
2008-07-24 23:34:07 +00:00
danielk1977
fae8917633
Do not run capi3.test or capi3c.test when testing memsys6. (CVS 5469)
...
FossilOrigin-Name: e0a101117ca44f0cce555b5db667286729fd2ad4
2008-07-24 10:32:30 +00:00
danielk1977
8969718379
Add a mutex to mem6.c to make it threadsafe. (CVS 5468)
...
FossilOrigin-Name: 9b97ce60c63c8b8afa43496a97917afd5fc26c71
2008-07-24 10:11:27 +00:00
danielk1977
2d34081de9
Add mem6.c, a new allocator. More to come. (CVS 5467)
...
FossilOrigin-Name: 192bc192185a7b475ef9331e2a4a0dc68083ec03
2008-07-24 08:20:40 +00:00
drh
80cc85b3c2
Error messages from virtual tables store on the sqlite3_vtab->zErrMsg field
...
are reported back up to the application interface and memory is reclaimed. (CVS 5466)
FossilOrigin-Name: 4a9dd5e782a363e93d4705fa3671bc6cf0bb5a33
2008-07-23 21:07:25 +00:00
drh
9a1ec1e3ae
Remove stray breakpoints from test scripts. (CVS 5465)
...
FossilOrigin-Name: cb5e75dfa5c7048bd0994afac19846f70bfa7a4d
2008-07-23 20:28:13 +00:00
drh
4dc754d96d
Read the sqlite3_vtab.zErrMsg after each call to a virtual table
...
method and transfer any error into the database connection.
Fix the fts2.test and fts3.test scripts to that they return
silently rather than failing the test sequence if the appropriate
FTS implementation is unavailable. (CVS 5463)
FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1
2008-07-23 18:17:32 +00:00
shess
db94e39b07
Implement optimize() function.
...
Backports check-in (5417) from fts3. (CVS 5458)
FossilOrigin-Name: c16900dc7603cab30f8729b25361bc88bb37ae43
2008-07-22 23:49:44 +00:00
shess
08904673c8
Delete all fts2 index data the table becomes empty.
...
Backports check-in (5413) from fts3. (CVS 5457)
FossilOrigin-Name: 4c98179be258319f441ae4e123cf59af77e96409
2008-07-22 23:41:26 +00:00
shess
3d373110f0
fts2 functions for testing scripts.
...
Backports (5340) from fts3. (CVS 5456)
FossilOrigin-Name: 4e47394be9dfbf0f9309e55eb6c6a3a517ea2006
2008-07-22 23:32:27 +00:00
shess
b2822a2b5e
Changes fts2 to use only sqlite3_malloc() and not system malloc.
...
Backports (4554) and (4555) from fts3. (CVS 5454)
FossilOrigin-Name: ecf2dec66cb979cb7d8db3b7ce5c64cab57fe2bb
2008-07-22 22:57:54 +00:00
danielk1977
b27475ba75
To ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt.h. (CVS 5443)
...
FossilOrigin-Name: d8be91e2d2737dcb0e82e6c8a6a3f4827bc98d63
2008-07-19 13:43:23 +00:00
drh
4a0611dd29
Fix SQLITE_OMIT_AUTOVACUUM so that it works again. Ticket #3228 . (CVS 5439)
...
FossilOrigin-Name: 3b2dd417f9dab3cae3ab3693629a65a2c90f00e9
2008-07-18 17:16:26 +00:00
drh
e54a62ad85
Make sure expression spans are set correctly for "x.*" expressions in
...
the result set of a SELECT. Ticket #3229 . (CVS 5438)
FossilOrigin-Name: 17a9984e7668be388c4042c070718a02b284a336
2008-07-18 17:03:52 +00:00
drh
137802cbeb
Make sure the auxiliary database connection is closed after every test. (CVS 5428)
...
FossilOrigin-Name: e60bb6a179c6e674db2b9362e2ccdefaa3bc17f4
2008-07-16 18:35:45 +00:00
drh
06a0a81c38
More improvements to the 64-bit integer conversion testing in func.test. (CVS 5427)
...
FossilOrigin-Name: 632bb3c73443606bd2c7a5eadf0f4b8971a2b41e
2008-07-16 18:20:09 +00:00
drh
01859b0b07
Fix a test in func.test so that it works on machines that lack long double. (CVS 5425)
...
FossilOrigin-Name: 8686959d4289dc0bf9e1c353b948f26cca5a9a65
2008-07-16 18:04:36 +00:00
drh
7830cd41ba
Activate testing of mem3 and mem5. Fix problems found. Tickets #3223
...
and #3225 . Other test configuration changes. (CVS 5419)
FossilOrigin-Name: a3a7820540f6f2285e6c83cac84383fc7d60d267
2008-07-16 12:25:32 +00:00
shess
7d9ef0d0fc
Implement optimize() function. This merges all segments in the fts
...
index into a single segment, including dropping delete cookies. (CVS 5417)
FossilOrigin-Name: b22e187bc2b38bd219dd0feba19b97279bd83089
2008-07-15 21:32:07 +00:00
drh
edaedab238
Update column naming rules. Ticket #3221 . Rules for column naming
...
are still subject to change (except for the AS rule which we promise to
keep the same) but are more consistent now. And the rules are tested
using a new test script. (CVS 5416)
FossilOrigin-Name: 61f6e19755b85bcb065f85fc425c2172badea308
2008-07-15 20:56:17 +00:00
drh
85e9e22b33
Increased test coverage. (CVS 5414)
...
FossilOrigin-Name: 7cf91e08c08ce515c24c738c7d079f5b81eebee6
2008-07-15 00:27:34 +00:00
shess
c2c66a030d
Delete all fts3 index data the table becomes empty. Previously,
...
deleting all rows from an fts3 table would leave a bunch of index data
describing the terms of the original data, plus deletions of those
terms, perhaps with some amount of it merged together so the deletions
knocked out the originals. Even when all rows were deleted that
original data would hang out, though eventually it would mostly be
overwritten if new data contained the same set of terms. (CVS 5413)
FossilOrigin-Name: 8b872e426091d9ef108e52dbec0d968ed7452907
2008-07-14 20:43:15 +00:00
drh
65cef1affc
Add a new test script to exercise the deadlock avoidance code in the
...
btree mutex logic. (CVS 5412)
FossilOrigin-Name: 7d5e1c4375599a913d23e5954fa63c10ac9d7688
2008-07-14 19:39:16 +00:00
drh
582de4f297
Remove the malloc2.test script since it was designed for use in versions
...
of SQLite that predate SQLite's ability to recover from out-of-memory
errors automatically. Removing this script causes no reduction in
test coverage and removes potential problems reported by ticket #3213 . (CVS 5409)
FossilOrigin-Name: 5bfc962533995530a0ef0875556f9f46e8dbf68b
2008-07-14 15:11:20 +00:00
drh
ff1590ee00
Write sqlite3_initialize() calls in sqlite3_malloc() within
...
SQLITE_OMIT_AUTOINIT. Ticket #3217 . (CVS 5408)
FossilOrigin-Name: 4961b0bbe8b9cf5fb27de7f2514e8ab399a00134
2008-07-14 12:52:53 +00:00
danielk1977
185eac95b6
Fix the test script --binarylog option. (CVS 5401)
...
FossilOrigin-Name: 03e3cfc4ccab3c6441d41ade175dc041b8fa6c98
2008-07-12 15:55:54 +00:00
drh
e8f52c5089
Remove leftover debugging commands (breakpoint and btree_breakpoint) from
...
test scripts. (CVS 5400)
FossilOrigin-Name: dcb160249fa2d592ad09b8b0052102dc44a93511
2008-07-12 14:52:20 +00:00
drh
a34605859d
Detect and handles the case where a row is modified or deleted while it
...
is being read during SELECT processing. (CVS 5399)
FossilOrigin-Name: c80a5d09935c60a2a50bc262c172a94073355f0d
2008-07-11 21:02:53 +00:00