danielk1977
db515783f7
Include sqlite3_release_memory() code when SQLITE_MEMDEBUG is not defined. (CVS 2838)
...
FossilOrigin-Name: 77a37ceca7792e6cda6810e3387e6dda14a5c7ec
2005-12-20 14:37:59 +00:00
danielk1977
5591df558a
Add simple tests and fixes for sqlite3_soft_heap_limit() (CVS 2837)
...
FossilOrigin-Name: c2c5285442f4558dfca61b52f31b5a9cbefaed10
2005-12-20 09:19:37 +00:00
danielk1977
0190d1da46
Add some very simple test cases (and resulting bug fixes) for release_memory(). (CVS 2826)
...
FossilOrigin-Name: 154282fca54bf03d310d6931660f99805bb5477f
2005-12-19 14:18:11 +00:00
danielk1977
13f7299bbe
Add the (untested) sqlite3_release_memory() function. (CVS 2825)
...
FossilOrigin-Name: 345addaa03d3bfa3429a59597fbd3addcff62e30
2005-12-18 08:51:22 +00:00
danielk1977
c529f52046
Move malloc(), free(), realloc() and allocationSize() into the Os vtbl. (CVS 2819)
...
FossilOrigin-Name: 81a41f66370ea7f6810dfb323ba5cea60f240edd
2005-12-15 10:50:53 +00:00
danielk1977
13a68c3f61
Add the sqlite3_os_routine_set()/get() functions. (CVS 2818)
...
FossilOrigin-Name: c1ed79f594fb85009c2e9e5e281cbe66a9d2fa17
2005-12-15 10:11:30 +00:00
danielk1977
7ddad969a4
Fix minor malloc() related problems and add sqlite3_soft_heap_limit() stubs. (CVS 2814)
...
FossilOrigin-Name: 1637f3796015d1582ed8c6bc8bdf8c067b4bade9
2005-12-12 06:53:03 +00:00
danielk1977
97cb2e969b
Define the sqliteMalloc() macro differently to avoid a compiler warning. (CVS 2809)
...
FossilOrigin-Name: 3d177bde71811391f79f4ab3bae054ef1bceb6a0
2005-12-09 14:39:04 +00:00
danielk1977
2e588c7525
Many small changes to ensure memory is not leaked after malloc() fails. (CVS 2808)
...
FossilOrigin-Name: 601c335463aaabc2e9918e4b9298cff6161be5c4
2005-12-09 14:25:08 +00:00
danielk1977
261919cc16
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)
...
FossilOrigin-Name: e1606658f1b4530e3001db4779b5669c8d13c853
2005-12-06 12:52:59 +00:00
drh
d9cb6ac02f
Changes to prevent various compiler warnings. (CVS 2750)
...
FossilOrigin-Name: e261b8b09a529a3e67dc27c3b83b660bcb32e195
2005-10-20 07:28:17 +00:00
drh
b37df7b928
Attempt to fix the SQLite core so that no floating point operations are used
...
anywhere if SQLITE_OMIT_FLOATING_POINT is defined at compile-time. This
is useful to people who use SQLite on embedded processors that lack
floating point support. (CVS 2749)
FossilOrigin-Name: a0bdb584680ce6400d9e8c57db9d91197cc7b776
2005-10-13 02:09:49 +00:00
drh
5c959118f1
The sqlite3ReallocOrFree routine should set its pointer to NULL when it fails. (CVS 2715)
...
FossilOrigin-Name: 0e85af44faca4b625e6ab7cb21a300867298c539
2005-09-17 18:34:11 +00:00
drh
53f733c7ae
Fix a whole host of newly discovered memory leaks the occur after a
...
failure of realloc(). (CVS 2696)
FossilOrigin-Name: 4686d649756a0aa301ade901ac49c89a976c5402
2005-09-16 02:38:09 +00:00
drh
6e4b7cd4ef
Do not change fields of stale sqlite3 handles. Ticket #1384 . (CVS 2626)
...
FossilOrigin-Name: 7e05b7ca0ce72b1c6125196f4b21bbb676bc488c
2005-08-27 01:51:44 +00:00
drh
85c23c61e2
Increased test coverage. Some malloc tests now fail though this is believed
...
to be an instrumentation problem not a real error. (CVS 2604)
FossilOrigin-Name: f786f37a5e31f42aaf81b3ad4a734f12855da69e
2005-08-20 03:03:04 +00:00
drh
3d94662a06
Provide grave accent quoting of identifiers for MySQL compatibility.
...
Ticket #1337 . (CVS 2591)
FossilOrigin-Name: 6b7a4e97528a4e179e0bbae69469cb1a3d1f794b
2005-08-13 18:15:42 +00:00
drh
013972052e
Extra memory usage instrumentation added. (CVS 2553)
...
FossilOrigin-Name: ac669f56c0759a7e3eaa6f0018c8fb9d614e7d69
2005-07-20 14:31:53 +00:00
drh
67ce73b466
Check for zero-byte allocations in sqlite3MallocRaw. (CVS 2533)
...
FossilOrigin-Name: 78cb8a9a17a29bb8d9ffb6298b25cc43f9cbfed9
2005-06-29 17:24:23 +00:00
drh
ba336867c4
Make sqlite3Malloc always return NULL when the number of bytes to allocate
...
is 0. (CVS 2532)
FossilOrigin-Name: 657d74ebc1d91c99e8ac6cd68fdac3864ebd8d71
2005-06-29 15:33:00 +00:00
drh
487e262f44
Remove the blob(), text() and numeric() functions added in (2524) and
...
replace them with the standard CAST operator.
Ticket #1287 . (CVS 2527)
FossilOrigin-Name: 17631785f9ee8ab280c82677eb53886912e085bc
2005-06-25 18:42:14 +00:00
drh
556b2a2322
Provide the SQLITE_FILE_HEADER command-line option for changing the text
...
that appears at the beginning of databases. (CVS 2515)
FossilOrigin-Name: 3d7ee5b92d7e30f90cb7a8b3efd649b36480b61b
2005-06-14 16:04:05 +00:00
drh
41f5852eea
Handle failures of getcwd() without segfaulting. Ticket #1274 . (CVS 2490)
...
FossilOrigin-Name: c1691004d6d81b683a4ca5b1723c0de8b9b4e376
2005-06-06 15:06:39 +00:00
danielk1977
0bb8f36d05
Retain the error string if an error is generated by SSE during a VACUUM. (CVS 2476)
...
FossilOrigin-Name: f7b76d02e003faf0310b87949d3cb0f38062853f
2005-05-23 13:00:57 +00:00
drh
132d8d6ab9
Never user a pointer to standard library routines malloc() and free().
...
This rule is to
work around limitations of MSVC and the _fastcall calling convention.
Ticket #1256 . (CVS 2473)
FossilOrigin-Name: a39c446726099e4915a1ad72c019d3c2cfe065bb
2005-05-22 20:12:37 +00:00
drh
c96d8530ca
Make sure all data structures have 8-byte alignment - necessary for the
...
sparc architecture and helpful on other 64-bit platforms. Ticket #1232 .
Also update some comments in build.c. (CVS 2452)
FossilOrigin-Name: d9418851cebc1605d8d62aad7987c0d61a905e81
2005-05-03 12:30:33 +00:00
drh
e29b915e9b
Remove unused code from util.c. Enhance the trace output in os_unix.c. (CVS 2397)
...
FossilOrigin-Name: f2f31919fdd181c79b86f849d46c60f1ed7a0db1
2005-03-18 14:03:15 +00:00
drh
33fa535dca
Fix a #ifdef in util.c. (CVS 2369)
...
FossilOrigin-Name: f426c625c4c3de626b5f5f8b5a6343a7ec3b16e9
2005-03-10 12:35:45 +00:00
danielk1977
a38432df12
Have debugging code handle sqliteMalloc(n) where n<0 in the same way as production. (CVS 2303)
...
FossilOrigin-Name: ab85e1d01299e383bda1834664370f04b13634b6
2005-02-01 10:35:06 +00:00
danielk1977
52a83fbbe9
Move sqlite3HashNoCase to hash.c. (CVS 2294)
...
FossilOrigin-Name: 5c10ccd8e99cab7e9f8e733dfd1447c2df1d25c1
2005-01-31 12:56:44 +00:00
drh
fe2093d73e
Bug fixes and enhancements entered while on jury recess. (CVS 2246)
...
FossilOrigin-Name: 38401dfbd5e3b50dd4e7a11562a7770347cebdf4
2005-01-20 22:48:47 +00:00
danielk1977
5558a8a697
Fix some memory leak problems with corrupt.test and auto-vacuum databases. (CVS 2226)
...
FossilOrigin-Name: 6244252915fa312a6c4d192464023d95aaef4661
2005-01-17 07:53:44 +00:00
danielk1977
2c3365493b
Fixes to 'configure' build system. Also extra coverage for main.c. (CVS 2204)
...
FossilOrigin-Name: 8378455f32c3010ccc28181048c746ecb8a9fa67
2005-01-13 02:14:23 +00:00
danielk1977
b5402fbf05
Tests to improve coverage of vdbemem.c. (CVS 2200)
...
FossilOrigin-Name: 319bb4a9064deb062a888fdc31067619c9b749bb
2005-01-12 07:15:04 +00:00
drh
cacb208e4e
Improved test coverage for util.c. (CVS 2194)
...
FossilOrigin-Name: ad451a2ddc7993035768f2801d590311807f4397
2005-01-11 15:28:33 +00:00
drh
e6f85e71e9
Fix ticket #1046 by removing code and simplifying the query optimizer.
...
Remarkably, this simplification also makes the optimizer do a better job.
Ticket #1051 was fixed as a side-effect. (CVS 2172)
FossilOrigin-Name: 5fd1f4711885e3dd6fb2c2700287f78bb0ea178a
2004-12-25 01:03:13 +00:00
drh
4693423b09
Rig the sqliteMalloc() routine so that we can make it fail multiple times
...
in a row. Modify the malloc.test procedure to make malloc fail in this
way and verify that the failures are still handled correctly. (CVS 2121)
FossilOrigin-Name: 519bc9d9975bbdb4ba056799534d5c465e0cd042
2004-11-20 19:18:00 +00:00
drh
bf8aa33bba
Fix a #ifdef in util.c. Ticket #984 . (CVS 2052)
...
FossilOrigin-Name: da045bd183335a112f9a6c805c12efe12d0a25ca
2004-11-04 04:34:14 +00:00
drh
a71aa00102
More work on optionally removing unused features at compile-time. (CVS 2049)
...
FossilOrigin-Name: a82980fd70285820c64b42393ef85a9e21addc5d
2004-11-03 13:59:04 +00:00
drh
c60d04464f
Allow functions to be created when there are outstanding VMs.
...
(Ticket #926 ) Fix problems with sqlite3_errcode(). Add tests for
sqlite3_errcode(). (CVS 1989)
FossilOrigin-Name: d0f1dc5898382258b283308c2cce55a8bc378ee4
2004-09-30 13:43:13 +00:00
drh
ae29ffbe23
Code cleanup: get rid of the sqlite3SetNString utility function. (CVS 1984)
...
FossilOrigin-Name: 9ef4c24a9acc2128891303de1ffd2ef4509d779c
2004-09-25 14:39:18 +00:00
drh
fe63d1c98b
More changes directed at getting things to work on 64-bit platforms. (CVS 1949)
...
FossilOrigin-Name: 39755d216608e9d12e1055433549f820f63608a7
2004-09-08 20:13:04 +00:00
drh
9bb575fd72
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)
FossilOrigin-Name: 3ddf5a9d1c480a2e3aa32685879063b11afddbe1
2004-09-06 17:24:11 +00:00
drh
873cdcb2ce
Comment changes and minor code cleanup. (CVS 1940)
...
FossilOrigin-Name: dfa9ea89c473e1fea804ad07e8e58a9af1e92f6c
2004-09-05 23:23:41 +00:00
drh
4e5ffc5f8d
Combine the implementation of LIKE and GLOB into a single parameterized
...
function. (CVS 1923)
FossilOrigin-Name: 0a47c8f86d1649e9ae7edd4c49a6fe5f5272351e
2004-08-31 00:52:37 +00:00
drh
dc3ff9c34c
Avoid creating a TEMP database unless it is absolutely necessary. (CVS 1890)
...
FossilOrigin-Name: 5914a11caa4c6e778cd7ca010427897c8f971552
2004-08-18 02:10:15 +00:00
drh
4c755c0f53
Make sure the argument to ctype.h macros is always an unsigned character.
...
Ticket #839 . (CVS 1881)
FossilOrigin-Name: b065973898c06a81c69b70b3fa91c79334bd9b9a
2004-08-08 20:22:17 +00:00
drh
2b735010f5
Fix the return type on sqliteStrICmp when the input strings are not
...
equal. Ticket #804 . (CVS 1794)
FossilOrigin-Name: 660b89a0fc031e798ce14f25273468e85e038efa
2004-07-15 13:23:21 +00:00
danielk1977
25b3363d2c
Have the debug version of sqliteRealloc() return partially uninitialised
...
memory in the same way as the non-debug version can. (CVS 1783)
FossilOrigin-Name: e78b0ff30fb630bc9835a7545525eea64924bafc
2004-06-30 12:49:46 +00:00
drh
9d213ef022
Improve test coverage of util.c (CVS 1773)
...
FossilOrigin-Name: 68ac32213766c5e83de54373b90030a458538017
2004-06-30 04:02:11 +00:00