]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Fri, 25 Jul 2008 12:49:44 +0000 (12:49 +0000)]
Make the libtclsqlite3.la shared library depend on a separate
libsqlite3.la shared library. I think this flies in the face of the
whole SQLite philosophy of minimal dependencies, but on the other hand,
few people use that shared library and the capability has been requested
from the SuSE team. (CVS 5477)
FossilOrigin-Name:
83484b42bf353535567e245a92f40096b63b342f
drh [Fri, 25 Jul 2008 12:39:23 +0000 (12:39 +0000)]
Fix a build problem on tclsqlite in Makefile.in. (CVS 5476)
FossilOrigin-Name:
e7a604807f9f3f92920b2bac403d2dd368dfa102
danielk1977 [Fri, 25 Jul 2008 10:40:18 +0000 (10:40 +0000)]
Speed up the xFree() method of the mem6.c allocator by storing the offset from the pointer to the start of its chunk in a header field. (CVS 5475)
FossilOrigin-Name:
0de54891d4901dec929459d27004efe87106ffa2
danielk1977 [Fri, 25 Jul 2008 09:24:13 +0000 (09:24 +0000)]
Change mem6.c to use the malloc() and free() functions directly, instead of going via another sqlite3_mem_methods structure. (CVS 5474)
FossilOrigin-Name:
cfa65e23df8b6f33884f533492b84dd1985db4d4
danielk1977 [Fri, 25 Jul 2008 08:48:59 +0000 (08:48 +0000)]
Updates to mem6.c allocator. (CVS 5473)
FossilOrigin-Name:
43a4cae2acea33d1a17c0037516e9c27fb7e8e91
drh [Thu, 24 Jul 2008 23:34:07 +0000 (23:34 +0000)]
Reduce the size of the parser allocation. Add additional instrumentation
to mem2. speed1*.test uses scratch malloc. (CVS 5472)
FossilOrigin-Name:
599a9dea8fc97d0e7f09e67c9954de8cc1b8748e
drh [Thu, 24 Jul 2008 17:06:48 +0000 (17:06 +0000)]
Use a new algorithm for sqlite3Strlen that is slightly slower but is more
like to work on a mixture of 32- and 64-bit systems. Ticket #3237, #3248. (CVS 5471)
FossilOrigin-Name:
cb1876d8dc102be74be98dd57ac14ee67be8e8e2
drh [Thu, 24 Jul 2008 15:50:41 +0000 (15:50 +0000)]
Update the implementation of sqlite3ResultSetOfSelect() to (hopefully) make
it clearer that malloc failures cannot possibly result in a crash.
Ticket #3247. (CVS 5470)
FossilOrigin-Name:
7455310931787ddc72d677ba6c471b67af9418a8
danielk1977 [Thu, 24 Jul 2008 10:32:30 +0000 (10:32 +0000)]
Do not run capi3.test or capi3c.test when testing memsys6. (CVS 5469)
FossilOrigin-Name:
e0a101117ca44f0cce555b5db667286729fd2ad4
danielk1977 [Thu, 24 Jul 2008 10:11:27 +0000 (10:11 +0000)]
Add a mutex to mem6.c to make it threadsafe. (CVS 5468)
FossilOrigin-Name:
9b97ce60c63c8b8afa43496a97917afd5fc26c71
danielk1977 [Thu, 24 Jul 2008 08:20:40 +0000 (08:20 +0000)]
Add mem6.c, a new allocator. More to come. (CVS 5467)
FossilOrigin-Name:
192bc192185a7b475ef9331e2a4a0dc68083ec03
drh [Wed, 23 Jul 2008 21:07:25 +0000 (21:07 +0000)]
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
drh [Wed, 23 Jul 2008 20:28:13 +0000 (20:28 +0000)]
Remove stray breakpoints from test scripts. (CVS 5465)
FossilOrigin-Name:
cb5e75dfa5c7048bd0994afac19846f70bfa7a4d
drh [Wed, 23 Jul 2008 18:25:56 +0000 (18:25 +0000)]
Clarify in the documentation that the database connection pointer to
sqlite3_next_stmt() must not be NULL. Ticket #3244. (CVS 5464)
FossilOrigin-Name:
a7d64e86e84cf16c9742e6b012a0b96d9c6b2ba1
drh [Wed, 23 Jul 2008 18:17:32 +0000 (18:17 +0000)]
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
drh [Wed, 23 Jul 2008 15:40:06 +0000 (15:40 +0000)]
Update requirements derivation information in sqlite.h.in. (CVS 5462)
FossilOrigin-Name:
d6202907e70d902e967ba116012c274154f30b8d
mihailim [Wed, 23 Jul 2008 13:42:26 +0000 (13:42 +0000)]
Quick typo fix. No changes to code. (CVS 5461)
FossilOrigin-Name:
dfa8b456630089d385f89c145ae709be85424cd7
drh [Wed, 23 Jul 2008 00:52:55 +0000 (00:52 +0000)]
Documentation updates. (CVS 5460)
FossilOrigin-Name:
fe8e9f53f4bcedf2e8a657f33eb9a0939ef74c95
shess [Tue, 22 Jul 2008 23:54:50 +0000 (23:54 +0000)]
Be a bit more susicious of invalid results from the tokenizer.
Backports check-in (4514) from fts3. (CVS 5459)
FossilOrigin-Name:
311aeb9c2b75c420a37198a93e353c72e9166747
shess [Tue, 22 Jul 2008 23:49:44 +0000 (23:49 +0000)]
Implement optimize() function.
Backports check-in (5417) from fts3. (CVS 5458)
FossilOrigin-Name:
c16900dc7603cab30f8729b25361bc88bb37ae43
shess [Tue, 22 Jul 2008 23:41:26 +0000 (23:41 +0000)]
Delete all fts2 index data the table becomes empty.
Backports check-in (5413) from fts3. (CVS 5457)
FossilOrigin-Name:
4c98179be258319f441ae4e123cf59af77e96409
shess [Tue, 22 Jul 2008 23:32:27 +0000 (23:32 +0000)]
fts2 functions for testing scripts.
Backports (5340) from fts3. (CVS 5456)
FossilOrigin-Name:
4e47394be9dfbf0f9309e55eb6c6a3a517ea2006
shess [Tue, 22 Jul 2008 23:08:40 +0000 (23:08 +0000)]
Change prefix search from O(N*M) to O(NlogM).
Backports (4599) from fts3. (CVS 5455)
FossilOrigin-Name:
3f614453d2d7c753a5963b027fe8618b50b4f6b9
shess [Tue, 22 Jul 2008 22:57:54 +0000 (22:57 +0000)]
Changes fts2 to use only sqlite3_malloc() and not system malloc.
Backports (4554) and (4555) from fts3. (CVS 5454)
FossilOrigin-Name:
ecf2dec66cb979cb7d8db3b7ce5c64cab57fe2bb
shess [Tue, 22 Jul 2008 22:20:50 +0000 (22:20 +0000)]
fts2.c buildTerms() passes -1 for nInput.
Backports (4511) from fts3. (CVS 5453)
FossilOrigin-Name:
d562515e1cdd05212674516033c64b5f5668b799
shess [Tue, 22 Jul 2008 22:15:47 +0000 (22:15 +0000)]
Cleanup the hash functions in FTS2.
Backports (4440) from fts3. (CVS 5452)
FossilOrigin-Name:
e31d2f875c13ee41742c9aaee6291662cdbbf863
drh [Tue, 22 Jul 2008 18:45:08 +0000 (18:45 +0000)]
Documentation updates. No changes to code. (CVS 5451)
FossilOrigin-Name:
e58b49779bfd4a9e88e8c6b0a929c97167b718b3
shane [Tue, 22 Jul 2008 05:32:03 +0000 (05:32 +0000)]
winGetLastError support added. Consolidated getLastErrorMsg() support. Removed some more WINCE dead code similar to instance in ticket #3232. Added error return on SystemTimeToFileTime() failure. (CVS 5450)
FossilOrigin-Name:
c0a5cf38eea80640e42c612ce6f4850c98f70638
shane [Tue, 22 Jul 2008 05:18:00 +0000 (05:18 +0000)]
Changed a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449)
FossilOrigin-Name:
16f51f9b39c46659b4be4afd7f0d8ec325469e7b
shane [Tue, 22 Jul 2008 05:15:52 +0000 (05:15 +0000)]
Added comment on floating point precision compile option for MSVC. (CVS 5448)
FossilOrigin-Name:
e20f2b8c6a13aa826703441cf340d0ee03bf9f64
shane [Tue, 22 Jul 2008 05:13:30 +0000 (05:13 +0000)]
Add assertion check for NaN support at startup. (CVS 5447)
FossilOrigin-Name:
8474cde34b3fcb99cd5908fddb8528d0db331cdf
shane [Tue, 22 Jul 2008 05:05:01 +0000 (05:05 +0000)]
"configure" support updated. Removed unused features. Added parsing of CFLAGS and CPPFLAGS to extract OMIT options to pass to lemon and mkkeywordhash. (CVS 5446)
FossilOrigin-Name:
c67aa5057deda6419e1f205118bf09957d599c15
shane [Tue, 22 Jul 2008 05:00:55 +0000 (05:00 +0000)]
flattenSubquery() needed if either SQLITE_OMIT_SUBQUERY or SQLITE_OMIT_VIEW not defined. (CVS 5445)
FossilOrigin-Name:
1ffe7a995733fe91534a3ed81d2640fd7e6ebaa6
danielk1977 [Sat, 19 Jul 2008 14:25:15 +0000 (14:25 +0000)]
Reduce the number of "#ifndef SQLITE_OMIT_AUTOVACUUM" conditions in btree.c by using the ISAUTOVACUUM macro instead. (CVS 5444)
FossilOrigin-Name:
a560c61849cb669ab03ba4a63b23369db234f329
danielk1977 [Sat, 19 Jul 2008 13:43:23 +0000 (13:43 +0000)]
To ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt.h. (CVS 5443)
FossilOrigin-Name:
d8be91e2d2737dcb0e82e6c8a6a3f4827bc98d63
danielk1977 [Sat, 19 Jul 2008 11:49:07 +0000 (11:49 +0000)]
Improve the performance of balance_nonroot() on auto-vacuum databases by reducing the number of calls to ptrmapPut(). (CVS 5442)
FossilOrigin-Name:
9992b1aecdbbc7a260f00cb6ef78b500aeab22df
drh [Fri, 18 Jul 2008 23:47:43 +0000 (23:47 +0000)]
Remove dead code from os_win.c. Ticket #3232. (CVS 5441)
FossilOrigin-Name:
5c5c1f72797e4ceb229b8e3a7c65e5f173bb9e1a
drh [Fri, 18 Jul 2008 18:56:16 +0000 (18:56 +0000)]
Use the actual size of memory allocations to update the memory status
counters. Fix the roundup() function of mem3 to be much closer to the
actual allocation size. Ticket #3226. (CVS 5440)
FossilOrigin-Name:
5c22132eb171058f30ec5b7562b8164611236748
drh [Fri, 18 Jul 2008 17:16:26 +0000 (17:16 +0000)]
Fix SQLITE_OMIT_AUTOVACUUM so that it works again. Ticket #3228. (CVS 5439)
FossilOrigin-Name:
3b2dd417f9dab3cae3ab3693629a65a2c90f00e9
drh [Fri, 18 Jul 2008 17:03:52 +0000 (17:03 +0000)]
Make sure expression spans are set correctly for "x.*" expressions in
the result set of a SELECT. Ticket #3229. (CVS 5438)
FossilOrigin-Name:
17a9984e7668be388c4042c070718a02b284a336
danielk1977 [Fri, 18 Jul 2008 09:34:57 +0000 (09:34 +0000)]
Performance improvement: reduce the number of calls to ptrmapPageno() made by ptrmapPut() and ptrmapGet(). (CVS 5437)
FossilOrigin-Name:
d807fb271340901bbf3e06de23d91132422d1408
danielk1977 [Fri, 18 Jul 2008 08:10:47 +0000 (08:10 +0000)]
Speed up sqlite3_finalize() by removing redundant code. (CVS 5436)
FossilOrigin-Name:
c94318b982e9bb5b4c743cf8d5659f9eec697366
pweilbacher [Fri, 18 Jul 2008 05:36:28 +0000 (05:36 +0000)]
Init zFullCp to prevent crashes in case DosQueryPathInfo() fails. (CVS 5435)
FossilOrigin-Name:
70685b2ae8bbb8ab4316a762e1c1cc59b8032e0b
drh [Fri, 18 Jul 2008 03:32:51 +0000 (03:32 +0000)]
The zeroPage() routine in btree.c need not actually zero the whole page,
just the header. (CVS 5434)
FossilOrigin-Name:
c69633ec6977becfbd0a72854473b7f4515fb931
drh [Fri, 18 Jul 2008 02:44:17 +0000 (02:44 +0000)]
Omit the check for cell-pointer consistency in sqlite3BtreeInitPage()
for a 2.5% performance gain. (CVS 5433)
FossilOrigin-Name:
b88087e69dffb743c5b552703e14a030349cf65b
drh [Fri, 18 Jul 2008 00:57:33 +0000 (00:57 +0000)]
Optimization to sqltie3BtreeParseCellPtr. 0.3% performance increase. (CVS 5432)
FossilOrigin-Name:
77e099ad7de84fe07dfeb4c045c769653dd13b93
drh [Thu, 17 Jul 2008 18:39:57 +0000 (18:39 +0000)]
Simplify the b-tree logic by taking advantage of the fact that all b-trees
are either intkey+leafdata or zerodata. (CVS 5431)
FossilOrigin-Name:
29d3bfd7c9a68078385354394052612bf812859b
drh [Thu, 17 Jul 2008 17:34:19 +0000 (17:34 +0000)]
Fix the test harness so that it does not try to link against
sqlite3_mutex_alloc() if compiled with -DSQLITE_THREADSAFE=0. (CVS 5430)
FossilOrigin-Name:
26a203d894edd0091ac60862956e42d22167011e
pweilbacher [Wed, 16 Jul 2008 19:30:37 +0000 (19:30 +0000)]
Get rid of the debug output, and make pre-C99 compilers happy with sqlite3_os_init() on OS/2. (CVS 5429)
FossilOrigin-Name:
08fe49f62f8a91c36ad4bb9a1d8c89806c37f600
drh [Wed, 16 Jul 2008 18:35:45 +0000 (18:35 +0000)]
Make sure the auxiliary database connection is closed after every test. (CVS 5428)
FossilOrigin-Name:
e60bb6a179c6e674db2b9362e2ccdefaa3bc17f4
drh [Wed, 16 Jul 2008 18:20:09 +0000 (18:20 +0000)]
More improvements to the 64-bit integer conversion testing in func.test. (CVS 5427)
FossilOrigin-Name:
632bb3c73443606bd2c7a5eadf0f4b8971a2b41e
danielk1977 [Wed, 16 Jul 2008 18:17:55 +0000 (18:17 +0000)]
Eliminate some unnecessary IO during a commit in full auto-vacuum mode. (CVS 5426)
FossilOrigin-Name:
1d01c02ab04f9cc0eb6a2a46a24d3ea63a617d5b
drh [Wed, 16 Jul 2008 18:04:36 +0000 (18:04 +0000)]
Fix a test in func.test so that it works on machines that lack long double. (CVS 5425)
FossilOrigin-Name:
8686959d4289dc0bf9e1c353b948f26cca5a9a65
drh [Wed, 16 Jul 2008 14:44:40 +0000 (14:44 +0000)]
Version 3.6.0 (CVS 5423)
FossilOrigin-Name:
1841aee6045b00cf4ab7b8485f5ab537d5fcd272
drh [Wed, 16 Jul 2008 14:43:34 +0000 (14:43 +0000)]
Allow the r-tree extension to be compiled as part of the amalgamation. (CVS 5424)
FossilOrigin-Name:
5c26f63e476be3e18b2acdec5dd459da3bfceefa
drh [Wed, 16 Jul 2008 14:02:32 +0000 (14:02 +0000)]
Fix a bug in the error reporting of sqlite3_table_column_metadata(). (CVS 5422)
FossilOrigin-Name:
7eba18c3a5c91be2ca2b6cf9e4e04a2791e1f7b2
drh [Wed, 16 Jul 2008 13:29:51 +0000 (13:29 +0000)]
Update the "experimental" markings on C/C++ interfaces. (CVS 5421)
FossilOrigin-Name:
96e95aa5e6c237bb9330900c2e1ac446158eca46
drh [Wed, 16 Jul 2008 12:33:23 +0000 (12:33 +0000)]
Fix a bug in the HOMEGROWN_RECURSIVE_MUTEX implementation for unix.
Ticket #3224. (CVS 5420)
FossilOrigin-Name:
9af2514c83782b4745bf48a4f82ff83111fa5535
drh [Wed, 16 Jul 2008 12:25:32 +0000 (12:25 +0000)]
Activate testing of mem3 and mem5. Fix problems found. Tickets #3223
and #3225. Other test configuration changes. (CVS 5419)
FossilOrigin-Name:
a3a7820540f6f2285e6c83cac84383fc7d60d267
pweilbacher [Tue, 15 Jul 2008 22:59:04 +0000 (22:59 +0000)]
Work around bugs in older versions of the OS/2 conversion library by trying to minimize calls to UniCreateUconvObject() etc. Use global uconv objects instead. (CVS 5418)
FossilOrigin-Name:
80e42183066b53129778ae8cbb16e495f7a82990
shess [Tue, 15 Jul 2008 21:32:07 +0000 (21:32 +0000)]
Implement optimize() function. This merges all segments in the fts
index into a single segment, including dropping delete cookies. (CVS 5417)
FossilOrigin-Name:
b22e187bc2b38bd219dd0feba19b97279bd83089
drh [Tue, 15 Jul 2008 20:56:17 +0000 (20:56 +0000)]
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
drh [Tue, 15 Jul 2008 14:47:18 +0000 (14:47 +0000)]
Continuing work on improved test coverage. (CVS 5415)
FossilOrigin-Name:
c942a38e9aa80770e7e2819e51b43fa7aa854d71
drh [Tue, 15 Jul 2008 00:27:34 +0000 (00:27 +0000)]
Increased test coverage. (CVS 5414)
FossilOrigin-Name:
7cf91e08c08ce515c24c738c7d079f5b81eebee6
shess [Mon, 14 Jul 2008 20:43:15 +0000 (20:43 +0000)]
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
drh [Mon, 14 Jul 2008 19:39:16 +0000 (19:39 +0000)]
Add a new test script to exercise the deadlock avoidance code in the
btree mutex logic. (CVS 5412)
FossilOrigin-Name:
7d5e1c4375599a913d23e5954fa63c10ac9d7688
drh [Mon, 14 Jul 2008 18:38:17 +0000 (18:38 +0000)]
Fix a typo in the documentation. Ticket #3219. (CVS 5411)
FossilOrigin-Name:
3dc72a46171020c62e6028d113b0e0f5ab05d159
danielk1977 [Mon, 14 Jul 2008 15:37:00 +0000 (15:37 +0000)]
Have the rtree extension publish two virtual table types: "rtree" and "rtree_i32". rtree_i32 stores coordinate data as 32-bit signed integers. rtree uses 32-bit real (floating point) values. (CVS 5410)
FossilOrigin-Name:
c060a9a6beca455bdceee9ce6ca71a7262f98a5f
drh [Mon, 14 Jul 2008 15:11:20 +0000 (15:11 +0000)]
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
drh [Mon, 14 Jul 2008 12:52:53 +0000 (12:52 +0000)]
Write sqlite3_initialize() calls in sqlite3_malloc() within
SQLITE_OMIT_AUTOINIT. Ticket #3217. (CVS 5408)
FossilOrigin-Name:
4961b0bbe8b9cf5fb27de7f2514e8ab399a00134
drh [Mon, 14 Jul 2008 12:38:20 +0000 (12:38 +0000)]
Fix a bug introduced by check-in (5406). Ticket #3216. (CVS 5407)
FossilOrigin-Name:
518a24aa3e042782fbf2e805cf080b61e58a8150
drh [Mon, 14 Jul 2008 12:30:54 +0000 (12:30 +0000)]
Work around a bug in Borland C. Ticket #3216. (CVS 5406)
FossilOrigin-Name:
2c24e50da6f6c19dee105823125157db73bdd515
drh [Mon, 14 Jul 2008 12:27:51 +0000 (12:27 +0000)]
Fix additional typos in comments within lemon. Ticket #3215. (CVS 5405)
FossilOrigin-Name:
372147699585ca4bd11100983de924f63c5cfce5
drh [Mon, 14 Jul 2008 12:21:08 +0000 (12:21 +0000)]
Fix a bug in the #line generator of lemon. Ticket #3214. (CVS 5404)
FossilOrigin-Name:
dc697c26668929c4eed5ab8cde6975125a7e66c7
drh [Sun, 13 Jul 2008 03:55:03 +0000 (03:55 +0000)]
Fix a typo in the documentation. (CVS 5403)
FossilOrigin-Name:
d618a883304d5a84540daf5e3397de677786aff8
drh [Sat, 12 Jul 2008 20:35:08 +0000 (20:35 +0000)]
Documentation updates. No changes to code. (CVS 5402)
FossilOrigin-Name:
8be28aa0f259f0b86103e4f1e7da1adfecc4305c
danielk1977 [Sat, 12 Jul 2008 15:55:54 +0000 (15:55 +0000)]
Fix the test script --binarylog option. (CVS 5401)
FossilOrigin-Name:
03e3cfc4ccab3c6441d41ade175dc041b8fa6c98
drh [Sat, 12 Jul 2008 14:52:20 +0000 (14:52 +0000)]
Remove leftover debugging commands (breakpoint and btree_breakpoint) from
test scripts. (CVS 5400)
FossilOrigin-Name:
dcb160249fa2d592ad09b8b0052102dc44a93511
drh [Fri, 11 Jul 2008 21:02:53 +0000 (21:02 +0000)]
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
drh [Fri, 11 Jul 2008 17:23:24 +0000 (17:23 +0000)]
Tweak to the ".timer" command in the CLI to help it work better with GCC. (CVS 5398)
FossilOrigin-Name:
1041deb6ae03c52ce1fb8170d11913cc0bbf3a6e
drh [Fri, 11 Jul 2008 16:39:23 +0000 (16:39 +0000)]
Added corruptA.test for testing malformed database headers. (CVS 5397)
FossilOrigin-Name:
6dcce6b9748c6148a768a4f6b69f33f70edc3993
drh [Fri, 11 Jul 2008 16:19:09 +0000 (16:19 +0000)]
Improved NaN testing for highly optimized GCC on x86.
Tickets #3202 and #3194. (CVS 5396)
FossilOrigin-Name:
a8a2fe45b21b405bb871e29540f98086b0c8f828
drh [Fri, 11 Jul 2008 16:15:17 +0000 (16:15 +0000)]
Additional test coverage for the btree module. Remove the failsafe() macro
and replace it with ALWAYS() and NEVER(). (CVS 5395)
FossilOrigin-Name:
d7e2f0d2d45574d6191c1b191c0daf5260696f27
drh [Fri, 11 Jul 2008 13:53:54 +0000 (13:53 +0000)]
Fix minor problems in the test scripts and harness. (CVS 5394)
FossilOrigin-Name:
c9ffbfe343b640051161301869698dd9f1f76cb7
drh [Fri, 11 Jul 2008 03:38:41 +0000 (03:38 +0000)]
Remove an extra zeroPage() call that was left in the previous check-in
by mistake. Ticket #3209. (CVS 5393)
FossilOrigin-Name:
c45d578e4475486dc5df1c1c0b6987d1cef39188
drh [Fri, 11 Jul 2008 03:34:09 +0000 (03:34 +0000)]
Make the btree layer robust when faced with a corrupt database that
contains duplicate entries on the freelist. Ticket #3209. (CVS 5392)
FossilOrigin-Name:
30825f74d60d8ace39bafd06814017ceefeb4fa4
drh [Fri, 11 Jul 2008 02:21:40 +0000 (02:21 +0000)]
Additional test coverage in btree.c. Added corruption tests for
the ptrmap pages of an autovacuumed database (corrupt8.test). (CVS 5391)
FossilOrigin-Name:
620b472133438607c412e0c21d2a27605a89a414
drh [Thu, 10 Jul 2008 20:41:49 +0000 (20:41 +0000)]
Fix a bug in the mutex-testing logic introduced by check-in (5389). (CVS 5390)
FossilOrigin-Name:
8fc462b6b7afe390463ea7b010fd3230d9acc358
drh [Thu, 10 Jul 2008 18:13:42 +0000 (18:13 +0000)]
Enhancements to the testing logic for malloc and mutex. Only permit one
of MEMSYS3/5 to be compiled-in at a time. Omit the SQLITE_CONFIG_MEMSYS3/5
configuration options. (CVS 5389)
FossilOrigin-Name:
ed8b2525006ae7f8cacd01b291760513fdbdff57
danielk1977 [Thu, 10 Jul 2008 17:59:12 +0000 (17:59 +0000)]
Fix a crash in flattenSubquery(). (CVS 5388)
FossilOrigin-Name:
9c8b97ef593c17740640a01a7338164d7fbe070e
danielk1977 [Thu, 10 Jul 2008 17:52:49 +0000 (17:52 +0000)]
Add the SQLITE_OPEN_NOMUTEX flag. Used for opening connections that are not protected by an internal mutex. (CVS 5387)
FossilOrigin-Name:
7e58b78712420b3bd4320192a58d89eb71eecc9c
drh [Thu, 10 Jul 2008 00:32:42 +0000 (00:32 +0000)]
Remove unused code. Test coverage enhancements. Modify the algorithm used
to select column names for VIEWs of joins so that the constructed column
names omits the underlying table names. (CVS 5386)
FossilOrigin-Name:
636cd723296a8b1709011fdd99b236ffddf3f1b0
drh [Wed, 9 Jul 2008 16:51:51 +0000 (16:51 +0000)]
Test coverage improvements on printf. (CVS 5385)
FossilOrigin-Name:
2d8f7bebf0f13f3a95f1e2163e35d43229cabfea
danielk1977 [Wed, 9 Jul 2008 14:47:21 +0000 (14:47 +0000)]
Add a test case to join.test. No code changes, no bugs found. (CVS 5384)
FossilOrigin-Name:
417aa1580abec8cc335dcb6ac36245c081a31ef8
drh [Wed, 9 Jul 2008 13:28:53 +0000 (13:28 +0000)]
Begin adding the failsafe() macro. (CVS 5383)
FossilOrigin-Name:
8aae4fe7e702b7636fba1fd609a0ca22fdcc3371
danielk1977 [Wed, 9 Jul 2008 11:49:46 +0000 (11:49 +0000)]
Coverage testing for balance_quick() and balance_deeper(). (CVS 5382)
FossilOrigin-Name:
491f8f9613d2b886acad2ab8f631a4ec61ad698d
drh [Wed, 9 Jul 2008 01:39:44 +0000 (01:39 +0000)]
Additional test coverage in select.c and expr.c. (CVS 5381)
FossilOrigin-Name:
c6cf08477cc4d622a05ad6706cb9418cf7eea432
drh [Tue, 8 Jul 2008 23:40:20 +0000 (23:40 +0000)]
Remove obsolete code from select.c, including the "affinity" parameter
to the sqlite3Select() module. (CVS 5380)
FossilOrigin-Name:
cbd3c1585b7a8f8042aa1448fe1be87de056c41a
pweilbacher [Tue, 8 Jul 2008 22:34:06 +0000 (22:34 +0000)]
Handle sqlite3_temp_directory on OS/2. (CVS 5379)
FossilOrigin-Name:
9da0b32c8c55b41cbcb4eb635c51348072101ea9
shane [Tue, 8 Jul 2008 22:28:48 +0000 (22:28 +0000)]
Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
FossilOrigin-Name:
6cdb6841ff4683e424ef394733da9c24f5602570