0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-07 08:59:03 +00:00

Commit Graph

  • 19df335841 Fix typos in the amalgamation builder script. (CVS 3786) drh 2007-04-01 01:57:41 +00:00
  • dd92431a03 Improvements to the output of the speed tests. (CVS 3785) drh 2007-03-31 22:34:16 +00:00
  • e1521f4c05 Remove unreachable code from util.c. (CVS 3784) drh 2007-03-31 22:33:48 +00:00
  • 98495b4a91 Add the amalgamation generator to the makefile. (CVS 3783) drh 2007-03-31 22:29:05 +00:00
  • 970f72478a Fix the amalgamation so that it can be compiled with REDEF_IO enabled. (CVS 3782) drh 2007-03-31 16:29:06 +00:00
  • 38def05454 Increase test coverage by statically defining SQLITE_BIGENDIAN and related macros for ix86 platforms. Still a run-time test for other architectures. Need to add additional cases to cover other popular processors. (CVS 3781) drh 2007-03-31 15:27:59 +00:00
  • b3738b6c85 Improved test coverage for printf.c. (CVS 3780) drh 2007-03-31 15:02:49 +00:00
  • bd36ba69b0 The XFER optimization works if the target table lacks an integer primary key and is not empty as long as it has no indices. It always has and continues to work if the target table was empty. (CVS 3779) drh 2007-03-31 13:00:26 +00:00
  • 393f068912 More coverage for pager.c. (CVS 3778) danielk1977 2007-03-31 10:00:48 +00:00
  • 93553ad05b Fix a long-standing memory leak in the hash table. The leak only appears following a malloc failure of a hash that copies its keys, which rarely happens and so we have not previously noticed it. (CVS 3777) drh 2007-03-31 03:59:23 +00:00
  • bf700f3d3d Fix a large memory leak in the btree layer that occurs following an I/O error when in shared cache mode. (CVS 3776) drh 2007-03-31 02:36:44 +00:00
  • b63a53dcf7 Fix memory leaks in WHERE clause processing and in TRIGGER parsing. (CVS 3775) drh 2007-03-31 01:34:44 +00:00
  • 331e8d6216 Remove vestiges of SQLITE_PROTOCOL from the test scripts. (CVS 3774) drh 2007-03-30 20:46:13 +00:00
  • 4f0ee686c5 Remove vestiges of the SQLITE_PROTOCOL error. (CVS 3773) drh 2007-03-30 20:43:40 +00:00
  • 0e3a6f3f53 Fix a memory leak that occurs after a malloc failure in trigger parsing. (CVS 3772) drh 2007-03-30 20:40:34 +00:00
  • c416ba97bf Fix a memory leak in multi-database commit. Also enhance a comment that explains why a particular valgrind error is harmless. (CVS 3771) drh 2007-03-30 18:42:55 +00:00
  • 3546947df3 Coverage testing for a few lines in pager.c. (CVS 3770) danielk1977 2007-03-30 18:21:52 +00:00
  • 1abd422d99 Remove asserts on the existing of journal files in pager - asserts that are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769) drh 2007-03-30 17:18:50 +00:00
  • a817e42a21 Get the memleak.test script working again after recent changes. (CVS 3768) drh 2007-03-30 17:17:51 +00:00
  • 95b289b684 Coverage tests for some pragmas. (CVS 3767) danielk1977 2007-03-30 17:11:12 +00:00
  • 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) drh 2007-03-30 16:01:55 +00:00
  • 9bb8aecc35 Coverage improvements for where.c. (CVS 3765) danielk1977 2007-03-30 14:56:34 +00:00
  • 780b1d9416 Coverage improvements for where.c. (CVS 3764) danielk1977 2007-03-30 14:56:34 +00:00
  • 3cdd7d37c6 Tease apart the two phases of pager commit. (CVS 3763) drh 2007-03-30 14:46:01 +00:00
  • 80e35f4640 Refactoring the btree and pager routines into distinct two-phase commit routines. We've always done a two-phase commit - this change is just making that more apparent in the code. (CVS 3762) drh 2007-03-30 14:06:34 +00:00
  • b601861cc3 Make yypMinor available to the stack overflow callbacks in lemon generated parsers. This does not effect SQLite. (CVS 3761) drh 2007-03-30 13:35:05 +00:00
  • 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) drh 2007-03-30 13:01:32 +00:00
  • a16313e505 Move the sqlite3_temp_directory global variable out of the OS porting layer and into main.c so that it is more accessible to non-standard OS porting layers. (CVS 3759) drh 2007-03-30 11:29:32 +00:00
  • 3c024d6973 Remove the anonymous union from the sqlite3_value structure since some compilers are unable to deal with it. (CVS 3758) drh 2007-03-30 11:23:45 +00:00
  • 6e34599b33 Comment changes in btree.c and added a missing "else" in pragma.c. (CVS 3757) drh 2007-03-30 11:12:08 +00:00
  • 935ed5eafd Test coverage a few extra lines in where.c. (CVS 3756) danielk1977 2007-03-30 09:13:13 +00:00
  • b5584c0c69 Extra test cases to improve coverage of main.c. (CVS 3755) danielk1977 2007-03-30 07:10:50 +00:00
  • e2396a1090 Assume any return code from fcntl() other than -1 is success. Formerly we only assumed that 0 was success. Ticket #2173. (CVS 3754) drh 2007-03-29 20:19:58 +00:00
  • 19c9e5694c Fix to token destructors in Lemon. This does not impact SQLite. Ticket #2175. (CVS 3753) drh 2007-03-29 20:13:53 +00:00
  • a92993ca13 Add the sqlite3_clear_bindings() API to the loadable extension interface. Ticket #2135. (CVS 3752) drh 2007-03-29 18:46:00 +00:00
  • 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) shess 2007-03-29 18:41:03 +00:00
  • 3ceeb75680 Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make the new OS-layer interface routine for finding sector size optional. (CVS 3750) drh 2007-03-29 18:19:52 +00:00
  • 2ecad3b443 Make sure the strftime() date conversions put in leading zeros correctly. Ticket #2276. (CVS 3749) drh 2007-03-29 17:57:21 +00:00
  • 7152de8dd2 Avoid calling OsDelete() on journal files when they are opened for temporary databases. Fix for #2255. (CVS 3748) danielk1977 2007-03-29 17:28:14 +00:00
  • 69b637b56b Add a couple of test cases to improve coverage testing. (CVS 3747) danielk1977 2007-03-29 17:07:52 +00:00
  • 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) shess 2007-03-29 16:30:38 +00:00
  • ae7fc49def Assume the malloc-failed flag cannot already be set when calling sqlite3_errmsg(16)(). (CVS 3745) danielk1977 2007-03-29 15:00:52 +00:00
  • 42242ded5e Fix a bug in XFER optimization introduced by check-in (3736). (CVS 3744) drh 2007-03-29 13:35:35 +00:00
  • 8c8eba1087 Explicitly test some error cases that up until now have not been checked. (CVS 3743) danielk1977 2007-03-29 12:24:16 +00:00
  • a713f2c331 Explicitly test some error cases that up until now have not been checked. (CVS 3742) danielk1977 2007-03-29 12:19:11 +00:00
  • e4d9081307 Change BtreeMoveto so that it can be biased to the right or to the center. Use a right bias when appending and a center bias when searching. This gives about a 15% reduction in calls to sqlite3VdbeRecordCompare. (CVS 3741) drh 2007-03-29 05:51:49 +00:00
  • f1d68b3096 Bias the b-tree binary search toward the high end. The common case is to append data and this heuristic makes append run much faster because there are fewer comparisons. (CVS 3740) drh 2007-03-29 04:43:26 +00:00
  • b7bac72350 Get LEMON working again when YYSTACKDEPTH is greater than zero. (CVS 3739) drh 2007-03-29 02:26:45 +00:00
  • b19fd012b0 Lemon change: compile the resulting parser with -DYYSTACKDEPTH=0 or set the "%stack_size" parameter to 0 in the grammar and the parser stack will be dynamically allocated using realloc() and free(). The default behavior is to have a finite depth stack. (CVS 3738) drh 2007-03-29 01:44:45 +00:00
  • 7fc2f41bef Patch so the the code compiles with -DSQLITE_OMIT_CHECK=1. (CVS 3737) drh 2007-03-29 00:08:24 +00:00
  • 95bad4c751 Improvements to the XFER Optimization of the INSERT statement. (CVS 3736) drh 2007-03-28 18:04:10 +00:00
  • 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) drh 2007-03-28 14:30:06 +00:00
  • 930cc5864e Update comments in sqlite3.h. No changes to code. (CVS 3734) drh 2007-03-28 13:07:40 +00:00
  • 600e46a021 Fix an memory allocation error revealed by malloc3.test. (CVS 3733) drh 2007-03-28 01:59:33 +00:00
  • 56424db419 The SQLITE_ENABLE_LOAD_EXTENSION macro enables the load_extension() SQL function by default without having to invoke sqlite3_enable_load_extension() first. (CVS 3732) drh 2007-03-27 22:24:11 +00:00
  • 3262cb24ff Fix the prototype of the CodecAttach function in attach.c. (CVS 3731) drh 2007-03-27 21:47:06 +00:00
  • 3dedc1985e Remove a c++ comment in pager.c. (CVS 3730) danielk1977 2007-03-27 17:37:31 +00:00
  • 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) danielk1977 2007-03-27 16:19:51 +00:00
  • 8ef6eff4a5 Updates to the VACUUM documentation. Ticket #2257. (CVS 3728) drh 2007-03-27 15:00:30 +00:00
  • fdbcdee5ff The -DSQLITE_OMIT_ATTACH=1 option now omits both the ATTACH and VACUUM commands. Ticket #2268. The regression test suite depends on both of these commands and will not run if compiled with this option. (CVS 3727) drh 2007-03-27 14:44:50 +00:00
  • a4124a06cc Fix off-by-one errors in the header comments of btree.c. Ticket #2272. (CVS 3726) drh 2007-03-27 14:05:22 +00:00
  • cf64372910 More strict aliasing fixes. The single source file library now runs successfully with -fstrict-alias. (CVS 3725) drh 2007-03-27 13:36:37 +00:00
  • e2330c8608 Get the -DSQLITE_OMIT_XFER_OPT option working. Run speed tests on a full regression. Add the script for generating sqlite3.c. (CVS 3724) drh 2007-03-27 12:04:05 +00:00
  • 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) drh 2007-03-27 12:04:04 +00:00
  • 4f0c587819 Modify sources to that they can be combined into a single sqlite3.c source file. Eliminate all type-pruned pointer warnings. (CVS 3722) drh 2007-03-26 22:05:01 +00:00
  • 45068f4b5c Set the same random seed for the speed tests. (CVS 3721) drh 2007-03-26 16:30:15 +00:00
  • 341a91c672 Run some malloc() tests with exclusive-access mode. (CVS 3720) danielk1977 2007-03-26 16:13:58 +00:00
  • c7c7e623a9 Discard the pager-cache when the page-size is changed. (CVS 3719) danielk1977 2007-03-26 15:46:00 +00:00
  • e4dd73b4fa Avoid unnecessary calls to pager_unwritelock() when in exclusive-access mode. Add the speed2.test script to the test suite. (CVS 3718) drh 2007-03-26 13:48:12 +00:00
  • c5859718af Run some malloc() tests with exclusive-access mode. (CVS 3717) danielk1977 2007-03-26 12:26:27 +00:00
  • ded6f4b2fe Add some tests and fixes surrounding exclusive-access mode and the pager change-counter. (CVS 3716) danielk1977 2007-03-26 10:27:18 +00:00
  • 29e4aa0194 Add some documentation for pragma locking_mode. (CVS 3715) danielk1977 2007-03-26 08:41:12 +00:00
  • 334cdb63b0 Some fixes and test cases for exclusive access mode. (CVS 3714) danielk1977 2007-03-26 08:05:12 +00:00
  • 6d54da05ec Add the sqlite3_prepare_v2 and sqlite3_prepare16_v2 APIs to the loadable extension interface. (CVS 3713) drh 2007-03-25 19:08:46 +00:00
  • 414834686c Changes for exclusive access mode. There are still some bugs. (CVS 3712) danielk1977 2007-03-24 16:45:04 +00:00
  • e277be0545 Discard the contents of the pager-cache only when the change-counter indicates that it is stale. (CVS 3711) danielk1977 2007-03-23 18:12:06 +00:00
  • a3d4c887e0 Add a comment to the OsSectorSize() function. (CVS 3710) danielk1977 2007-03-23 10:08:38 +00:00
  • 8350a2187a In os_unix.c, make a distinction between pread() and pread64(). Add a new compile-time macro USE_PREAD64 to select the latter. (CVS 3709) drh 2007-03-22 15:22:06 +00:00
  • 73375822d4 Call sqlite3_free() instead of free() to release a buffer allocated by sqlite3_vmprintf() in test_async.c (test suite bug only). (CVS 3708) danielk1977 2007-03-22 15:20:00 +00:00
  • 13ee81fe96 Refactor PLWriter to remove owned buffer. DLCollector (Document List Collector) now handles the case where PLWriter (Position List Writer) needed a local buffer. Change to using the associated DLWriter (Document List Writer) buffer, which reduces the number of memory copies needed in doclist processing, and brings PLWriter operation in line with DLWriter operation. (CVS 3707) shess 2007-03-22 00:14:28 +00:00
  • 4607fc06f6 Refactor PLWriter in preparation for buffered-document change. Currently, PLWriter (Position List Writer) creates a locally-owned DataBuffer to write into. This is necessary to support doclist collection during tokenization, where there is no obvious buffer to write output to, but is not necessary for the other users of PLWriter. This change adds a DLCollector (Doc List Collector) structure to handle the tokenization case. shess 2007-03-20 23:52:37 +00:00
  • 3b8a05f681 Modify the interface to the pager sub-system in preparation for performing IO in blocks based on sector-size, not database page-size. (CVS 3705) danielk1977 2007-03-19 17:44:26 +00:00
  • a8553141c9 Add some test cases simulating crashes with various storage medium sector sizes. (CVS 3704) danielk1977 2007-03-19 15:04:54 +00:00
  • 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) danielk1977 2007-03-19 13:53:37 +00:00
  • fe5d71dd7f Fix a comment in btree.c (CVS 3702) drh 2007-03-19 11:54:10 +00:00
  • 4099f6e129 Changes to support medium sector sizes larger than the database page size. (CVS 3701) danielk1977 2007-03-19 11:25:20 +00:00
  • b472117c11 Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) danielk1977 2007-03-19 05:54:48 +00:00
  • 8d3921772f Add documentation of the REPLACE, TRIM, LTRIM, and RTRIM functions. (CVS 3699) drh 2007-03-17 18:22:58 +00:00
  • 309b338673 Added TRIM, LTRIM, and RTRIM functions. (CVS 3698) drh 2007-03-17 17:52:42 +00:00
  • 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) drh 2007-03-17 13:27:54 +00:00
  • 06f52cb936 Add crash2.test, for robustness testing with variable disk block size. (CVS 3696) danielk1977 2007-03-17 10:28:04 +00:00
  • 59a33f98d6 Modifications to crash-test infrastructure. (CVS 3695) danielk1977 2007-03-17 10:26:59 +00:00
  • 933bbd6c8d Combine the two very similar definitions of (crashsql) in the test scripts. (CVS 3694) danielk1977 2007-03-17 07:22:42 +00:00
  • 0d9f55a177 Out-of-memory cleanup in tokenizers. Handle NULL return from malloc/calloc/realloc appropriately, and use sizeof(var) instead of sizeof(type) to make certain that we don't get a mismatch between them as the code rots. (CVS 3693) shess 2007-03-16 18:30:54 +00:00
  • fe39319ec8 Save an if(...) clause made redundant by (3691). (CVS 3692) danielk1977 2007-03-15 15:35:28 +00:00
  • 8d848d1da3 Check for multiple calls to sqlite3FailedMalloc(). Ignore the second and subsequent calls. (CVS 3691) danielk1977 2007-03-15 15:33:31 +00:00
  • 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) drh 2007-03-15 12:51:16 +00:00
  • d5eb79eb40 Infrastructure to make simulated I/O errors persistent instead of transient. (CVS 3689) drh 2007-03-15 12:17:42 +00:00
  • b69d96d22c Catch an IO error code that was being ignored in OP_RowData. (CVS 3688) danielk1977 2007-03-15 12:05:35 +00:00
  • 3f56e6ebac Enhanced temp-file security under unix. There are no known attacks against prior versions - this check-in is just an added precaution. (CVS 3687) drh 2007-03-15 01:16:47 +00:00