Commit Graph

3028 Commits

Author SHA1 Message Date
danielk1977
4b202ae2a5 Improve coverage of expr.c and btree.c slightly. (CVS 2992)
FossilOrigin-Name: cc2e8e87cfd474b4dc6833ee0c38e2cd2dd3a494
2006-01-23 05:50:58 +00:00
drh
6dc1d95dd8 Remove vestiges of the older TSD code for handling OOM exceptions.
Prepare for the release of 3.3.2. (CVS 2991)

FossilOrigin-Name: a65e85f0e01f3bca5f4e78999c10db3916824b5b
2006-01-23 00:04:54 +00:00
drh
504b69898b Performance optimization in btree.c. (CVS 2990)
FossilOrigin-Name: 3e1e6affe256a950a81ad5939b628bafb8463b42
2006-01-22 21:52:56 +00:00
drh
eda639e111 Code size reductions in select.c. (CVS 2989)
FossilOrigin-Name: 3c2eee5e1f6c7d701a6d362a04cf896d44e97fd9
2006-01-22 00:42:09 +00:00
drh
fe61378a22 Tests for the subquery flattening fix of check-in (2987). (CVS 2988)
FossilOrigin-Name: 72a067f0df5818c0fdb3b9f8af20f83bb2e1dd34
2006-01-22 00:14:39 +00:00
drh
ac83963afa Do not flatten subqueries in a join where the subquery includes a LIMIT.
Ticket #1634.  This is just an initial fix.  Many test cases need to be
added prior to closing the ticket. (CVS 2987)

FossilOrigin-Name: af18c0f431a1a6349e40249009f2ac222f8c8114
2006-01-21 22:19:54 +00:00
drh
bcdb66166e Fix a bug in os.h. How did this slip by before now? (CVS 2986)
FossilOrigin-Name: 29725de474f9aec81cea0041d9ac2df932258d01
2006-01-21 19:57:50 +00:00
danielk1977
c4da5b9f2c Fix more problems with malloc() and IO failures. (CVS 2985)
FossilOrigin-Name: 29281dea81c909b70b2d914d7061a6df8f388195
2006-01-21 12:08:54 +00:00
drh
02afc86171 More compiler warnings fixed - or in some cases comments are added to explain
that the compiler is wrong. (CVS 2984)

FossilOrigin-Name: 507653a98cbd096f836a977408e373640c7cdb8f
2006-01-20 18:10:57 +00:00
drh
24bd82c396 Fix some compiler warnings. (CVS 2983)
FossilOrigin-Name: b7bdac0afd99b8dc03749877f675a5f782120295
2006-01-20 17:56:32 +00:00
danielk1977
97a227c996 Fix another couple of IO or malloc() failure problems in a shared-cache context. (CVS 2982)
FossilOrigin-Name: 7e34163a65a5842ecc50a14a9d60601e7c9d3249
2006-01-20 16:32:04 +00:00
drh
90669c1dca Fix and test the processing of sqlite3_result_error() withing aggregate
functions.  Allow errors to come from the step function (a new
capability).  Ticket #1632. (CVS 2981)

FossilOrigin-Name: fd4a6bb1ac94d085dda247799c0a5c64aaeec046
2006-01-20 15:45:36 +00:00
danielk1977
07cb560b23 Handle some of the IO error conditions that may occur in a shared-cache context. (CVS 2980)
FossilOrigin-Name: 97491d4eb5fc24d8f5cc7605db844359ecc6a818
2006-01-20 10:55:05 +00:00
drh
f98477b846 Make sure sqlite3_thread_cleanup() does not try to allocate memory. (CVS 2979)
FossilOrigin-Name: 0208e4221a2d90b5ae0755061c345d3351a30da8
2006-01-19 17:42:50 +00:00
drh
dab97c1c8f Fix the #ifdef around sqlite3OutstandingMallocs() in test1.c. (CVS 2978)
FossilOrigin-Name: 218c6184c8edec22f9b56b3c9446d27fda9c1e00
2006-01-19 11:28:06 +00:00
danielk1977
ed4293119a Account for read-uncommitted cursors in sqlite3BtreeClearTable(). (CVS 2977)
FossilOrigin-Name: 950798326860de40926e82e10134f09e6ea86245
2006-01-19 08:43:31 +00:00
danielk1977
191c3e7db0 Fix a bug with internally saving cursors open on index tables. Also increase coverage of util.c and btree.c. (CVS 2976)
FossilOrigin-Name: a628d84d3185fb7742cc929e758bfd59c811ca0b
2006-01-19 07:18:14 +00:00
danielk1977
e7823cb591 Omit thread2.test if memory-management is enabled at compile time. (CVS 2975)
FossilOrigin-Name: df91f685cacbcb3e048eaa03260b33bbcfcb321c
2006-01-18 18:33:42 +00:00
danielk1977
76e8d1a292 Include the ThreadData structure in internal malloc() testing. Also fixes for revealed bugs. (CVS 2974)
FossilOrigin-Name: c7b9d50d0a975912776aaa2b870308652f77e1e6
2006-01-18 18:22:43 +00:00
drh
757b04ed36 Modify the sqlite3OsInMutex os-layer interface to take a single parameter
to distinguish between mutexes held by the current thread and mutexes held
by any thread.  Part of the fix for ticket #1630. (CVS 2973)

