0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-07 07:49:02 +00:00

Commit Graph

  • 8c0a959f35 Try to avoid reading pages when moving overflow chains to the free-list. (CVS 3886) danielk1977 2007-04-30 16:55:00 +00:00
  • b4626a3e16 Add some tests (and 2 resulting bug fixes) to incr vacuum mode. (CVS 3885) danielk1977 2007-04-28 15:47:43 +00:00
  • 8ffcadb57e Break interior-node and leaf-node readers apart in loadSegment(). Previously, the code looped until the block was a leaf node as indicated by a leading NUL. Now the code loops until it finds a block in the range of leaf nodes for this segment, then reads it using LeavesReader. This will make it easier to traverse a range of leaves when doing a prefix search. (CVS 3884) shess 2007-04-27 22:02:57 +00:00
  • d1e3a616ca Internationalize the TRIM functions. Ticket #2323. (CVS 3883) drh 2007-04-27 21:59:52 +00:00
  • ac7b2dd518 Lift code to traverse interior nodes out of loadSegment(). Refactoring towards prefix searching. (CVS 3882) shess 2007-04-27 21:24:18 +00:00
  • 1c7ebb0805 Refactor fts2 loadSegmentLeaf() in preparation for prefix-searching. Prefix-searching will want to accumulate data across multiple leaves in the segment, using LeavesReader instead of LeafReader is the first step in that direction. (CVS 3881) shess 2007-04-27 21:01:59 +00:00
  • 9310ef23e2 Make sure sqlite3_value_bytes() does not reformat the content after a call to sqlite3_value_blob(). Add documentation to explain this hazard. Add many new tests. Ticket #2321. (CVS 3880) drh 2007-04-27 17:16:20 +00:00
  • ba6d351486 Extra tests for incremental vacuum. (CVS 3879) danielk1977 2007-04-27 07:55:37 +00:00
  • e5321f0e75 Modifications to btree integrity check so that it can be run inside a transaction after an incr vacuum. (CVS 3878) danielk1977 2007-04-27 07:05:44 +00:00
  • 709cff33dc The replace() function should return NULL if the second argument is an empty string. Ticket #2324. (CVS 3877) drh 2007-04-27 01:18:02 +00:00
  • dddbcdcc68 Add largely untested code for the incremental vacuum function. (CVS 3876) danielk1977 2007-04-26 14:42:34 +00:00
  • d33d5a8978 In the pager, load the content of pages which were initialized with noContent==1 if they are subsequently requested with noContent==0. (CVS 3875) drh 2007-04-26 12:11:28 +00:00
  • 7a521cfb79 Fix segfaults that can occur if a malloc failure happens just before a built-in function calls sqlite3_value_text(). (CVS 3874) drh 2007-04-25 18:23:52 +00:00
  • 0b3d55d4f9 Disable tests in misc7 that do not work on windows due to limitations of the windows file system. (CVS 3873) drh 2007-04-25 15:42:25 +00:00
  • c9d96efd0b Version 3.3.17 (CVS 3872) drh 2007-04-25 12:07:22 +00:00
  • 2824d55a99 Fix a file descriptor leak in the exclusive2 test script. (CVS 3871) drh 2007-04-25 12:06:58 +00:00
  • cd9b721eb6 Preparing for the release of 3.3.17. (CVS 3870) drh 2007-04-25 11:42:32 +00:00
  • b556ce15ca Fix duplicate test IDs in the test suite. No changes to code. Ticket #2319. (CVS 3869) drh 2007-04-25 11:32:30 +00:00
  • e0e11e2df6 Fix a bug in the sqlite3_changes() function reported on the mailing list. (CVS 3868) drh 2007-04-25 11:28:16 +00:00
  • 1831f18c84 This fixes a missed case in check-in (3866). Do not apply patch (3866) without also applying this patch. (CVS 3867) drh 2007-04-24 17:35:59 +00:00
  • 309169a118 When the write_version flag in the database header is larger than what the library understands, make the database read-only. The old behavior was to make the database unreadable. (CVS 3866) drh 2007-04-24 17:27:51 +00:00
  • af30469d67 Get the build working with -DSQLITE_OMIT_UTF16=1. Ticket #2314. (CVS 3865) drh 2007-04-23 23:56:31 +00:00
  • 6ed34c59c5 Add the ability to turn the FTS2 module into an amalgamation. (CVS 3864) drh 2007-04-21 16:37:48 +00:00
  • cad651e022 Remove the ARRAYSIZE macro from where.c to avoid a name conflict with microsoft header files. Ticket #2311 (CVS 3863) drh 2007-04-20 12:22:01 +00:00
  • 3b2f10cd8f Fix bug in fts2 handling of OR queries. When one doclist ends before the other, the code potentially tries to read past the end of the doclist. http://www.sqlite.org/cvstrac/tktview?tn=2309 (CVS 3862) shess 2007-04-19 18:36:32 +00:00
  • 0b83fa8297 Better fix than (3860) for the same problem. (3860) could leave file-handles open in some circumstances. (CVS 3861) danielk1977 2007-04-19 14:48:37 +00:00
  • 4ea0d2e528 Fix a crash that can occur if an error happens in a virtual table xSync() function. (CVS 3860) danielk1977 2007-04-19 14:28:08 +00:00
  • 5f7b5bf419 Comment changes in the ioerr tests. No changes to code. (CVS 3859) drh 2007-04-19 12:30:54 +00:00
  • 7e29e9561c Fix a bug whereby sqlite3_prepare_v2() could return both an out-of-memory error and a valid statement handle. (CVS 3858) danielk1977 2007-04-19 11:09:01 +00:00
  • e960153ba2 Get the build working with SQLITE_OMIT_SHARED_CACHE. Ticket #2307. (CVS 3857) drh 2007-04-19 00:24:34 +00:00
  • 5ffb3ac844 Fix a && where & was intended. This is a real problem, but it would be very difficult to devise a test case where it might lead to an unexpected result. Ticket #2306. (CVS 3856) drh 2007-04-18 17:07:57 +00:00
  • 7fa5dd1a8f Better handle malloc() failures in the "echo" virtual table test module. (CVS 3855) danielk1977 2007-04-18 17:04:00 +00:00
  • 83968c44a5 The sqlite3_step() routine reports SQLITE_ERROR after a commit failure, not SQLITE_DONE. This fix only effects the legacy sqlite3_prepare() interface. It already worked correctly with sqlite3_prepare_v2(). (CVS 3854) drh 2007-04-18 16:45:24 +00:00
  • bc3d2b6ac9 Version 3.3.16 (CVS 3853) drh 2007-04-18 15:33:52 +00:00
  • 417d724069 Fix an assertion failure caused by (3851). (CVS 3852) danielk1977 2007-04-18 14:47:23 +00:00
  • 0125683288 Minor changes (mainly to assert() macros) to handle malloc failure in vtab operations. (CVS 3851) danielk1977 2007-04-18 14:24:32 +00:00
  • 0403f54a8a Bump the version number and update documents in preparation for 3.3.16. (CVS 3850) drh 2007-04-18 13:49:37 +00:00
  • 896e792463 Avoid reloading the db schema after a failed OP_VerifyCookie if the in-memory schema cookie already matches the database file. (CVS 3849) danielk1977 2007-04-17 08:32:33 +00:00
  • 5ea2df9107 Fix a memory leak introduced by (3842) associated with ticket #2296. (CVS 3848) drh 2007-04-16 17:07:55 +00:00
  • 113e545f45 Add test cases to make sure virtual tables cannot be used in shared-cache mode. (CVS 3847) danielk1977 2007-04-16 15:49:41 +00:00
  • 505a112384 Make it clear in the docs that virtual tables and shared cache do not play well together. (CVS 3846) drh 2007-04-16 15:35:23 +00:00
  • a04a34ff1a Ensure sqlite3_finalize() can be called from within the xDisconnect() method of virtual tables. (CVS 3845) danielk1977 2007-04-16 15:06:25 +00:00
  • 86a88114fa Detect database file changes using a 128-bit segment of the file header that includes the change counter. Ticket #2303. (CVS 3844) drh 2007-04-16 15:02:19 +00:00
  • 9e4e6e502f Update the whentouse.html document to mention that less bitmap memory is used for larger page sizes. (CVS 3843) drh 2007-04-14 12:04:39 +00:00
  • 94ccde58d0 Match ORDER BY terms to columns using names in compound queries. Make sure this works for subqueries, especially in the right-hand side of an IN operator. Ticket #2296. (CVS 3842) drh 2007-04-13 16:06:32 +00:00
  • d215acf1f4 Fix a bug in autovacuum introduced by (3839). (CVS 3841) drh 2007-04-13 04:01:58 +00:00
  • 6558db80c0 Additional tests designed to detect future performance regressions. (CVS 3840) drh 2007-04-13 03:23:21 +00:00
  • 538f570cd1 Fix multiple performance regressions (ticket #2298 among them) and add tests to make sure they do not come back. (CVS 3839) drh 2007-04-13 02:14:30 +00:00
  • 994c80af27 Changes toward fixes for tickets #2296 and #2291. (CVS 3838) drh 2007-04-12 21:25:01 +00:00
  • 6c1426fd14 Get the column affinities right when processing an IN operator where the right-hand side is a subquery with an ORDER BY clause. Ticket #2295. This bug has likely been present since version 3.0.0 and it has just now been noticed, so it seems to be a obscure case. (CVS 3837) drh 2007-04-12 03:54:38 +00:00
  • 694b19d86e Blind check-in of changes to fix #2294 - I have no ability to test. Gentle wince users: please test this change and if it works leave a remark on the #2294 ticket. Tnx. (CVS 3836) drh 2007-04-11 17:54:03 +00:00
  • f33c9fad35 Preliminary fix for ticket #2291. This fixes the immediate problem. But we really need to write more tests for the xfer optimization in order to look for other related problems before closing this ticket. (CVS 3835) drh 2007-04-10 18:17:55 +00:00
  • 1eb2538a33 Be careful not to use the result of sqlite3_value_blob() after changing the representation of an object. Ticket #2290. (CVS 3834) drh 2007-04-10 13:51:17 +00:00
  • 6b6ab13353 Fix crash in delete when existing row has null fields. Previous code assumed that the row had values in all columns, sigh. Fixes bug http://www.sqlite.org/cvstrac/tktview?tn=2289 . (CVS 3833) shess 2007-04-09 20:45:40 +00:00
  • 431e853715 Fix stack buffer overrun problem in the test harness. (CVS 3832) drh 2007-04-09 20:30:11 +00:00
  • a7e9c97a5a Version 3.3.15 (CVS 3831) drh 2007-04-09 13:49:33 +00:00
  • 860d3af3b6 Perparations for the release of 3.3.15. (CVS 3830) drh 2007-04-09 13:18:46 +00:00
  • f53454438a Fix an obscure pager refcnt leak that occurs following a transient I/O error. (CVS 3829) drh 2007-04-09 12:45:02 +00:00
  • 9038bb647f Have the pager call xReiniter() instead of xDestructor() to restore btree level state after rolling back a page. (CVS 3828) danielk1977 2007-04-09 11:20:54 +00:00
  • e6895112fb Work around buggy TCL implementations in the exclusive2 test file. Ticket #2287 (CVS 3827) drh 2007-04-08 16:52:22 +00:00
  • 271d8cb003 Make sure autovacuum is turned off for malloc5.test. (CVS 3826) drh 2007-04-07 17:44:27 +00:00
  • f35843b578 For filesystem databases, do not store a list of pages in the statement journal in main memory. (CVS 3825) danielk1977 2007-04-07 15:03:17 +00:00
  • 1e9daa6ab5 Changes to test scripts to support alternative configurations. (CVS 3824) drh 2007-04-06 21:42:22 +00:00
  • bb5f18d2ca Additional coverage testing. (CVS 3823) drh 2007-04-06 18:23:17 +00:00
  • 15926590ed Binary file I/O infrastructure added and used to increase test coverage for detection of corrupt database files. (CVS 3822) drh 2007-04-06 15:02:13 +00:00
  • 60218d2a0e The FOR EACH STATEMENT clause in a trigger is now a syntax error. It used to be silently ignored. STATEMENT is no longer a keyword. (CVS 3821) drh 2007-04-06 11:26:00 +00:00
  • 05f7c19a6e Test coverage improvements. Over 90% of branches are now executed in both directions. (CVS 3820) drh 2007-04-06 02:32:33 +00:00
  • 77a2a5e73c Changes to increase test coverage. (CVS 3819) drh 2007-04-06 01:04:39 +00:00
  • 8c4d3a6b42 Make sure the sqlite3BtreePrevious() routine terminates properly if the table is deleted out from under it. Ticket #2286. This bug was discovered while trying to increase test coverage from 98.5% to 99% - once again showing the value of full coverage testing. (CVS 3818) drh 2007-04-06 01:03:32 +00:00
  • bd08af4871 Fix the amalgamation so that it works with -DSQLITE_ENABLE_REDEF_IO. Change tclsqlite.c so that it can be appended to the amalgamation. Create a new amalgamation of header files for use by projects that want to redefine their own I/O interface using -DSQLITE_ENABLE_REDEF_IO. (CVS 3817) drh 2007-04-05 21:58:33 +00:00
  • 93d57531f7 Add a target to the autoconf-generated makefile for amalgamation. (CVS 3816) drh 2007-04-05 18:34:58 +00:00
  • c6ba55f4e0 New testfixture command: sqlite3_pager_refcounts. Returns a list of integers which is the pager refcount for each pager in the database. (CVS 3815) drh 2007-04-05 17:36:18 +00:00
  • e180dd9396 Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814) danielk1977 2007-04-05 17:15:52 +00:00
  • 38ec0cb263 Use the MEMDB macro instead of OMIT_MEMORYDB in pager_recycle(). (CVS 3813) danielk1977 2007-04-05 14:29:42 +00:00
  • c551edc2c3 Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812) danielk1977 2007-04-05 13:12:13 +00:00
  • 5bb16fe41b Add some assert() statements to pager.c. (CVS 3811) danielk1977 2007-04-05 11:54:42 +00:00
  • 7c4ac0c555 Improvements to coverage testing. (CVS 3810) drh 2007-04-05 11:25:58 +00:00
  • 3997b9bb6b Catch an IO error case introduced by (3808). (CVS 3809) danielk1977 2007-04-05 08:40:32 +00:00
  • 2026cefaf8 Zero cached pages located beyond the end of the file before returning them. Ticket #2285. (CVS 3808) danielk1977 2007-04-05 05:46:14 +00:00
  • 5f9c1a2cbd Test coverage improvements. (CVS 3807) drh 2007-04-04 01:27:44 +00:00
  • 3fb79c8346 Add Tcl (flush) commands to exclusive2.test, which is failing on some systems but not others. (CVS 3806) danielk1977 2007-04-03 16:13:51 +00:00
  • 3f400ea5da Fix to Makefile.in so that "make test" works. (CVS 3805) drh 2007-04-02 22:19:38 +00:00
  • bdcc276e94 Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804) drh 2007-04-02 18:06:57 +00:00
  • c94d9c776c Fix a union initializer so that it works with the Borland compiler. (CVS 3803) drh 2007-04-02 17:54:56 +00:00
  • 8d96eb0fac Add a different form of I/O tests. So far has failed to expose new bugs. (CVS 3802) danielk1977 2007-04-02 16:46:23 +00:00
  • ee2ce18189 If preprocessor macro OS_OTHER is defined, then ignore OS_UNIX, OS_WIN, and OS_OS2. This makes it easier to add proprietary backends.. (CVS 3801) drh 2007-04-02 16:45:12 +00:00
  • 8fd5bd3608 Provide a compile-time option to enable exclusive access mode by default. (CVS 3800) drh 2007-04-02 16:40:37 +00:00
  • 4cfaceb8b0 Version 3.3.14 (CVS 3799) drh 2007-04-02 15:31:48 +00:00
  • aaecb467e9 Changes to the download page. (CVS 3798) drh 2007-04-02 15:29:32 +00:00
  • 611c8caec3 Update the build scripts and the homepage in preparation for version 3.3.14. (CVS 3797) drh 2007-04-02 15:04:34 +00:00
  • aeba431fa9 Cover an extra case in sqlite3PagerMovepage(). (CVS 3796) danielk1977 2007-04-02 14:19:16 +00:00
  • cd1aa9000f Fix for #2281. This was a problem with the test-case only. (CVS 3795) danielk1977 2007-04-02 12:29:01 +00:00
  • ead8e3f45e Cover a corrupt-db case in pager.c. (CVS 3794) danielk1977 2007-04-02 12:28:27 +00:00
  • a55ca9e109 In the amalgamation, put date.c before os.c so that the time_t typedef can be correctly resolved by windows compilers. (CVS 3793) drh 2007-04-02 12:22:44 +00:00
  • 01fa4c349f If an IO error is encountered on a commit, close the journal so that it persists and can (hopefully) rollback the failed transaction later. (CVS 3792) drh 2007-04-02 11:22:22 +00:00
  • 08d31a2a6d Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791) danielk1977 2007-04-02 11:08:58 +00:00
  • 241687280b Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790) danielk1977 2007-04-02 05:07:47 +00:00
  • 3057aaaa9c Update the version number and change comments in preparation for the release of 3.3.14. (CVS 3789) drh 2007-04-02 00:53:18 +00:00
  • 61fc595fdd Fix some warnings about unused and uninitialized variables. (CVS 3788) drh 2007-04-01 23:49:51 +00:00
  • 2c547df6cf Make unix builds threadsafe by default. (CVS 3787) drh 2007-04-01 18:46:19 +00:00