drh
c890fec362
Bring test coverage up to 99%. (CVS 5522)
...
FossilOrigin-Name: 2cd6bae80984126023bcf479e5f3db5eaa5c4134
2008-08-01 20:10:08 +00:00
drh
dab898f8e4
Remove unused sqlite3VdbeMemDynamicify() function from the VDBE. (CVS 5500)
...
FossilOrigin-Name: aee63308312bcebb79e15cfdf942ee23694444b0
2008-07-30 13:14:55 +00:00
drh
633e6d57d9
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)
FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +00:00
drh
af005fbc13
Test coverage improvements on printf. (CVS 5385)
...
FossilOrigin-Name: 2d8f7bebf0f13f3a95f1e2163e35d43229cabfea
2008-07-09 16:51:51 +00:00
shane
1fc4129df7
Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
...
FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
2008-07-08 22:28:48 +00:00
drh
0a687d123e
Improved enforcement of the SQLITE_LIMIT_LENGTH limit. (CVS 5368)
...
FossilOrigin-Name: ee93150878436ce6e992ea8a1d348fb58b03b5e2
2008-07-08 14:52:07 +00:00
danielk1977
822a51628f
Add more version tags to files that lack them. Ticket #3120 . (CVS 5137)
...
FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
2008-05-16 04:51:54 +00:00
drh
0f050353e9
Reformulate the constants for the minimum and maximum 64-bit signed
...
integer to work better with some compilers. Ticket #3105 . (CVS 5113)
FossilOrigin-Name: 18b1ee10b89bd0a98d1986dbb04b9d6cfc3dad39
2008-05-09 18:03:13 +00:00
drh
0de3ae95d5
Change the implementation of the NaN recognition to be more cross-platform.
...
Ticket #3089 . (CVS 5060)
FossilOrigin-Name: 07fd9a8c6ca0876f7ec447ce65173957005dc75c
2008-04-28 16:55:26 +00:00
drh
7209c697a1
Remove all references to sqlite3_intptr_t. (CVS 5051)
...
FossilOrigin-Name: 6a94d19747a05df2694d3720f76de3dab3836578
2008-04-27 18:40:11 +00:00
drh
b08c2a72ea
Back out the zero-terminator optimization introduced in check-in (4915).
...
Ticket #3056 . (CVS 5015)
FossilOrigin-Name: cce8deae2d556916e2817e0cb9748dceb162085d
2008-04-16 00:28:13 +00:00
danielk1977
ce98bba24b
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
...
FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
2008-04-03 10:13:01 +00:00
mlcreech
6cc9c28920
Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
...
FossilOrigin-Name: 846f9739d3e288dc81e40f5bfab046bd80bb22b2
2008-04-02 04:23:32 +00:00
mlcreech
fe3f4e8a4a
Minor cleanup: Use size_t for struct size cast (CVS 4940)
...
FossilOrigin-Name: 618df68b8b78d376d30cea79a273fd39140f5033
2008-03-29 23:25:27 +00:00
danielk1977
f934c5a98b
Do not incorrectly report a malloc() failure when allocating 0 bytes. Fixes a problem in bind.test. (CVS 4931)
...
FossilOrigin-Name: b99d19d651b00dcc7bdb36facfd9ecffe4fafd9f
2008-03-28 19:15:34 +00:00
danielk1977
e5f5b8f1f0
Fix for #3022 . Handle queries like "SELECT min(b) FROM T WHERE a = X AND b > X" when there is an index on (a,b). (CVS 4930)
...
FossilOrigin-Name: bce289753538ab504e55c4215d6cd4f5df137d9e
2008-03-28 18:11:16 +00:00
danielk1977
5f09613545
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928)
...
FossilOrigin-Name: d0bf73d81453da1d8e602e0445064d9f5e348063
2008-03-28 15:44:09 +00:00
danielk1977
4e1ddde370
Test string values passed to bind_text() and result_text() for a nul-terminator. (CVS 4915)
...
FossilOrigin-Name: 24c3ebc0c5c53c234516d16dce761d713fb29578
2008-03-25 16:16:29 +00:00
drh
bb4957f858
Initial implementation of per-connection limits and the sqlite3_limit() API.
...
The sqllimits1.test script crashes. SQLITE_LIMIT_PAGE_COUNT and
SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897)
FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373
2008-03-20 14:03:29 +00:00
drh
fa4a4b9159
Add a new interface, sqlite3_context_db_handle(), that returns the database
...
connection pointer for an application-defined function. (CVS 4889)
FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8
2008-03-19 21:45:51 +00:00
drh
874c5d6a43
Fix a memory leak introduced by the previous bug fix. (CVS 4876)
...
FossilOrigin-Name: b9c5dce34985f7e6d1b6314ae8674f07d0bf518b
2008-03-18 00:54:22 +00:00
drh
5efaf07099
Add the ability to simulate out-of-memory errors when using the default
...
memory allocator, mem1.c. Fix a bug that this enhancement revealed. (CVS 4875)
FossilOrigin-Name: d55a5e1c11ef90534abd2e5f18d06dd4739ade70
2008-03-18 00:07:10 +00:00
drh
3099e1acab
Change an instance of intptr_t to sqlite3_intptr_t. (CVS 4863)
...
FossilOrigin-Name: 6db7186c304ed5e06afb207ce11ebc2a47e491b0
2008-03-14 19:17:54 +00:00
mlcreech
17d0fa4986
One additional intptr_t conversion (in the same vein as check-in 4824) (CVS 4859)
...
FossilOrigin-Name: 2777ca788204c37ae5607f7acabe78f414255fa2
2008-03-13 23:34:38 +00:00
mlcreech
a9e852b667
Handle non-autoconf build correctly with new changes (CVS 4832)
...
FossilOrigin-Name: e2a9f5f1054f077e4773dd3d2c8f2ce5be118a01
2008-03-06 09:58:50 +00:00
mlcreech
12d4082f26
Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824)
...
FossilOrigin-Name: 54839a84e6ce080ea8a0f6ce32acaa053d20f311
2008-03-06 07:35:21 +00:00
drh
8fd3897cda
Avoid the use of UTF16 functions in code that is part of a build when
...
UTF16 support is omitted. Ticket #2949 . (CVS 4799)
FossilOrigin-Name: 9db346dede59e7185afcd7f21b2f578c9a4f949e
2008-02-19 15:44:09 +00:00
danielk1977
9172fd8cd0
Fix some VdbeMemCopy() related problems. (CVS 4787)
...
FossilOrigin-Name: aca2bee8662c3adaa47b3e70b1ef35347111f9eb
2008-02-14 15:31:52 +00:00
danielk1977
a7a8e14bf2
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783)
...
FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
2008-02-13 18:25:27 +00:00
drh
820a90694e
Version number to 3.5.5. Include FTS3 in the amalgamation by default
...
(but disabled unless compiled with -DSQLITE_ENABLE_FTS3). Fix a memory
allocation problem. (CVS 4757)
FossilOrigin-Name: 72411043e60d5358d5a7adf566d662d65d3b3336
2008-01-31 13:35:48 +00:00
drh
643167ff21
Add the fault injector module in fault.c. Use it as a basis for memory
...
allocation failure testing. (CVS 4742)
FossilOrigin-Name: 1a335e180183b414fcc3510ce28b98b21cd134a6
2008-01-22 21:30:53 +00:00
drh
c4dd3fd280
Changes to lemon to generate additional comments in the output file and
...
to remove unreachable code. Additional test cases for improved test
coverage. (CVS 4736)
FossilOrigin-Name: 2a0bc1e186532a0bfe36ca18fda74a5e7a199227
2008-01-22 01:48:05 +00:00
drh
a05a722f23
Cleanup and simplification of constraint processing. Simplifications
...
to the VM for better test coverage. (CVS 4729)
FossilOrigin-Name: d9ebe9d78c558af050c44ac4437ce0ef8193a4a8
2008-01-19 03:35:58 +00:00
drh
ca48c90f60
Remove the OP_HexBlob instruction and code OP_Blob directly. Reduce
...
the amount of memory allocation required to encode blob literals.
Remove the "out2" instruction type. Other minor optimizations. (CVS 4726)
FossilOrigin-Name: 0e50c0200a3c1c04e63cbb55a7255cdbbd225347
2008-01-18 14:08:24 +00:00
drh
d8c303fe0a
Do explicit range tests before attempting to convert a 64-bit float
...
into a 64-bit integer. Some systems (windows) seem to throw exceptions
if the conversion is out of range. Ticket #2880 . (CVS 4706)
FossilOrigin-Name: 4744257d3cd2dd96485fde6d9f60542714383421
2008-01-11 15:27:03 +00:00
drh
efe3d656b6
Attempt to work around a bug in the Borland BCC 5.5.1 compiler. Ticket #2880 . (CVS 4705)
...
FossilOrigin-Name: 6de0ee49073c7a47d5e10495b569b33df76d1448
2008-01-11 00:06:10 +00:00
drh
aa9b8963b5
Progress toward registerification of the constraint checking logic for
...
INSERT and UPDATE. (CVS 4693)
FossilOrigin-Name: b9bf509e39f5ac38c2149d2a648f68e5df5ae9e3
2008-01-08 02:57:55 +00:00
drh
d560305d84
Remove #include <math.h> from all source files. It is no longer needed but
...
causes compile problems when -DSQLITE_OMIT_FLOATING_POINT is defined.
Ticket #2696 . (CVS 4474)
FossilOrigin-Name: 4424357d17f615fab922780616eac6773535923a
2007-10-05 16:23:55 +00:00
danielk1977
26783a58e2
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
...
FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
2007-08-29 14:06:22 +00:00
danielk1977
a1644fd863
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)
...
FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
2007-08-29 12:31:25 +00:00
drh
f3a65f7e44
The malloc.test script now passes all tests with no errors. (CVS 4271)
...
FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
2007-08-22 20:18:21 +00:00
drh
b21c8cd4f6
The sqlite3_value object now carries an sqlite3* pointer to use for
...
recording malloc failures. This eliminates the need to pass sqlite3*
pointers into many internal interfaces. Also added more mutexing. (CVS 4263)
FossilOrigin-Name: 9287276191a582c1cf7cf6b71d8399727d8e534d
2007-08-21 19:33:56 +00:00
drh
29278e3dbb
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
...
FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
2007-08-21 10:44:15 +00:00
danielk1977
c6cc77d368
Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
...
FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b
2007-08-16 10:36:33 +00:00
danielk1977
1e5369531e
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
...
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
2007-08-16 10:09:01 +00:00
drh
174357527a
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)
FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
2007-08-16 04:30:38 +00:00
drh
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)
FossilOrigin-Name: 96190cf13dd7219f483308fea92d703328aac4c7
2007-06-26 00:37:27 +00:00
drh
217f49093c
Rework the string to integer conversion logic to address tickets
...
#2344 and #2454 . (CVS 4123)
FossilOrigin-Name: 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
2007-06-25 17:28:00 +00:00
drh
7cd6927e7f
Remove the dependency on libm for isnan(). Ticket #2436 . (CVS 4103)
...
FossilOrigin-Name: 406675bb1c954dae95b9059f7f533ed57e3947d9
2007-06-20 15:29:25 +00:00
drh
98640a3fa1
Make sure zeroblob does reasonable things with a negative argument or
...
an argument that is larger than the maximum blob size. (CVS 4048)
FossilOrigin-Name: f40218434e549144ddb48303df30e5191d44d3fc
2007-06-07 19:08:32 +00:00