FossilOrigin-Name: e1ad9df1cf46287f2a7789275e98d28e05880e17
2006-01-18 17:25:45 +00:00
danielk1977
9e12800dec Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972)
FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
2006-01-18 16:51:35 +00:00
danielk1977
1de57847f8 Fix compilation error when neither MEMDEBUG or ENABLE_MEMORY_MANAGEMENT is enabled. (CVS 2971)
FossilOrigin-Name: 4de5c52920c94e2a29ef4b68eb8b990c63005b3d
2006-01-18 15:39:26 +00:00
danielk1977
54f0198e47 Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970)
FossilOrigin-Name: e0b022e5b2bfd272b4e25cd7a7b472206a118bbe
2006-01-18 15:25:17 +00:00
drh
332b1feaf1 Recursive mutexes in os_win.c. (CVS 2969)
FossilOrigin-Name: dd3e07cae4d0cbd4f8977e1dd11e0103e0e45b75
2006-01-18 14:20:17 +00:00
drh
a3fad6f5f3 Convert the unix driver to use a recusive mutex. Similar changes to the
windows driver are pending. (CVS 2968)

FossilOrigin-Name: 8830bbbac8e0c9243956aac42dc9f86a0bd1fa07
2006-01-18 14:06:37 +00:00
danielk1977
950f054cec Handle malloc() failures that occur in open16() and errmsg16(). (CVS 2967)
FossilOrigin-Name: 86eab9e53db8d7fecc789fe3d8cd8d7be3196fed
2006-01-18 05:51:57 +00:00
danielk1977
9a30cf653f Handle malloc() failures that occur inside create_collation() calls. (CVS 2966)
FossilOrigin-Name: 95c5903f368413019af83aa73263e0e9d1204b62
2006-01-18 04:26:07 +00:00
danielk1977
cbb8496c5e Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965)
FossilOrigin-Name: 9e2e40845d30cc150abe23ee318a721b4fe9613c
2006-01-17 16:10:13 +00:00
danielk1977
08659fee65 Fix compilation errors when building SQLITE_DEBUG defined but without SQLITE_MEMDEBUG. (CVS 2964)
FossilOrigin-Name: 62dd2427784721436737a6e8e11fc05e10f0c44d
2006-01-17 15:36:32 +00:00
danielk1977
771151b67f Various fixes that allow the malloc() failure tests to pass again. (CVS 2963)
FossilOrigin-Name: 0505405fb9ae1068b7976718efbf2aabd07592d4
2006-01-17 13:21:40 +00:00
danielk1977
3bdca9c9a5 Test suite fixes for builds that define OMIT symbols. (CVS 2962)
FossilOrigin-Name: 3a54a33dcb7e765ee3773397407e8929a8cfe1a9
2006-01-17 09:35:01 +00:00
danielk1977
ff890793fc Test file fixes for libaries compiled with various SQLITE_OMIT_ macros. (CVS 2961)
FossilOrigin-Name: c058f483a52c8043178b6329aa5e58bedf0c8277
2006-01-16 16:24:25 +00:00
danielk1977
8212defca2 Fix problems compiling with memory-management enabled. Ticket #1619. (CVS 2960)
FossilOrigin-Name: 36b03259654ffa9b14ebe1093984b29e9efbd56c
2006-01-16 15:32:23 +00:00
danielk1977
bab45c647d Fix some of the issues raised in #1615. (CVS 2959)
FossilOrigin-Name: 0d5d83bcbd65dd7ae968909acfee075185e49c38
2006-01-16 15:14:27 +00:00
danielk1977
80c43bcba1 Correctly handle malloc() failure in GenericMalloc() and GenericRealloc(). Fix for #1617. (CVS 2958)
FossilOrigin-Name: 9dfc4a880b49869e945d6a19e63fcf6dc94412ad
2006-01-16 14:29:05 +00:00
danielk1977
a96a7103b2 Run the tests in shared.test a second time using an autovacuum database. (CVS 2957)
FossilOrigin-Name: 9927522923558348a846e033b92100c0ed4ee556
2006-01-16 12:46:41 +00:00
danielk1977
efaaf57974 Clarify error handling in pager code. No functional changes. (CVS 2956)
FossilOrigin-Name: 7b48836214ea3152f46e2dffb097ae7ea14901f4
2006-01-16 11:29:19 +00:00
drh
45bfcfd3fc Version 3.3.1 (alpha) (CVS 2953)
FossilOrigin-Name: bd7c5699939fda2bb792a0e2448df064a1171769
2006-01-16 02:39:05 +00:00
drh
799fa956fa Fix the script that cross-compiles the windows DLL so that it works
correctly with the latest interface.  Ticket #1614.  Do not strip
the windows DLL.  Ticket #1474. (CVS 2954)

