/ All files named "src/legacy.c"
Login

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

History for src/legacy.c

2019-12-13
22:59
[70ff0890] part of check-in [fd849d5b] Initial exploration of blocky APIs, starting with a variant of sqlite3_exec. (check-in: [fd849d5b] user: numist branch: blocky-exec, size: 6558)
2019-02-07
18:49
[f69590f1] part of check-in [62829164] Merge the offical 3.27.0 release. (check-in: [62829164] user: drh branch: apple-osx, size: 4697)
2019-02-04
19:12
[d7874bc8] part of check-in [a16ffb5a] 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: [a16ffb5a] user: drh branch: trunk, size: 4531)
2018-12-04
21:16
[f2965b72] part of check-in [28643d83] When compiled with SQLITE_ENABLE_NORMALIZE, always have sqlite3_exec() enable the SQLITE_PREPARE_NORMALIZE flag. (check-in: [28643d83] user: mistachkin branch: execWithNormalize, size: 4669)
2017-07-07
22:58
[83f44991] part of check-in [7f48f6ab] Merge in all the latest trunk enhancements. (check-in: [7f48f6ab] user: drh branch: apple-osx, size: 4688)
2017-06-28
01:21
[134ab3e3] part of check-in [6480916c] Simplify error handling logic in sqlite3_exec() to save about 40 bytes. (check-in: [6480916c] user: drh branch: trunk, size: 4522)
2017-03-06
20:00
[b143b1fe] part of check-in [1650c3f4] Merge all pending 3.18 enhancements from trunk. (check-in: [1650c3f4] user: drh branch: apple-osx, size: 4793)
2017-02-16
17:18
[e88ed13c] part of check-in [ff5e733c] Change two MallocZero() calls into MallocRaw() to avoid unnecessary memset(). (check-in: [ff5e733c] user: drh branch: trunk, size: 4627)
2016-02-18
01:36
[b419b813] part of check-in [b7fa0fb3] Merge recent performance enhancements and the enhanced API_ARMOR from trunk. (check-in: [b7fa0fb3] user: drh branch: apple-osx, size: 4769)
2016-02-13
23:43
[75d3023b] part of check-in [6a9c4a3e] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3e] user: mistachkin branch: noMemBkpt, size: 4603)
2016-02-05
14:29
[c6552d90] part of check-in [201fcbee] Merge OOM handling optimizations and PRAGMA synchronous=EXTRA as well as other enhancements from trunk. (check-in: [201fcbee] user: drh branch: apple-osx, size: 4764)
01:55
[b1b0880f] part of check-in [c3ef0347] Improvements to the way that OOM errors are processed. (check-in: [c3ef0347] user: drh branch: oom-handling, size: 4598)
2014-09-21
23:08
[9c17d86e] part of check-in [3967ebe8] Merge in all recent changes from trunk. (check-in: [3967ebe8] user: drh branch: apple-osx, size: 4765)
2014-09-10
22:46
[ba1863ea] part of check-in [4eaaa7fa] Complete the implementation of the various APIs. Fix several problems. This is another incremental check-in that does not completely work. (check-in: [4eaaa7fa] user: drh branch: user-auth, size: 4599)
2014-08-26
02:02
[4d9ad7da] part of check-in [5c273111] Merge recent performance enhancements and the CAST operator enhancements into the apple-osx branch. (check-in: [5c273111] user: drh branch: apple-osx, size: 4800)
2014-08-22
18:00
[87c92f4a] part of check-in [cf561d1f] Split the sqlite3Error() routine into sqlite3Error() and sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. (check-in: [cf561d1f] user: drh branch: trunk, size: 4634)
2014-08-14
13:39
[3d9ac010] part of check-in [08058df3] Merge the pre-3.8.6 changes from trunk into the apple-osx branch. (check-in: [08058df3] user: drh branch: apple-osx, size: 4809)
2014-08-11
15:54
[febc2a9e] part of check-in [62d38308] Updates to evidence marks and requirements. No changes to code. (check-in: [62d38308] user: drh branch: trunk, size: 4643)
2014-05-19
15:16
[311f98da] part of check-in [17349a49] 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: [17349a49] user: drh branch: safer-malloc, size: 4472)
2014-05-08
23:01
[17887cec] part of check-in [9411d7dc] 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: [9411d7dc] user: drh branch: apple-osx, size: 4633)
2013-04-06
18:06
[0df0b155] part of check-in [c1d7304c] 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: [c1d7304c] user: drh branch: trunk, size: 4467)
2010-06-16
19:48
[015826a9] part of check-in [21ca87f6] Merge in changes up to and including the 3.6.23.1 release. (check-in: [21ca87f6] user: drh branch: apple-osx, size: 4801)
2010-02-23
20:11
[a199d768] part of check-in [edea3bb7] Continuing improvements to error reporting and the sqlite3_log() routine. (check-in: [edea3bb7] user: drh branch: trunk, size: 4635)
2010-01-20
01:26
[b319b529] part of check-in [96499b1d] Update the Apple OS-X branch to include all of the latest changes in trunk. (check-in: [96499b1d] user: drh branch: apple-osx, size: 4796)
01:20
[16f38549] part of check-in [095c74ea] Manually copy over the rebustness fixes from the apple-osx branch. (check-in: [095c74ea] user: drh branch: trunk, size: 4630)
2010-01-19
23:50
[c9c8f267] part of check-in [a7a0c8d6] robustness fixes for preventing a finalized statement from being reused (check-in: [a7a0c8d6] user: adam branch: apple-osx, size: 4809)
2009-12-07
23:53
[3c3f78cb] part of check-in [ad08794d] Merge all changes associated with the version 3.6.21 release into the OS-X branch. (check-in: [ad08794d] user: drh branch: apple-osx, size: 4740)
2009-11-10
01:30
[9304428e] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 4574)
2009-11-03
22:34
[3ec18805] part of check-in [941a01eb] Customizations for OSX contributed by Apple. (check-in: [941a01eb] user: adam branch: apple-osx, size: 4805)
2009-08-07
16:56
[303b4ffc] part of check-in [8293fa19] 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: [8293fa19] user: danielk1977 branch: trunk, size: 4639)
2009-07-03
19:18
[54a11649] part of check-in [e9849292] 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: [e9849292] user: drh branch: trunk, size: 4590)
2009-05-05
20:02
[9a56cf12] part of check-in [9e3016c1] Minor changes to the sqlite3_exec() implementation in legacy.c to facility full coverage testing. (CVS 6608) (check-in: [9e3016c1] user: drh branch: trunk, size: 4554)
2009-03-19
18:51
[2ad5b52d] part of check-in [cc0d9256] Fix a couple of fairly obscure cases where an assert() could fail following a malloc failure. (CVS 6360) (check-in: [cc0d9256] user: danielk1977 branch: trunk, size: 4321)
2009-01-20
16:53
[8b3b95d4] part of check-in [1041abd6] 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: [1041abd6] user: danielk1977 branch: trunk, size: 4288)
2008-12-10
19:26
[4f7410b2] part of check-in [c872d554] 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: [c872d554] user: drh branch: trunk, size: 4307)
2008-08-02
03:50
[aac57bd9] part of check-in [f1e44eb3] Additional coverage testing. Fix a segfault following OOM in sqltie3_load_extension(). (CVS 5523) (check-in: [f1e44eb3] user: drh branch: trunk, size: 4298)
2008-07-28
19:34
[3635cc6a] part of check-in [e48f9697] 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: [e48f9697] user: drh branch: trunk, size: 4222)
2008-06-15
02:51
[3626c71f] part of check-in [65fe7b62] 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: [65fe7b62] user: drh branch: trunk, size: 4225)
2008-05-20
15:44
[8f5a2b25] part of check-in [a0376c79] 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: [a0376c79] user: drh branch: trunk, size: 4226)
2008-05-19
23:51
[4568e476] part of check-in [f1df19ca] 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: [f1df19ca] user: drh branch: trunk, size: 4199)
2008-03-21
18:01
[8267890e] part of check-in [d8686abc] 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: [d8686abc] user: drh branch: trunk, size: 4098)
2008-02-13
18:25
[cb1939fd] part of check-in [990237e2] Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) (check-in: [990237e2] user: danielk1977 branch: trunk, size: 4037)
2007-08-29
12:31
[4ac53191] part of check-in [e38ef81b] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 3773)
2007-08-22
20:18
[7e1b1c57] part of check-in [db818430] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430] user: drh branch: trunk, size: 3696)
2007-08-21
10:44
[a83519a8] part of check-in [fbbd5bda] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda] user: drh branch: trunk, size: 3695)
2007-08-16
04:30
[6013a7cb] part of check-in [deb7ecd6] 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: [deb7ecd6] user: drh branch: trunk, size: 3711)
2007-05-04
13:15
[388c71ad] part of check-in [ba4845b3] 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: [ba4845b3] user: drh branch: trunk, size: 3696)
2007-04-25
11:28
[c05a599a] part of check-in [58ea768c] Fix a bug in the sqlite3_changes() function reported on the mailing list. (CVS 3868) (check-in: [58ea768c] user: drh branch: trunk, size: 3658)
2006-09-15
07:28
[2631df6a] part of check-in [ba579ddc] 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: [ba579ddc] user: drh branch: trunk, size: 3776)
2006-06-26
21:35
[10e01a90] part of check-in [85a66a25] 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: [85a66a25] user: drh branch: trunk, size: 3742)
2006-03-06
20:55
[fa15d505] part of check-in [e510e6dd] 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: [e510e6dd] user: drh branch: trunk, size: 3734)
2006-01-23
13:14
[86b66970] part of check-in [ada5490f] Work around buggy malloc() implementations that cause problems on malloc(0). Ticket #1572. (CVS 2996) (check-in: [ada5490f] user: drh branch: trunk, size: 3736)
2006-01-18
15:25
[0fd27db5] part of check-in [e0b022e5] Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970) (check-in: [e0b022e5] user: danielk1977 branch: trunk, size: 3746)
2006-01-11
21:41
[9bf7ee1b] part of check-in [5d9c6aa9] 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: [5d9c6aa9] user: drh branch: trunk, size: 3819)
2006-01-09
06:29
[f651ccd3] part of check-in [82b81f69] Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893) (check-in: [82b81f69] user: danielk1977 branch: trunk, size: 3819)
2005-12-12
06:53
[59757d85] part of check-in [1637f379] Fix minor malloc() related problems and add sqlite3_soft_heap_limit() stubs. (CVS 2814) (check-in: [1637f379] user: danielk1977 branch: trunk, size: 3811)
2005-12-06
12:52
[7b88d20e] part of check-in [e1606658] 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: [e1606658] user: danielk1977 branch: trunk, size: 3803)
2004-09-06
17:34
[d58ea507] part of check-in [23e5bed1] 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: [23e5bed1] user: drh branch: trunk, size: 3790)
17:24
[1cf9a326] part of check-in [3ddf5a9d] 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: [3ddf5a9d] user: drh branch: trunk, size: 3790)
2004-08-08
23:39
[2f3617c6] part of check-in [81d91d14] Fix problems in the handling of malloc failures. (CVS 1882) (check-in: [81d91d14] user: drh branch: trunk, size: 3790)
20:22
[09b45fd3] part of check-in [b0659738] Make sure the argument to ctype.h macros is always an unsigned character. Ticket #839. (CVS 1881) (check-in: [b0659738] user: drh branch: trunk, size: 3732)
2004-05-26
23:25
[ad23746f] part of check-in [bba6684d] 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: [bba6684d] user: drh branch: trunk, size: 3717)
02:04
[a856d2d5] part of check-in [17e7db48] Use the new API calls more consistently. (CVS 1459) (check-in: [17e7db48] user: danielk1977 branch: trunk, size: 3727)
00:01
Added: [706484c3] part of check-in [ae18fcb7] Add file legacy.c with old APIs. (CVS 1456) (check-in: [ae18fcb7] user: danielk1977 branch: trunk, size: 3739)