SQLite

All files named ”src/legacy.c”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/legacy.c

2024-10-22
16:26
[5fff8efbb4] part of check-in [d02ec06e5b] Add still more logging to determine why schema loads are so slow in some circumstances. (check-in: [d02ec06e5b] user: dan branch: cf8f1552-commit-instr, size: 4747)
2024-10-21
11:49
[40f29a5d84] part of check-in [08e1dea9c0] Add extra logging to SQL statements used to load the database schema on this branch. This requires SQLITE_ENABLE_STMT_SCANSTATUS. (check-in: [08e1dea9c0] user: dan branch: cf8f1552-commit-instr, size: 4993)
2019-12-13
22:59
[70ff089093] part of check-in [fd849d5b6a] Initial exploration of blocky APIs, starting with a variant of sqlite3_exec. (check-in: [fd849d5b6a] user: numist branch: blocky-exec, size: 6558)
2019-02-07
18:49
[f69590f141] part of check-in [628291641f] Merge the offical 3.27.0 release. (check-in: [628291641f] user: drh branch: apple-osx, size: 4697)
2019-02-04
19:12
[d7874bc885] part of check-in [a16ffb5a4b] Ensure that the sqlite3_exec() callback gets the correct number of columns for a query, even if the schema changes out from under it. (check-in: [a16ffb5a4b] user: drh branch: trunk, size: 4531)
2018-12-04
21:16
[f2965b7263] part of check-in [28643d837d] When compiled with SQLITE_ENABLE_NORMALIZE, always have sqlite3_exec() enable the SQLITE_PREPARE_NORMALIZE flag. (check-in: [28643d837d] user: mistachkin branch: execWithNormalize, size: 4669)
2017-07-07
22:58
[83f4499122] part of check-in [7f48f6ab2a] Merge in all the latest trunk enhancements. (check-in: [7f48f6ab2a] user: drh branch: apple-osx, size: 4688)
2017-06-28
01:21
[134ab3e3fa] part of check-in [6480916c72] Simplify error handling logic in sqlite3_exec() to save about 40 bytes. (check-in: [6480916c72] user: drh branch: trunk, size: 4522)
2017-03-06
20:00
[b143b1fe42] part of check-in [1650c3f468] Merge all pending 3.18 enhancements from trunk. (check-in: [1650c3f468] user: drh branch: apple-osx, size: 4793)
2017-02-16
17:18
[e88ed13c2d] part of check-in [ff5e733cbf] Change two MallocZero() calls into MallocRaw() to avoid unnecessary memset(). (check-in: [ff5e733cbf] user: drh branch: trunk, size: 4627)
2016-02-18
01:36
[b419b813f1] part of check-in [b7fa0fb339] Merge recent performance enhancements and the enhanced API_ARMOR from trunk. (check-in: [b7fa0fb339] user: drh branch: apple-osx, size: 4769)
2016-02-13
23:43
[75d3023be8] part of check-in [6a9c4a3ebf] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3ebf] user: mistachkin branch: noMemBkpt, size: 4603)
2016-02-05
14:29
[c6552d90c1] part of check-in [201fcbeef3] Merge OOM handling optimizations and PRAGMA synchronous=EXTRA as well as other enhancements from trunk. (check-in: [201fcbeef3] user: drh branch: apple-osx, size: 4764)
01:55
[b1b0880fc4] part of check-in [c3ef03478a] Improvements to the way that OOM errors are processed. (check-in: [c3ef03478a] user: drh branch: oom-handling, size: 4598)
2014-09-21
23:08
[9c17d86e06] part of check-in [3967ebe83e] Merge in all recent changes from trunk. (check-in: [3967ebe83e] user: drh branch: apple-osx, size: 4765)
2014-09-10
22:46
[ba1863ea58] part of check-in [4eaaa7fa87] Complete the implementation of the various APIs. Fix several problems. This is another incremental check-in that does not completely work. (check-in: [4eaaa7fa87] user: drh branch: user-auth, size: 4599)
2014-08-26
02:02
[4d9ad7daba] part of check-in [5c27311105] Merge recent performance enhancements and the CAST operator enhancements into the apple-osx branch. (check-in: [5c27311105] user: drh branch: apple-osx, size: 4800)
2014-08-22
18:00
[87c92f4a08] part of check-in [cf561d1f0b] Split the sqlite3Error() routine into sqlite3Error() and sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. (check-in: [cf561d1f0b] user: drh branch: trunk, size: 4634)
2014-08-14
13:39
[3d9ac010a3] part of check-in [08058df3af] Merge the pre-3.8.6 changes from trunk into the apple-osx branch. (check-in: [08058df3af] user: drh branch: apple-osx, size: 4809)
2014-08-11
15:54
[febc2a9e7a] part of check-in [62d38308b5] Updates to evidence marks and requirements. No changes to code. (check-in: [62d38308b5] user: drh branch: trunk, size: 4643)
2014-05-19
15:16
[311f98da3e] part of check-in [17349a49d2] Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. (check-in: [17349a49d2] user: drh branch: safer-malloc, size: 4472)
2014-05-08
23:01
[17887cec55] part of check-in [9411d7dc6f] Initial attempt to merge in all trunk changes over the previous 1.5 years. This check-in compiles but there are compiler warnings and "make test" segfaults after only running a few test modules. (check-in: [9411d7dc6f] user: drh branch: apple-osx, size: 4633)
2013-04-06
18:06
[0df0b1550b] part of check-in [c1d7304c80] Increase the default SQLITE_MAX_SCHEMA_RETRY to 50. Make sure that macro covers every case where a prepared statement might need to be reprepared due to a schema change. The sqlite3_exec() interface now uses sqlite3_prepare_v2(). (check-in: [c1d7304c80] user: drh branch: trunk, size: 4467)
2010-06-16
19:48
[015826a958] part of check-in [21ca87f691] Merge in changes up to and including the 3.6.23.1 release. (check-in: [21ca87f691] user: drh branch: apple-osx, size: 4801)
2010-02-23
20:11
[a199d7683d] part of check-in [edea3bb740] Continuing improvements to error reporting and the sqlite3_log() routine. (check-in: [edea3bb740] user: drh branch: trunk, size: 4635)
2010-01-20
01:26
[b319b5291c] part of check-in [96499b1dd6] Update the Apple OS-X branch to include all of the latest changes in trunk. (check-in: [96499b1dd6] user: drh branch: apple-osx, size: 4796)
01:20
[16f385490f] part of check-in [095c74ea62] Manually copy over the rebustness fixes from the apple-osx branch. (check-in: [095c74ea62] user: drh branch: trunk, size: 4630)
2010-01-19
23:50
[c9c8f26772] part of check-in [a7a0c8d644] robustness fixes for preventing a finalized statement from being reused (check-in: [a7a0c8d644] user: adam branch: apple-osx, size: 4809)
2009-12-07
23:53
[3c3f78cbe4] part of check-in [ad08794d72] Merge all changes associated with the version 3.6.21 release into the OS-X branch. (check-in: [ad08794d72] user: drh branch: apple-osx, size: 4740)
2009-11-10
01:30
[9304428e71] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 4574)
2009-11-03
22:34
[3ec1880541] part of check-in [941a01eb86] Customizations for OSX contributed by Apple. (check-in: [941a01eb86] user: adam branch: apple-osx, size: 4805)
2009-08-07
16:56
[303b4ffcf1] part of check-in [8293fa19c0] Enhancement to (6844). If sqlite3_exec() is to return SQLITE_NOMEM because it fails to allocate space for an error message, set the database error-code to SQLITE_NOMEM too. (CVS 6962) (check-in: [8293fa19c0] user: danielk1977 branch: trunk, size: 4639)
2009-07-03
19:18
[54a11649f2] part of check-in [e9849292ab] Cause sqlite3_exec() to return SQLITE_NOMEM if it cannot allocate memory to hold the error message for some other error. (CVS 6844) (check-in: [e9849292ab] user: drh branch: trunk, size: 4590)
2009-05-05
20:02
[9a56cf126c] part of check-in [9e3016c184] Minor changes to the sqlite3_exec() implementation in legacy.c to facility full coverage testing. (CVS 6608) (check-in: [9e3016c184] user: drh branch: trunk, size: 4554)
2009-03-19
18:51
[2ad5b52df3] part of check-in [cc0d925669] Fix a couple of fairly obscure cases where an assert() could fail following a malloc failure. (CVS 6360) (check-in: [cc0d925669] user: danielk1977 branch: trunk, size: 4321)
2009-01-20
16:53
[8b3b95d48d] part of check-in [1041abd678] When not compiling for an EBCDIC system, use built-in alternatives to the tolowe r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) (check-in: [1041abd678] user: danielk1977 branch: trunk, size: 4288)
2008-12-10
19:26
[4f7410b295] part of check-in [c872d55493] Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) (check-in: [c872d55493] user: drh branch: trunk, size: 4307)
2008-08-02
03:50
[aac57bd984] part of check-in [f1e44eb323] Additional coverage testing. Fix a segfault following OOM in sqltie3_load_extension(). (CVS 5523) (check-in: [f1e44eb323] user: drh branch: trunk, size: 4298)
2008-07-28
19:34
[3635cc6a58] part of check-in [e48f9697e9] Implement the "lookaside" memory allocation cache. Use of this cache makes the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) (check-in: [e48f9697e9] user: drh branch: trunk, size: 4222)
2008-06-15
02:51
[3626c71fb7] part of check-in [65fe7b62cf] Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) (check-in: [65fe7b62cf] user: drh branch: trunk, size: 4225)
2008-05-20
15:44
[8f5a2b25d9] part of check-in [a0376c7907] Changes to the error handling policies of sqlite3_exec() to make them more consistent. Changes to the documentation on the error handling polices of sqlite3_exec() so that the documentation and code agree. (CVS 5148) (check-in: [a0376c7907] user: drh branch: trunk, size: 4226)
2008-05-19
23:51
[4568e47622] part of check-in [f1df19ca17] Improvements to API documentation. The sqlite3_exec() function now sets the result returned by sqlite3_errcode() when it receives an SQLITE_ABORT. (CVS 5144) (check-in: [f1df19ca17] user: drh branch: trunk, size: 4199)
2008-03-21
18:01
[8267890e6a] part of check-in [d8686abcdf] Defer allocating memory space to hold the array of column values and names in sqlite3_exec() until there is a need to use the array. In the common case where there is no callback, this avoids a malloc() call. (CVS 4905) (check-in: [d8686abcdf] user: drh branch: trunk, size: 4098)
2008-02-13
18:25
[cb1939fdeb] part of check-in [990237e27e] Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) (check-in: [990237e27e] user: danielk1977 branch: trunk, size: 4037)
2007-08-29
12:31
[4ac53191fa] part of check-in [e38ef81b85] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b85] user: danielk1977 branch: trunk, size: 3773)
2007-08-22
20:18
[7e1b1c5769] part of check-in [db818430e9] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430e9] user: drh branch: trunk, size: 3696)
2007-08-21
10:44
[a83519a8fb] part of check-in [fbbd5bda54] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda54] user: drh branch: trunk, size: 3695)
2007-08-16
04:30
[6013a7cb7d] part of check-in [deb7ecd65f] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (check-in: [deb7ecd65f] user: drh branch: trunk, size: 3711)
2007-05-04
13:15
[388c71ad7f] part of check-in [ba4845b32b] Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) (check-in: [ba4845b32b] user: drh branch: trunk, size: 3696)
2007-04-25
11:28
[c05a599a37] part of check-in [58ea768c3e] Fix a bug in the sqlite3_changes() function reported on the mailing list. (CVS 3868) (check-in: [58ea768c3e] user: drh branch: trunk, size: 3658)
2006-09-15
07:28
[2631df6a86] part of check-in [ba579ddc43] Add support for extended result codes - additional result information carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) (check-in: [ba579ddc43] user: drh branch: trunk, size: 3776)
2006-06-26
21:35
[10e01a902d] part of check-in [85a66a25e9] Publish APIs sqlite3_malloc() and sqlite3_realloc() that use the OS-layer memory allocator. Convert sqlite3_free() and sqlite3_mprintf() to also use the OS-layer memory allocator. (CVS 3298) (check-in: [85a66a25e9] user: drh branch: trunk, size: 3742)
2006-03-06
20:55
[fa15d505dd] part of check-in [e510e6dd9d] Code changes resulting from Coverity analysis. http://scan.coverity.com/ Found 1 potential segfault in sqlite3_mprintf(). Also 2 failures to fclose() following a malloc() failure. And lots of cases where unnecessary conditionals could be removed from the code. (CVS 3126) (check-in: [e510e6dd9d] user: drh branch: trunk, size: 3734)
2006-01-23
13:14
[86b669707b] part of check-in [ada5490f12] Work around buggy malloc() implementations that cause problems on malloc(0). Ticket #1572. (CVS 2996) (check-in: [ada5490f12] user: drh branch: trunk, size: 3736)
2006-01-18
15:25
[0fd27db5e0] part of check-in [e0b022e5b2] Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970) (check-in: [e0b022e5b2] user: danielk1977 branch: trunk, size: 3746)
2006-01-11
21:41
[9bf7ee1b63] part of check-in [5d9c6aa964] 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) (check-in: [5d9c6aa964] user: drh branch: trunk, size: 3819)
2006-01-09
06:29
[f651ccd370] part of check-in [82b81f69c7] Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893) (check-in: [82b81f69c7] user: danielk1977 branch: trunk, size: 3819)
2005-12-12
06:53
[59757d857a] part of check-in [1637f37960] Fix minor malloc() related problems and add sqlite3_soft_heap_limit() stubs. (CVS 2814) (check-in: [1637f37960] user: danielk1977 branch: trunk, size: 3811)
2005-12-06
12:52
[7b88d20efc] part of check-in [e1606658f1] Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800) (check-in: [e1606658f1] user: danielk1977 branch: trunk, size: 3803)
2004-09-06
17:34
[d58ea507bc] part of check-in [23e5bed1c5] Fix more name collisions. Allow sqlite.h and sqlite3.h to both be included in the same C/C++ source file. (CVS 1942) (check-in: [23e5bed1c5] user: drh branch: trunk, size: 3790)
17:24
[1cf9a32631] part of check-in [3ddf5a9d1c] Fix a naming conflict between sqlite versions 2 and 3. An open sqlite3 connection now *must* be called "sqlite3". You cannot call it "sqlite". This might break existing code. (CVS 1941) (check-in: [3ddf5a9d1c] user: drh branch: trunk, size: 3790)
2004-08-08
23:39
[2f3617c61b] part of check-in [81d91d14cf] Fix problems in the handling of malloc failures. (CVS 1882) (check-in: [81d91d14cf] user: drh branch: trunk, size: 3790)
20:22
[09b45fd310] part of check-in [b065973898] Make sure the argument to ctype.h macros is always an unsigned character. Ticket #839. (CVS 1881) (check-in: [b065973898] user: drh branch: trunk, size: 3732)
2004-05-26
23:25
[ad23746f15] part of check-in [bba6684d50] Refactoring of the vdbe Mem functions and the APIs that deal with them. The code will not compile in its current state. (CVS 1465) (check-in: [bba6684d50] user: drh branch: trunk, size: 3717)
02:04
[a856d2d531] part of check-in [17e7db488d] Use the new API calls more consistently. (CVS 1459) (check-in: [17e7db488d] user: danielk1977 branch: trunk, size: 3727)
00:01
Added: [706484c32e] part of check-in [ae18fcb7ad] Add file legacy.c with old APIs. (CVS 1456) (check-in: [ae18fcb7ad] user: danielk1977 branch: trunk, size: 3739)