FossilOrigin-Name: 6591d365d4ba1263c3bc48f5ab47633fae2b2a3a
2006-01-16 02:37:51 +00:00
drh
9c4315c288 Version 3.3.1 (withdrawn - see ticket #1614) (CVS 2955)
FossilOrigin-Name: ed0f1d9086de3ffa77c9864bf880e2930ef0f96f
2006-01-16 00:04:59 +00:00
drh
3b59a5cc5f Code size reductions in the pager. (CVS 2952)
FossilOrigin-Name: c7da3aa9bdf7b788424633015000955606e93f48
2006-01-15 20:28:28 +00:00
drh
78170b2e65 Prepare for the 3.3.1 alpha release. (CVS 2951)
FossilOrigin-Name: 3e32bcf0b8ee8d7a3f26ced8d5887561eeb3e7ab
2006-01-15 18:29:17 +00:00
drh
f1a221e695 Clean up comments in os_unix.c. (CVS 2950)
FossilOrigin-Name: 2170e803ad48cffa6dddf8b591e0c085a7e66c86
2006-01-15 17:27:17 +00:00
danielk1977
819d7f4735 Correctly set the length of the string in bytes when transforming an OP_String8 to OP_String in a utf-16 vdbe program. (CVS 2949)
FossilOrigin-Name: 69f996e0fac1dc50b8c43d5fa132f79776843819
2006-01-15 14:11:48 +00:00
danielk1977
21691543a3 Fix a buffer-overrun that could occur after a malloc() failure. (CVS 2948)
FossilOrigin-Name: 662522218f967a8fb07427a9abd53334bb1400f7
2006-01-15 13:13:56 +00:00
danielk1977
b597f74af5 Rollback any open write-transaction when a shared-cache connection is closed. (CVS 2947)
FossilOrigin-Name: 1944d92b530d3bbcd31561063660de03d668af23
2006-01-15 11:39:18 +00:00
drh
3832230e25 Closing a file from the wrong thread is harmless on most systems.
(See ticket #1611)
But on systems like RedHat9 with broken fcntl() locks, it leaks file
descriptors.  That is better than the alternative of prematurely breaking
locks and causing database corruption.  Nevertheless, it would be good
if we could figure out a way to report errors when closing a file from
the wrong thread. (CVS 2946)

FossilOrigin-Name: ad8f12cad1fcd9c54478abe20050f9a953035506
2006-01-15 02:43:16 +00:00
drh
64b1bea3ba Add tests and fix bugs in the new cross-thread lock resolution code.
When an unlock fails, do not leak file descriptors (ticket #1611).
But we really ought to report SQLITE_MISUSE or some other error instead
of just returning SQLITE_OK. (CVS 2945)

FossilOrigin-Name: f68e05cb2be65fad43fac823b2a9c53b6d2e797d
2006-01-15 02:30:57 +00:00
drh
029b44bdd3 Documentation updates. Fix to date.c. But most importantly: database
connections are now allowed to change threads as long as they are not
holding a lock. (CVS 2944)

FossilOrigin-Name: 03c422ecb508dd84dfafc8b7a0b790a43f5dadda
2006-01-15 00:13:15 +00:00
danielk1977
1576cd9251 Fixes for OMIT_SUBQUERY builds: Disable where clause OR->IN optimization. Include EXISTS keyword (for new CREATE TABLE syntax). Test file fixes. (CVS 2943)
FossilOrigin-Name: 8e79a0c24a03ccf960d6ccfb7c6b9b0f7c614e9b
2006-01-14 08:02:28 +00:00
danielk1977
79f27df664 Account for multi-byte characters in ALTER TABLE code. Fix for #1609. (CVS 2942)
FossilOrigin-Name: d634f8b28abd7af4565c644bd7972b067caa0133
2006-01-13 18:06:40 +00:00
danielk1977
dedf45b260 Tweaks to make OP_Column run a fraction faster. (CVS 2941)
FossilOrigin-Name: 2d74cc22de2aa59329b1ea5c26acd6ebe46e16c2
2006-01-13 17:12:01 +00:00
danielk1977
9792eeff95 Avoid parsing an entire record header when it is not required. (CVS 2940)
FossilOrigin-Name: 0de729d9144afba144811799f65e32140c14ef8a
2006-01-13 15:58:43 +00:00
drh
a3e4d96f5d Make sure the authenticator does not try to authenticate columns in
subqueries.   Ticket #1607. (CVS 2939)

FossilOrigin-Name: 55b7dfaf4d3a6d01fffdaf1707e88bcd215d7333
2006-01-13 13:55:44 +00:00
danielk1977
327bd59216 Fix a vdbe stack overflow problem that could occur with a correlated sub-query. (CVS 2938)
FossilOrigin-Name: caa7da807d6578f7d8848978a7d3175b6ea1743b
2006-01-13 13:01:19 +00:00
danielk1977
1fef7d5d3f Remove a few duplicate variable initializations in sqlite3BtreeCursor(). (CVS 2937)
FossilOrigin-Name: 5e46ec01ff3fe8654fc267efbb12d2d1b01c48aa
2006-01-13 11:22:07 +00:00
danielk1977
e725929686 Minor modification to restoreOrClearCursorPosition() to improve efficiency. Do not allocate the extra 8-bytes if memory-management is not enabled. (CVS 2936)
FossilOrigin-Name: dd705955429d847af85ffaf248976bcd1d861852
2006-01-13 06:33:23 +00:00
drh
777e4c43f2 Additional speed enhancements in btree.c. (CVS 2935)
FossilOrigin-Name: 48b550ce2ea43c7c1c59cd43d0008ba18fc0215b
2006-01-13 04:31:58 +00:00
drh
366fda6e60 Small performance improvement on sqlite3BtreeMoveto. (CVS 2934)
FossilOrigin-Name: c780152f3cff9c0a13d231935ae3c2e2d28b4460
2006-01-13 02:35:09 +00:00
drh
d508e7f1a1 Add a high-speed version of sqlite3GetVarint32 to vdbe.c for a 3% performance
gain. (CVS 2933)

FossilOrigin-Name: a64e8251a606fb2c298d7d804f3964a9155c73c5
2006-01-13 01:48:59 +00:00
drh
83330ed8ce Add tests to make sure "PRAGMA table_info" works using sqlite3_prepare16.
Ticket #1606. (CVS 2932)

FossilOrigin-Name: ace8ba817766f9da270cd7f06b68cc537768a8be
2006-01-13 01:25:05 +00:00
drh
24b010fad1 Terminate the va_start in the getDigits function of date.c. (CVS 2931)
FossilOrigin-Name: 94eac140f2363c7c3df68fa6f46728abfbfee1e6
2006-01-13 01:17:21 +00:00
drh
a97fdd3bfc Add support for the TOTAL() aggregate function - works like SUM() except
that it returns 0 instead of NULL when presented with an empty list. (CVS 2930)

FossilOrigin-Name: a7f528ff3446d50b280fb0b85063879e3ac5751a
2006-01-12 22:17:50 +00:00
drh
0e6082eb83 Performance boost in sqlite3VdbeRecordCompare. (CVS 2929)
FossilOrigin-Name: 14c423075bcebf42a3f4e24838bc865cfb90afda
2006-01-12 20:28:35 +00:00
drh
f1f6c587eb Automatically cast BLOBs to strings prior to handing them over to
functions like LIKE that want strings.  Ticket #1605. (CVS 2928)

FossilOrigin-Name: 730ddb0b74ed23c916dabd7ce893bd6bc55f3549
2006-01-12 19:42:41 +00:00
drh
8079a0d3f5 Cache the encoding value inside VdbeExec. (CVS 2927)
FossilOrigin-Name: 6d2a816ede8d17b993a21e418cf25edd103334de
2006-01-12 17:20:50 +00:00
drh
d172f86fe2 Additional performance improvements in sqlite3BtreeMoveto. (CVS 2926)
FossilOrigin-Name: 52b3be96b6e96994ec6fbcc67bf355cd05f61730
2006-01-12 15:01:15 +00:00
drh
b562f0ba96 BtreeMoveto optimization goes about 1.5% faster. (CVS 2925)
FossilOrigin-Name: 4e4a650484a39cac43386d8488ff42a8a0cc2820
2006-01-12 14:30:19 +00:00
drh
4b494d65a7 About a 2.5% speed improvement by reducing the number of sqlite3ThreadData
calls in the parser. (CVS 2924)

FossilOrigin-Name: 0caa1994770142d6ca15284a26bad3879b07b15a
2006-01-12 12:43:36 +00:00
drh
f06c59a3e5 Mark the end of the return codes in the sqlite3.h.in template file. (CVS 2923)
FossilOrigin-Name: 19b848d99f215914454422edc0ce72422de0774e
2006-01-12 02:50:09 +00:00
drh
e321c29a7b Add the legacy_file_format pragma. (CVS 2922)
FossilOrigin-Name: b2dbd1a5b7f5a70049f25755f07b9c4c5116549b
2006-01-12 01:56:43 +00:00
drh
70ff98ab74 Improve performance by about 10% by avoiding excess calls to get
the thread-specific data. (CVS 2921)

FossilOrigin-Name: a8c74febec11eb689ca9f6b454f8c8bbadfc49d7
2006-01-12 01:25:18 +00:00
drh
b4bc7057e5 Testing of the automatic TSD deallocation logic. The sqlite3_thread_cleanup()
API is documented.  This should close ticket #1601. (CVS 2920)

FossilOrigin-Name: fb518b0ce4ddd4aaca5cccf61e651f173e735119
2006-01-11 23:40:33 +00:00
drh
6f7adc8a80 Automatically deallocate thread-specific data when it is no longer
being used.  Ticket #1601.  Also implemented the suggestion of
ticket #1603. Memory management is now off by default at compile-time.
The sqlite3_enable_memory_management() API has been removed. (CVS 2919)

FossilOrigin-Name: 5d9c6aa964305c3f36741ff0058da5b5f3ce0d24
2006-01-11 21:41:20 +00:00
danielk1977
0203bde908 Ensure the database attached as part of VACUUM can be detached successfully after a malloc() failure. (CVS 2918)
FossilOrigin-Name: 8c26893c65574b0667bb84bde3ca49751079cc8d
2006-01-11 16:10:20 +00:00
danielk1977
b82e7edae9 Fix bugs caused by assuming that shared-schemas are initialized. (CVS 2917)
FossilOrigin-Name: 3970eb875d1830d35b3a70a7583a8ab6b238cad6
2006-01-11 14:09:31 +00:00
danielk1977
003437a0a7 Fix typo noted by #1599. (CVS 2916)
FossilOrigin-Name: 1b368c7c5ca7974e0975dc4e3c931680c9e8df1f
2006-01-11 05:49:50 +00:00
drh
08ec23324f Version 3.3.0 (alpha) (CVS 2915)
FossilOrigin-Name: 59a7a56c1bba84b5c60a2f3e25bf51d933075aaf
2006-01-11 01:28:30 +00:00
drh
1440fc0c58 Add new APIs to the sqlite3.def file. (CVS 2914)
FossilOrigin-Name: 9258931a80e0dac78b015e1e200d1291a6177320
2006-01-11 01:28:11 +00:00
drh
7a91dd8602 Prepare for the release of version 3.3.0. (CVS 2913)
FossilOrigin-Name: 302993ae16750c56fd1418531ba716cff53d2df0
2006-01-11 01:08:34 +00:00
drh
36d54c1ba5 Fix a typo in the FAQ. (CVS 2912)
FossilOrigin-Name: 5be03a361d9292ccdf311372be6add29ade4dd04
2006-01-10 23:00:41 +00:00
drh
02d9eca53f Fix bug in the server1 test script. (CVS 2911)
FossilOrigin-Name: 25db22b6711590214f4f953e6e3cf6be2d7451db
2006-01-10 20:36:39 +00:00
drh
97b5748487 Combine multiple small calls to sqlite3OsWrite into one larger call. (CVS 2910)
FossilOrigin-Name: e6e6750c24dc8b87be96bdc0e93254d7f0700543
2006-01-10 20:32:32 +00:00
drh
fe0f75bb1f Improved comments on the server and asynchronous I/O demo programs. (CVS 2909)
FossilOrigin-Name: c0f47ccbc915f20d56f393383c21b4026785e6a5
2006-01-10 20:01:18 +00:00
drh
ee32e0aa27 More pedantic changes to comments in VDBE. No changes to code. Ticket #1596. (CVS 2908)
FossilOrigin-Name: 1cf6855430352ffbf921a977186345d7272fe272
2006-01-10 19:45:49 +00:00
drh
3c899a60c4 Fix opcode name in comments. No changes to code. (CVS 2907)
FossilOrigin-Name: 511ac9db12ad84bb02d84568b75fc65cef661e88
2006-01-10 18:44:08 +00:00
danielk1977
da71798256 Initialize variables in malloc3.test (was causing error in all.test). (CVS 2906)
FossilOrigin-Name: 16a8172a617d4ff739660ae67d3e381b2dea68e6
2006-01-10 18:27:41 +00:00
danielk1977
3487e679cf Typos in new documentation. (CVS 2905)
FossilOrigin-Name: b5bedb2a9f349b32acbd0356c61cdc30fd474eca
2006-01-10 18:08:09 +00:00
danielk1977
b3bf556ef6 Store collation sequence names instead of pointers in sharable schema data structures. (CVS 2904)
FossilOrigin-Name: 0f0213be4d064b3d24e31ff93ec16f6862003d26
2006-01-10 17:58:23 +00:00
drh
d2d4a6b00d Updates to the C-API documentation. Change the parameter type of
sqlite3_soft_heap_limit to integer. (CVS 2903)

FossilOrigin-Name: bdd35e9fbb651fe7a1ed5042923c9529c3c5ab7c
2006-01-10 15:18:27 +00:00
drh
7c1817e255 Move the implementation of sqlite3_enable_shared_cache from btree.c to main.c. (CVS 2902)
FossilOrigin-Name: 4f2ec95283f1ae0a28b2f9ce0afc5a7203de87fb
2006-01-10 13:58:48 +00:00
danielk1977
eecfb3eebc Fix a problem with shared-schemas and temp triggers. (CVS 2901)
FossilOrigin-Name: 9c18a1ce1e7ff6a02eb0f9ce344cab9660819740
2006-01-10 12:31:39 +00:00
danielk1977
311019be0b If compiled with memory-debugging, write garbage to memory when it is freed. Fix for #1594. (CVS 2900)
FossilOrigin-Name: bd02a6faefa3602d0b93d54bc57809a2222d5903
2006-01-10 07:14:23 +00:00
drh
bdd6da23cd Enable shared cache on the server demonstration. (CVS 2899)
FossilOrigin-Name: 8719f880a395db8be65ea45615d8e55985306f1e
2006-01-10 02:30:33 +00:00
drh
7910e76ddb Add the first simple tests of server mode. Get the Makefile generated from
the configure script working again. (CVS 2898)

FossilOrigin-Name: 66f84068f3c7c0963ce88f84fc0ba6775f64cd19
2006-01-09 23:50:11 +00:00
drh
29c636bc12 Added database server example code (untested). Fixed serveral bugs including
the autovacuum compile problem described by ticket #1593. (CVS 2897)

FossilOrigin-Name: ec332d8822d1ac9673581a26ab2a2fce5f2554a3
2006-01-09 23:40:25 +00:00
drh
2366940d8f Reinstate the asynchronous I/O demonstration code and tests with minor
changes. (CVS 2896)

FossilOrigin-Name: eeebc640aaeeb0ab7f730d854069f159aa41968b
2006-01-09 17:29:52 +00:00
danielk1977
14db26653a Fix some errors to do with attached databases and text encodings in shared-cache mode. (CVS 2895)
FossilOrigin-Name: 3e75d3d5efebc0dfff1adfc13d85e85ec39db3eb
2006-01-09 16:12:04 +00:00
danielk1977
52622828ce Add a runtime interface to enable memory-management features. (CVS 2894)
FossilOrigin-Name: 44f8e3139aa3ad3fcce9028565dd9ad23bbe62a2
2006-01-09 09:59:49 +00:00
danielk1977
e501b89ada Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893)
FossilOrigin-Name: 82b81f69c78cb3f54634d9aea4f6a838474dc5e5
2006-01-09 06:29:47 +00:00
danielk1977
2e94d4dea5 Minor changes so that OMIT_SHARED_CACHE works. (CVS 2892)
FossilOrigin-Name: cc963f8cfc6c704c645c627bffb8df21dfebffc6
2006-01-09 05:36:27 +00:00
drh
5739103e98 Fix timezone parsing in the date/time functions. Ticket #1587. (CVS 2891)
FossilOrigin-Name: 94c87b70161d4d44fbf1602fc2baae22dca08759
2006-01-09 00:18:02 +00:00
drh
3a12924798 Remove benign reference to an uninitialized variable. Ticket #1590. (CVS 2890)
FossilOrigin-Name: 32998fe8ed38a79eb79d8b13051b47bf74661e3c
2006-01-09 00:09:01 +00:00
drh
15007a99e4 Get LIMIT and OFFSET working again for negative limits and offsets.
Ticket #1586. (CVS 2889)

FossilOrigin-Name: b2ac0be07ec76ab23b7e5b800c0bc62d0bc97f4b
2006-01-08 18:10:17 +00:00
drh
6f58f7069b Remove some cruft from the VDBE. Bring comments up to date. (CVS 2888)
FossilOrigin-Name: 41aef6496a10c81e1095408dc8f69740d6ea7627
2006-01-08 05:26:41 +00:00
drh
d59ba6ce61 Reduce memory requirements for ORDER BY combined with LIMIT. Ticket #1586. (CVS 2887)
FossilOrigin-Name: 55e703ecac6e03d7364c2d919ba18d7293d6b7f6
2006-01-08 05:02:54 +00:00
drh
76873ab240 Invalidate all VDBE cursor row caches in between calls to sqlite3_step()
since the emphemeral content that those caches point to might change if
the statement is READ UNCOMMITTED. (CVS 2886)

FossilOrigin-Name: 0ae461313c1642a49a9f6cda608c42c7c0053ce4
2006-01-07 18:48:26 +00:00
drh
4bddfd2f6e Continued progress toward a working wince backend. (CVS 2885)
FossilOrigin-Name: 15fda14ee0c0524d3064d767f48edd689c090d95
2006-01-07 18:14:48 +00:00
drh
403110c84a Make sure there is no ephemeral data on the stack before returning from
an sqlite3_step() call.  Otherwise, if the statement is in READ UNCOMMITTED
mode then the data might be deleted or changed out from under us. (CVS 2884)

FossilOrigin-Name: 19f71a6d1982e986f5436bff71ef38b1bcc2e11d
2006-01-07 18:10:32 +00:00
drh
3f4590226f Enable redefinable I/O if the SQLITE_ENABLE_REDEF_IO macro exists. (CVS 2883)
FossilOrigin-Name: e170e15766389e978991b42a0d2ec303162aaad6
2006-01-07 16:06:07 +00:00
danielk1977
dba99bcc96 Fix some memory leaks caused by obscure syntax errors in SQL. (CVS 2882)
FossilOrigin-Name: 6593199a4d0d0e1f9cc2f48d30327b1c03a8170e
2006-01-07 14:02:26 +00:00
danielk1977
c00da10565 In shared-cache mode, lock all required tables before beginning to execute the body of the statement program. (CVS 2881)
FossilOrigin-Name: 23b587b05b89727248805e6d9e5141e018cf2152
2006-01-07 13:21:04 +00:00
drh
8c0ca7d27c Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880)
FossilOrigin-Name: 77ac231c0e21c09c0b612a4e72bcc863f2c95fd3
2006-01-07 04:06:54 +00:00
drh
a34c62d866 Fix bugs in test scripts that came of of sse testing. (CVS 2879)
FossilOrigin-Name: 22bf1a2ffac503020dfa78d228b561d1cf6f3894
2006-01-06 22:11:20 +00:00
drh
198bf39128 Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878)
FossilOrigin-Name: 9d71b7deaffdd7eb9ddad1f03df3e4c51c2cbd98
2006-01-06 21:52:49 +00:00
drh
9e9fe6f877 Additional changes for wince. (CVS 2877)
FossilOrigin-Name: b10343d9163263f97efb1bbc61af8307a2cfe8a4
2006-01-06 21:09:01 +00:00
drh
e2a926b807 More changes to support wince. (CVS 2876)
FossilOrigin-Name: f3cbd995c845dc19596678d05844e0691b63da54
2006-01-06 20:40:28 +00:00
drh
602bbd3245 Additional efforts to get it to build on WinCE. (CVS 2875)
FossilOrigin-Name: b45c076f0d5f7c863287ccb5703c492e1010a99d
2006-01-06 20:22:29 +00:00
drh
cc78fea4b9 A first attempt at adding native support for WinCE. (CVS 2874)
FossilOrigin-Name: 434405678778e7ce6e0bdec02fa7049a1ca68d27
2006-01-06 16:17:05 +00:00
danielk1977
aaf22685d7 Fix a crash caused by adding a trigger to a shared-schema and then deleting it
using a different connection. (CVS 2873)

