0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-23 23:36:50 +00:00

Commit Graph

  • 0d24e6b876 Add comments describing upcoming changes to crash-test module (test6.c). No code changes. (CVS 4223) danielk1977 2007-08-14 17:42:05 +00:00
  • 4ab6b168f8 Back-port critical soft heap limit fixes to version 3.3.17. The following check-ins were back-ported: (4031), (4037), (4097), (4202), (4203), (4207), (4208), (4214). (CVS 4222) branch_3_3_17 drh 2007-08-14 13:20:27 +00:00
  • 6d2069d9e8 Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219) drh 2007-08-14 01:58:53 +00:00
  • 60ce3653c1 Version 3.4.2 (CVS 4218) drh 2007-08-13 20:31:01 +00:00
  • d0b567a944 Update version number of documentation in preparation for version 3.4.2. (CVS 4217) drh 2007-08-13 16:15:29 +00:00
  • ea4d9e2dc8 Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216) danielk1977 2007-08-13 15:28:33 +00:00
  • a7fba4b055 Disable tests that require 80-bit long doubles when the host only provides 64-bit long doubles. Ticket #2570. (CVS 4215) drh 2007-08-13 15:18:27 +00:00
  • 117066ce50 Fix a page leak in btree balance routines that follows a malloc failure. This problem detected by the new soft-heap-limit testing. (CVS 4214) drh 2007-08-13 14:56:44 +00:00
  • 5814c1a9fc When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213) danielk1977 2007-08-13 14:41:19 +00:00
  • b403574a2d Fix the test labels in mallocC.test. (CVS 4212) drh 2007-08-13 12:58:18 +00:00
  • b3226e857c Add a new test cases for a problem with malloc failure during the parsing of CREATE TABLE statements in autovacuum mode. (CVS 4211) drh 2007-08-13 12:39:03 +00:00
  • 00a18e476a Remove a memory allocation from sqlite3VdbeIOTraceSql(). This means that when doing I/O tracing, the text of an SQL statement is truncated to the first 1000 characters. But it also means tracing works in an out-of-memory situation. (CVS 4210) drh 2007-08-13 11:10:34 +00:00
  • 3aefabaf94 Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209) drh 2007-08-12 20:07:58 +00:00
  • 8940f4ee56 Backout check-in (4206) and replace it with a much better and more general fix for the problem identified in ticket #2565. (CVS 4208) drh 2007-08-11 00:26:20 +00:00
  • 34f5621ff1 Fix some incorrect asserts() in the pager - problems brought to light by the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207) drh 2007-08-10 23:56:35 +00:00
  • fdd30b0e46 Fix the corruption problem of ticket #2565 as demonstrated by the test added in (4204). There may yet be other instances of similar problems lurking in the code. (CVS 4206) drh 2007-08-10 23:54:16 +00:00
  • 9fa502205d Convert fts2 to use sqlite3_prepare_v2() to prevent certain logic errors around SQLITE_SCHEMA handling. This also allows sql_step_statement() and sql_step_leaf_statement() to be replaced with sqlite3_step(). shess 2007-08-10 23:47:03 +00:00
  • 9a47736e47 Add a test case to reproduce the database corruption problem reported by ticket #2565. (CVS 4204) drh 2007-08-10 19:46:43 +00:00
  • b771228e9d Update tests so that they work properly even if the soft-heap-limit is set low. (CVS 4203) drh 2007-08-10 19:46:13 +00:00
  • 3a7fb7c459 Add the --soft-heap-limit=N option to the test scripts. Set this value to enforce a soft heap limit across all tests. This changes exposes several new bugs. (CVS 4202) drh 2007-08-10 16:41:08 +00:00
  • 915d2150f8 Fix documentation typos. Tickets #2168 and #2560. (CVS 4201) drh 2007-08-09 00:00:26 +00:00
  • 73be501329 More tweaking of linkage. Ticket #2554. (CVS 4200) drh 2007-08-08 12:11:21 +00:00
  • f7083bf6d2 Additional refinements on the amalgamation: Give a couple of constants file scope and add the SQLITE_API prefix to some interfaces that need it. Ticket #2554. (CVS 4199) drh 2007-08-08 01:04:52 +00:00
  • fd131daecd Remove all tabs from source code files. Ticket #2556. (CVS 4198) drh 2007-08-07 17:13:03 +00:00
  • 0a0e131c7e Revise the amalgamation so that all symbols have file scope except those that begin with "sqlite3_". Ticket #2554. (CVS 4197) drh 2007-08-07 17:04:59 +00:00
  • e6e4d6bb1a Fix some compiler warnings. (CVS 4196) drh 2007-08-05 23:52:05 +00:00
  • 19b26f37b7 Change some (English language) grammar in faq.tcl. Ticket #2480. No code changes. (CVS 4195) danielk1977 2007-08-03 08:18:44 +00:00
  • d42f8fdc7a Avoid reloading the schema when an expired statement is finalized or reset. This is only necessary when the in-memory schema does not match the file-system schema. (CVS 4194) danielk1977 2007-08-03 07:33:08 +00:00
  • bb9491293b Fix a typo in limits.html. (CVS 4193) drh 2007-07-30 23:02:38 +00:00
  • b695acae1f Make excess output from the CLI appear inside SQL comments so as not to interfere with generated SQL. Ticket #2544. (CVS 4192) drh 2007-07-30 20:41:52 +00:00
  • e21733baa5 Fix ticket #2439: the FTS1 and FTS2 extensions use the non-standard, unportable and highly deprecated <malloc.h> header on all platforms except Apple Mac OS X. The <malloc.h> actually is never required on any OS with an at least partly POSIX-conforming API as the malloc(3) & friends functions officially live in <stdlib.h> since over 10 years. Under some platform like FreeBSD the inclusion of <malloc.h> since a few years even causes an "#error" and this way a build failure. So, just get rid of the bad <malloc.h> usage in FTS1 and FTS2 extensions at all and stick with <stdlib.h> there only. (CVS 4191) rse 2007-07-30 18:55:36 +00:00
  • 8f30448a30 "extern" declarations inside function bodies are not every compiler's favorite, so move to global scope. Additionally, at least under Unix environment use <unistd.h> to get the proper prototype instead of using a K&R-style own declaration. (CVS 4190) rse 2007-07-30 18:31:53 +00:00
  • 43e47c8ec1 Get rid of the following compile-time warnings: tool/mkkeywordhash.c:353: warning: array subscript has type 'char' tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189) rse 2007-07-30 18:26:19 +00:00
  • be0a909683 Get rid of the following compile-time warning: "src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188) rse 2007-07-30 18:24:38 +00:00
  • eb5453d122 Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187) danielk1977 2007-07-30 14:40:48 +00:00
  • 0c3f607c21 Test that an explicit collation sequence overrides an implicit one attached to a 'new' reference (it does). No code changes. (CVS 4186) danielk1977 2007-07-26 10:16:30 +00:00
  • e0fc52618c Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185) danielk1977 2007-07-26 06:50:05 +00:00
  • a2d04e9a0f Implement xRename() for fts1 so that it is possible to rename fts1 tables. See http://www.sqlite.org/cvstrac/chngview?cn=4143 (CVS 4184) shess 2007-07-25 00:56:09 +00:00
  • 443ecd036d Replicates http://www.sqlite.org/cvstrac/chngview?cn=4151 which modified fts2: shess 2007-07-25 00:38:05 +00:00
  • f6e3624cfc Sorry, previous check-in included a last-minute "Did it really work?" change :-). (CVS 4182) shess 2007-07-25 00:27:59 +00:00
  • 9f8a4b43ef Apply change 4095 to fts1. Fix snippet generation when the left-most column of an fts table is used in the MATCH clause. Fix for ticket #2429. (CVS 4181) shess 2007-07-25 00:25:20 +00:00
  • 75b97c2207 Remove the comment in the documentation that says that incremental vacuum mode is not persistent because as of 3.4.1 it is persistent. Ticket #2528. (CVS 4180) drh 2007-07-24 10:22:57 +00:00
  • 36379e973b Detect nested aggregate functions even if the inner aggregate function is aliased using an AS clause. Ticket #2526. (CVS 4179) drh 2007-07-23 22:51:15 +00:00
  • 2e06c67c08 The REPLACE conflict resolution falls back to FAIL when on a CHECK constraint violation. Ticket #2525. (CVS 4178) drh 2007-07-23 19:39:46 +00:00
  • 95bdbbbd9e Move prototypes for LEMON-generated parser functions into sqliteInt.h. Ticket #2521. (CVS 4177) drh 2007-07-23 19:31:16 +00:00
  • 67f80b67bb Check the return value of sqlite3PagerWrite() when autovacuuming. Ticket #2524. (CVS 4176) drh 2007-07-23 19:26:17 +00:00
  • 6615095629 Rework the UTF8 reader logic in order to avoid the use of malloc(). Ticket #2523. (CVS 4175) drh 2007-07-23 19:12:41 +00:00
  • ad6b3159be Fix a bad sizeof in vdbe.c. Ticket #2522. (CVS 4174) drh 2007-07-22 19:10:20 +00:00
  • ddb63de659 Work around a bug in GCC. Ticket #2469. (CVS 4173) drh 2007-07-21 19:41:45 +00:00
  • f6f426be4e Work around an AFP file system byte-range locking error caused by opening and closing a second file descriptor on the database file as RDWR which clears the exclusive byte-range lock and results in an fcntl error when the AFP locking code attempts to clear it afterwards. This error is caused by the test harness and isn't a flaw in the sqlite or its implementation of AFP file locking. (CVS 4172) aswift 2007-07-20 20:25:37 +00:00
  • d6e78a2e4f Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171) drh 2007-07-20 13:42:26 +00:00
  • cda62a771d Version 3.4.1 (CVS 4170) drh 2007-07-20 10:56:07 +00:00
  • d8a2b3845d Keep sqlite3ext.h backwards compatible. This really should have been part of the previous check-in. (CVS 4169) drh 2007-07-20 10:48:35 +00:00
  • 6bf0ae74c2 Add new APIs to the end of the sqlite3_apis structure in loadext.c, in order to preserve backwards compatibility. Fix an incompatibility introduced by (4108). (CVS 4168) drh 2007-07-20 10:33:58 +00:00
  • 85d5ef8b78 Documentation change in preparation for version 3.4.1. (CVS 4167) drh 2007-07-20 01:17:28 +00:00
  • a693bcde02 Fix a memory leak in the Rename method of the echo test virtual table. No changes to the core. (CVS 4166) drh 2007-07-20 00:35:58 +00:00
  • b100391318 Cleanup unused function in pager.c. This is the conclusion of the fix to ticket #2518. We believe the fix is complete and correct. (CVS 4165) drh 2007-07-20 00:33:36 +00:00
  • 3260548b53 Disable tests that use the progress handler when the progress handler is disabled at compile-time. Followup to ticket #2497. (CVS 4164) drh 2007-07-19 22:30:19 +00:00
  • f85953edd0 Preliminary fix for ticket #2518. Make sure the VACUUM command increments the change counter. (CVS 4163) drh 2007-07-19 16:35:17 +00:00
  • 21f06723fb Clarify the documentation on the nByte parameter to sqlite3_prepare(). Make it clear that nByte is a maximum string length. Ticket #2516. (CVS 4162) drh 2007-07-19 12:41:39 +00:00
  • 309be02483 Get the min/max optimization working with descending indices. Ticket #2514. (CVS 4161) drh 2007-07-18 18:17:11 +00:00
  • e927818455 Additional diagnostics added to the "out" file generated by lemon. (CVS 4160) drh 2007-07-18 18:16:29 +00:00
  • d8c1648301 Fix annoying emacs warning about suspicious line. The change removes a leading space (emacs wants Makefiles to use leading tabs there). (CVS 4159) shess 2007-07-17 17:22:03 +00:00
  • 1ef2ca0fd1 Add an extra integrity_check to the transaction test script. (CVS 4158) drh 2007-07-13 10:36:47 +00:00
  • f4c932bb07 Update documentation to make it clear that VACUUM is free to change implicit rowids. Ticket #2382. (CVS 4157) drh 2007-07-13 10:35:14 +00:00
  • eba1a1ebee "extern" prototypes cause problems for the Digital Mars compiler. So remove them. Ticket #2502. (CVS 4156) drh 2007-07-13 10:26:08 +00:00
  • 612642de32 Fix for #2497. Set the database error code to the return value of sqlite3_step(). (CVS 4155) danielk1977 2007-07-12 13:18:05 +00:00
  • d8e9b6238e Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154) pweilbacher 2007-07-03 23:37:09 +00:00
  • 2ac2762f37 Fix a memory leak in shell.c. Reported on the mailing list. This has only been informally tested. (CVS 4153) danielk1977 2007-07-03 05:31:16 +00:00
  • 1c55ba094a Fix a comment typo reported on the mailing list. (CVS 4152) drh 2007-07-02 19:31:27 +00:00
  • ab9749ebb9 Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLite to reload the internal schema, deleting and recreating v-table objects. So the sqlite3_vtab structure can be deleted out from under a v-table implementation. (CVS 4151) danielk1977 2007-07-02 10:16:49 +00:00
  • 12e8dcfbf6 Remove an unnecessary temporary variable for clarity of presentation in a loop that GCC 4.2.0 is miscompiling. Ticket #2469. GCC 4.2.0 miscompiles this loop regardless of whether or not the temporary variable is used, but by removing the variable, we hope to make it easier to explain the problem to GCC maintainers. The error only appears if -ftree-vrp is used (which is turned on by -O2). (CVS 4150) drh 2007-07-01 21:18:40 +00:00
  • 503028d61a Change OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility: - allocate zBuff on demand (restricted stack space on old compilers) - 2 bytes in zDrive in include '\0' - pass drive number to DosQueryCurrentDir() instead of 0 to make EMX work - zFull does not need to be preallocated (CVS 4149) pweilbacher 2007-07-01 15:41:02 +00:00
  • 2b9ca8d3e4 Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148) pweilbacher 2007-06-30 16:30:39 +00:00
  • 3f61bc79ae old emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147) pweilbacher 2007-06-30 15:24:37 +00:00
  • e78669b6b8 Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146) drh 2007-06-29 12:04:26 +00:00
  • 6bd00bfda7 Add a test case to verify that ticket #2470 has been fixed. (CVS 4145) drh 2007-06-27 23:52:18 +00:00
  • 5c55886059 Test error handling when renaming fts2 tables. (CVS 4144) danielk1977 2007-06-27 17:09:24 +00:00
  • c033b64276 Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143) danielk1977 2007-06-27 16:26:07 +00:00
  • 182c4ba979 Allow ALTER TABLE on virtual tables. (CVS 4142) danielk1977 2007-06-27 15:53:34 +00:00
  • c3d56d1509 respect $LDFLAGS from env/configure (CVS 4141) vapier 2007-06-27 15:01:45 +00:00
  • b7865fbc53 Fix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140) danielk1977 2007-06-27 11:10:03 +00:00
  • a6b81bad55 Fix typo in comments of the sqlite.h.in header file - comments from which documentation is automatically extracted and generated. Ticket #2468. (CVS 4139) drh 2007-06-27 10:21:38 +00:00
  • 5db828180c Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138) drh 2007-06-27 10:20:00 +00:00
  • 0e8003dff6 Set the connection error code when sqlite3_blob_read() or sqlite3_blob_write() fail. Ticket #2464. (CVS 4137) drh 2007-06-27 00:36:13 +00:00
  • 6d31df30d8 Update the FAQ to describe how moving sqlite3 handles across threads is not safe with SQLITE_ENABLE_MEMORY_MANAGEMENT. Tickets #2357 and #2463. (CVS 4136) drh 2007-06-27 00:08:39 +00:00
  • 985e0c63fc Make sure the TCL bindings always use Tcl_GetWideIntFromObj() even if the reported type is "int" because on x86-64 and "int" type is 64-bits. Ticket #2465. (CVS 4135) drh 2007-06-26 22:55:37 +00:00
  • 99bcd30bfb Fix a test case so that it (hopefully) works on x86-64. Ticket #2465. (CVS 4134) drh 2007-06-26 22:42:56 +00:00
  • 2f9ad1b47d Remove vestigal code from Makefile.linux-gcc. Ticket #2466. (CVS 4133) drh 2007-06-26 22:10:12 +00:00
  • 9ff802627a Reorganize comments in fts2_tokenizer.h. No code changes. (CVS 4132) danielk1977 2007-06-26 12:54:07 +00:00
  • 05fdd6c055 Use (((i64)1)<<63) instead of just (1<<63) to compute the most negative 64-bit integer. (CVS 4131) danielk1977 2007-06-26 12:52:33 +00:00
  • 42d4ef2acc Fix for #2444: Avoid SIGFPE on 64-bit platforms when evaluating expressions like ((1<<63)/-1). (CVS 4130) danielk1977 2007-06-26 11:13:25 +00:00
  • 08ada518ff Remove the unused EXTSRC variable from the non-configure makefile. (CVS 4129) danielk1977 2007-06-26 10:56:40 +00:00
  • 4877ef2aae Fix an unitialized variable in fts2. (CVS 4128) danielk1977 2007-06-26 10:55:01 +00:00
  • 034ca14f81 Allow virtual tables to mark columns as 'hidden'. Hidden columns do not show up in "*" expansion, the implicit column list of an INSERT statement, or the results of a "PRAGMA table_info" statement. (CVS 4127) danielk1977 2007-06-26 10:38:54 +00:00
  • 8605761506 Try to work around an MSVC compiler bug. Ticket #2457. (CVS 4126) drh 2007-06-26 01:04:48 +00:00
  • 26b0fc0bc5 Modify the amalgamation generator to identify every API using the SQLITE_API macro which is normally defined to nothing but which can be overridden on the compiler command-line to be "static" if desired. Ticket #2453. (CVS 4125) drh 2007-06-26 00:52:39 +00:00
  • b6a9eceab2 Change the name of sqlite3_atoi64 back to sqlite3Atoi64 so that it is clearly and internal API. Modify the amalgamation to use a macro SQLITE_PRIVATE instead of the keyword "static" so the macro can be overridden to by nothing. (CVS 4124) drh 2007-06-26 00:37:27 +00:00
  • 217f49093c Rework the string to integer conversion logic to address tickets #2344 and #2454. (CVS 4123) drh 2007-06-25 17:28:00 +00:00
  • c9cf6e3d31 Fix for #2445. A bug in the lookupName() logic that could cause a crash when a WHERE clause used an alias to refer to an expression in the result-set of the SELECT, and that expression was itself a reference to a table column. (CVS 4122) danielk1977 2007-06-25 16:29:33 +00:00