FossilOrigin-Name: 19f93e135f1ff4f987d14afe74b955e119904017
2006-01-06 15:03:48 +00:00
drh
0739723d76 Fix an alignment problem in the sqlite3OsRandomSeed(). Ticket #1584. (CVS 2872)
FossilOrigin-Name: 373b56f0048fd6a1946a97acfcca40fd12f7d572
2006-01-06 14:46:46 +00:00
drh
7887942e38 Remove vestigial file: crashtest1.c (CVS 2871)
FossilOrigin-Name: 6676c7031d81202ad702142ecf9e64f14d94d968
2006-01-06 14:41:54 +00:00
drh
66560adab3 Change the OS interface layer to use traditional direct function call
implementations instead of the more complicated virtual function table.
Omit the asynchronous I/O demo. (CVS 2870)

FossilOrigin-Name: 2529c2e11fa1d345ec61f647e4f6fae20a7133d6
2006-01-06 14:32:19 +00:00
danielk1977
c87d34d05d Add some simple tests and fixes for shared-schema locking. (CVS 2869)
FossilOrigin-Name: d054bed15aee3edef93cc84c83be443cdd489946
2006-01-06 13:00:28 +00:00
drh
824d7c1893 Back out the addition of the new header file - bad idea. (CVS 2868)
FossilOrigin-Name: 0c4c45c36fe1c3c2980155ef5126a2ad53100d65
2006-01-06 12:03:19 +00:00
danielk1977
de0fe3e4c3 Fix a bug that was emptying shared-schema tables during an ATTACH. (CVS 2867)
FossilOrigin-Name: 752a2754879becc32da9f9b910f3330f8c7145e4
2006-01-06 06:33:12 +00:00
drh
e19d594067 Enable async testing. Modify the OS layer interface. Add the sqlite3_aux.h include file. Add tests for boolean value representation in file format 4. (CVS 2866)
FossilOrigin-Name: b8332aa8b83142898779972b3dff13cbe3c78623
2006-01-06 03:29:56 +00:00
drh
47ded16fdc Formatting changes in btree.c. (CVS 2865)
FossilOrigin-Name: f1922da2d20c5091678e47cc4f43a2a9d141a3b1
2006-01-06 01:42:58 +00:00
drh
3fbb0b1a3b Windows implementation of the thread-specific data interface. (CVS 2864)
FossilOrigin-Name: 3aa8befedf4534cd100a7309997a4ad2ba08af20
2006-01-06 00:36:00 +00:00
drh
d78901da51 Disable the update hook for the truncation optimization used by DELETE. (CVS 2863)
FossilOrigin-Name: 448b3b9dede724749df0004ca39c649951f1f2ca
2006-01-05 23:42:50 +00:00
drh
6aafc29b5f Move TCL interface for sqlite3_release_memory() and sqlite3_soft_heap_limit()
out of tclsqlite.c and into test1.c.  Update the TCL interface documention
to describe the "exists" method. (CVS 2862)

FossilOrigin-Name: 98194a45cc60cb9942847f773bc797fb5463bd10
2006-01-05 15:50:06 +00:00
danielk1977
ad68cb6b69 Fix for ticket #1582 (Double delete of invalid LIMIT clause Expr* applied to a UNION ALL query). (CVS 2861)
FossilOrigin-Name: 5dec3a392ba3c249bbca899c12e99c26cc1b8cdb
2006-01-05 14:22:33 +00:00
danielk1977
441b09ae55 Disable automatic invocation of sqlite3_release_memory() when a malloc() fails
in those cases where the global mutex is held. (CVS 2860)

FossilOrigin-Name: 6fdbb8b771e490f0d791326689245302c4fe18f5
2006-01-05 13:48:29 +00:00
danielk1977
da18423620 Add the shared schema/pager modifications. Very few tests so far. (CVS 2859)
FossilOrigin-Name: deeda0dc06c1595aedd8d06a0c4e88a8abf78cf7
2006-01-05 11:34:32 +00:00
drh
a6370df1e1 Bug fix in the IF NOT EXISTS logic. (CVS 2858)
FossilOrigin-Name: cb9095ac52e76926f274678ef55ebb9df4b9fcac
2006-01-04 21:40:06 +00:00
drh
446a9b825b Bug fix in the new "exists" method of the TCL interface. (CVS 2857)
FossilOrigin-Name: d0e3d466094f7b2f74ed7ebb324e5024ea8faa6f
2006-01-04 18:13:26 +00:00
drh
5af7e19bd0 Update document for CREATE INDEX IF NOT EXISTS and DROP INDEX IF EXISTS (CVS 2856)
FossilOrigin-Name: 963ba8b8f3b7b3a8bcd36b224e283cf3b86d4b1d
2006-01-04 15:58:28 +00:00
drh
4d91a701bd Add support for CREATE INDEX IF NOT EXISTS and DROP INDEX IF EXISTS. (CVS 2855)
FossilOrigin-Name: 551cdd6c309e75687abaeac5381b794cd5e4c10a
2006-01-04 15:54:36 +00:00
drh
f93339decb Always case 0 to (char*) on varargs functions. Otherwise there are problems
on 64-bit machines. (CVS 2854)

FossilOrigin-Name: 837dc77ff9f5271b7e1bb8602fc021670c7802d1
2006-01-03 15:16:26 +00:00
danielk1977
34e8494202 Add test files for the asynchronous IO concept. (CVS 2853)
FossilOrigin-Name: 7c3492c8404c39c808af4429b4fcdb7413539ab3
2006-01-03 13:39:25 +00:00
drh
dddca28608 The sqlite TCL command no longer returns the hex address of the sqlite3*
structure.  Instead there is a new command in testfixture to find that
information. (CVS 2852)

FossilOrigin-Name: 70b228575e045bc56013aab945334203ceb31d8b
2006-01-03 00:33:50 +00:00
drh
88f474a938 Add the xInMutex method to the os-layer switch for testing whether or not
mutexes are used correctly. (CVS 2851)

FossilOrigin-Name: a582b159595ff8d31c81e9b3044711d6590d3f0e
2006-01-02 20:00:12 +00:00
drh
35a5965a17 Additional tests for descending indices. Comment changes. (CVS 2850)
FossilOrigin-Name: 2622c5242b0cba5bc19f190a7c209ab9ed8f57e0
2006-01-02 18:24:40 +00:00
danielk1977
5118b918d8 Repair typo in previous commit. (CVS 2849)
FossilOrigin-Name: a4aa0911bccd0627cd6d926c5bdd2a4f4b8f6cc5
2005-12-30 16:31:53 +00:00
danielk1977
aef0bf6429 Add part of the btree layer of the shared-cache feature. (CVS 2848)
FossilOrigin-Name: 2afcad990190af97d1ad0010f211a5ca8f0fd745
2005-12-30 16:28:01 +00:00
drh
faa59554c3 Add support for CREATE TABLE IF NOT EXISTS. (CVS 2847)
FossilOrigin-Name: 0bd9e35fd22946640f4fb1c1874922ae096916f7
2005-12-29 23:33:54 +00:00
drh
72e5c6dbb9 Bug fix in codec processing. (CVS 2846)
FossilOrigin-Name: a88580bce045ee1c11cc6fd986ee7bab043ded4f
2005-12-29 23:04:01 +00:00
drh
d946db0064 Add serial-types 8 and 9 for integer constants of 0 and 1 that use zero
bytes of storage.  Make the default file format 4.  Add the
SQLITE_DEFAULT_FILE_FORMAT compile-time option to lower the default
file format number so that newly created databases can be read and
written by older versions of SQLite. (CVS 2845)

FossilOrigin-Name: ae301db8a61a74bc72f67f5766811d89a3b3ec72
2005-12-29 19:23:06 +00:00
drh
aa81608eb0 Fix for ticket #1575. (CVS 2844)
FossilOrigin-Name: 1586921b54da5ba3bea80e8e656a11d32996ab3a
2005-12-29 12:53:09 +00:00
drh
a073384f08 Add support for DROP TABLE IF EXISTS. (CVS 2843)
FossilOrigin-Name: a4c547de83d8b27f06a58f9e530a7c983ec1dc3a
2005-12-29 01:11:36 +00:00