drh
a8f576126e
Remove an unreachable branch from where.c in order to restore 100%
...
branch test coverage. Add assert() and testcase() macros to verify
that the branch is unreachable.
FossilOrigin-Name: 58db7e7166ccefef77b237b77e17f47d31ff41e0
2009-08-25 16:28:14 +00:00
drh
011cfca18e
Initialize variables differently in the range processing logic of where.c
...
in order to make sure variables are always initialized even following
an OOM error.
FossilOrigin-Name: 3fb3686a4502140720dc3710a28a4f4128ab6554
2009-08-25 15:56:51 +00:00
drh
333ceb9389
Attempt to clarify the meaning of a "parameter" in the sqlite3_bind() API
...
documentation.
FossilOrigin-Name: 9389e6a7dad7ba70923282d6fe45fbccd22f681e
2009-08-25 14:59:37 +00:00
drh
560168934c
Make sure that the output of EXPLAIN is right when the P4 argument of
...
an opcode is of type P4_MEM with the MEM having type MEM_Blob.
FossilOrigin-Name: 6a623e6cf0370456232497a84366d18fa180debb
2009-08-25 14:24:04 +00:00
drh
ec9b31f033
Avoid calling sqite3VdbeRecordCompare() with uninitialized memory following
...
an OOM. Doing so is harmless, but it worries valgrind.
FossilOrigin-Name: d33b9eb2567561ccfdc588c95604cce9b697d768
2009-08-25 13:53:49 +00:00
drh
ff104c17b7
Fix an uninitialized variable in sqlite3VdbeIdxRowid().
...
FossilOrigin-Name: 6e787e18fa87f5463bf62cd91a0c0855099693f0
2009-08-25 13:10:27 +00:00
drh
fd3ca1c680
Merge together the os_unix.c fix of [aa6acfa8ca] and the trigger fix of
...
[dee1b8eb40].
FossilOrigin-Name: 1e2c6e134e04dd22795ad4839874ec0edd9b0970
2009-08-25 12:11:00 +00:00
dan
15edd587fd
Fix a bad interaction between "proxy-locking" and [ http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905 |aa6acfa8ca].
...
FossilOrigin-Name: 2a5c9e1dbf7f5f4b2081c964450a9305a4516f5b
2009-08-25 05:57:47 +00:00
drh
cee4c93771
Update the version number to 3.6.18, even though the actual release of
...
that version is still a few weeks away.
FossilOrigin-Name: c0ea4e9a7dcd66c079f917af47157f6ab7d79401
2009-08-24 19:37:20 +00:00
dan
6aa657f76b
Fix some errors in [ http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905 |aa6acfa8ca].
...
FossilOrigin-Name: 82d1934a428a34c292a612fb67bbcea262990e0f
2009-08-24 18:57:58 +00:00
drh
e408edac16
Run the column cache in a new context when generating code for trigger
...
programs. Fix for ticket [efc02f9779].
FossilOrigin-Name: dee1b8eb402f47c6d5ee60aac28f8e3dcf98167f
2009-08-24 01:35:25 +00:00
drh
30a89a3845
Remove an obsolete documentation file left over from SQLite version 1.0.
...
FossilOrigin-Name: f7eb1efc37d0658d66b3b86d5afd5419d22bfe92
2009-08-22 19:17:02 +00:00
dan
e946c3966a
Fix a problem in os_unix.c where a malloc failure could lead to a leaked file descriptor.
...
FossilOrigin-Name: aa6acfa8caa2ef59b4c16dfe42c4b5644da96905
2009-08-22 11:39:46 +00:00
dan
08da86a68e
When a database file is opened, try to find an unused file descriptor to reuse. This change affects unix (and other systems that use os_unix.c) only. Fix for cvstrac ticket [ http://www.sqlite.org/cvstrac/tktview?tn=4018 |#4018].
...
FossilOrigin-Name: 9b4d9ab62d687289837b13b07885e72cc3abe8a9
2009-08-21 17:18:03 +00:00
drh
d00151613a
Change the expression code generator to account for the fact that the new
...
sqlite3AtoF() never returns NaN. Also, clarification of a comment in
where.c.
FossilOrigin-Name: 75f596a04a74eb3a538c7be5b41756c970a21a1b
2009-08-21 13:22:25 +00:00
dan
9359c7b7ab
Add assert() statements to os_unix.c to check that the mutex is held when it should be.
...
FossilOrigin-Name: 11a669b6537d6bac67764fd91a319234345ac504
2009-08-21 08:29:10 +00:00
shane
6085f5e0a0
Updated sqlite3AtoF() that performs slightly better with GCC, and significantly better with MSVC.
...
FossilOrigin-Name: f084f5a8ba850de627ca8e9de6c81ab1ad9b7a1b
2009-08-21 02:13:14 +00:00
shane
8e283794b6
Updates for test_init.c for configure and other consistency changes.
...
FossilOrigin-Name: 3ba316e9a32de406a4390fb3f52fccb48da4da30
2009-08-21 02:07:09 +00:00
drh
9e1fadee5b
Remove a redundant OOM test from the sqlite_stat2 analysis loader.
...
FossilOrigin-Name: d30ceeb8b303e2ebfab2855beb973da606a97fa9
2009-08-20 23:05:31 +00:00
drh
daf4a9f3b8
Simplifications to the range-scan logic in support of structural testing.
...
FossilOrigin-Name: bbbee81075d923be7ca11e6e635c069a05d1605a
2009-08-20 20:05:55 +00:00
drh
98cdf62690
Continuing refinements of the range-scan optimizations in where.c.
...
The range scores are changed from an integer 1..9 to 0..100.
FossilOrigin-Name: f0c24b5fb86940f1a88adfb39cc4b9cbfcc66f8a
2009-08-20 18:14:42 +00:00
dan
68c4dbbdfc
Change the code that collects samples for sqlite_stat2 so that the first sample taken is the (nRow/(2*SQLITE_INDEX_SAMPLES))th entry in the index, where nRow is the total number of index entries.
...
FossilOrigin-Name: cbfe6e9df39684607cbc9637e3fb3c5ee6af2515
2009-08-20 09:11:06 +00:00
drh
cdaca55eb1
Incremental code and comment cleanup in where.c. There is more to be done.
...
FossilOrigin-Name: 4a5d9550bdc08633535a7869d7748f56ac3e9a36
2009-08-20 13:45:07 +00:00
drh
f8d4e8bd3f
Set the "type" correctly of built-in BINARY collating sequences for UTF16.
...
FossilOrigin-Name: 167644f33c949b532655c2297aedf13f93876396
2009-08-20 02:49:30 +00:00
drh
9aeda79cf6
All the sqlite3GetCollSeq() function to specify an arbitrary text encoding.
...
FossilOrigin-Name: 4ee44322ca3c92ed8d6f5d4a3f89d219bf379595
2009-08-20 02:34:15 +00:00
drh
3995c26d16
Make sure that sqlite3ValueFromExpr() sets the "type" field of the
...
sqlite3_value object correctly when the value is a floating point
number.
FossilOrigin-Name: 2467eb68ace46f6185fd14758446a5c887caffe3
2009-08-19 22:14:17 +00:00
dan
fcd4a150e2
Change the way an Expr that has been converted to TK_REGISTER stores its original opcode. The previous method, overloading Expr.iColumn, did not work in all cases.
...
FossilOrigin-Name: 71ea9d0e148fbd3d633651c61c81044e37cf88b9
2009-08-19 17:17:00 +00:00
dan
0f9a34ea4f
Fix an assert() failure that may follow an OOM error.
...
FossilOrigin-Name: 14a715c5639b2bc69b129485ca32e96366dab4c4
2009-08-19 16:34:31 +00:00
dan
4190326626
Merge 29cafcfdcc and a6f39181a7.
...
FossilOrigin-Name: 740a93e89c5f12672d72de7b3c55807deac613d4
2009-08-19 16:21:25 +00:00
drh
6aa5f152a3
Documentation improvements in sqlite.h.in. No changes to code.
...
FossilOrigin-Name: a6f39181a7b3083ae46cffd7aee7db895b4df8a4
2009-08-19 15:57:07 +00:00
dan
dec221e352
Add some tests that use the sqlite_stat2 table in shared-cache mode.
...
FossilOrigin-Name: 29cafcfdccf4c0a27746b9a82fa4191605a4505a
2009-08-19 15:34:59 +00:00
dan
9267f85790
Merge with 709e16145e.
...
FossilOrigin-Name: 6c8a0e2b37d9f4399ef90a44cbc492526201d0d5
2009-08-19 14:42:25 +00:00
dan
85c165caca
Clean up sqlite_stat2 related code. Add test cases.
...
FossilOrigin-Name: aa728e06ce456fa42e68687bff6c7424460c31ef
2009-08-19 14:34:54 +00:00
dan
a898aac951
Fix a problem where a buffer allocated from a lookaside pool was being released using the system free().
...
FossilOrigin-Name: 67207a15bd7302ffeb2f342532b57b4852838d83
2009-08-19 09:09:38 +00:00
dan
69188d9a66
Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2 table is not created, populated, or used.
...
FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
2009-08-19 08:18:32 +00:00
shane
6c53320320
Adjust sync count for SQLITE_DISABLE_DIRSYNC compiler option.
...
FossilOrigin-Name: 709e16145e37940cb243eede75071fb15095d960
2009-08-19 04:24:48 +00:00
dan
e275dc3fb8
Change the sqlite_stat2 schema to be more flexible.
...
FossilOrigin-Name: ded9dec6459baf21e01f63250db5ace57f390e7a
2009-08-18 16:24:58 +00:00
drh
feb306f556
Unknown functions in the DEFAULT clause of a table cause an error when
...
the DEFAULT value is needed. Ticket [2d401a94287b5].
FossilOrigin-Name: 093917d7fda442012dfd1a1b2f20f85d2eefa093
2009-08-18 16:05:46 +00:00
drh
1b25753b30
Move the allocation of the memsys5 mutex into the initializer.
...
FossilOrigin-Name: 4e377a09c194e90581ef00fd3a213e936b4e648a
2009-08-18 15:33:44 +00:00
drh
7c6791c8b1
Fix obscure issues with the memsys5 memory allocator. Arrange that the
...
xRealloc() interface to memory allocators is only called with a value
that has been through xRoundup().
FossilOrigin-Name: 577bd6f15556b7f6d86ee5167353fdd535577bf6
2009-08-18 14:48:53 +00:00
drh
15385ad437
When shutting down the memsys5 memory allocator, be sure to clear the mutex
...
pointer in case the next startup does not use a mutex because it is configured
differently.
FossilOrigin-Name: d4e7e2d82321c12fe471ed49098828bc0ef78543
2009-08-18 12:16:03 +00:00
drh
4c5514d76e
Fix a bug in mem5.c which would cause an infinite loop on an attempt
...
to allocate more than 1073741824 bytes of contiguous memory. Also, some
cleanup of mem5.c. More work to do on this.
FossilOrigin-Name: 783b751a38f9f911c5ebdf738c255b7111978f76
2009-08-18 01:54:19 +00:00
dan
02fa469619
First version of sqlite_stat2 (schema forces exactly 10 samples).
...
FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e
2009-08-17 17:06:58 +00:00
drh
adad77a6c6
Always call sqlite3_malloc() in sqlite3OsInit(), even when not compiled
...
with SQLITE_TEST.
FossilOrigin-Name: b98a8706a61ad27c881b6820eee10d06bfb27417
2009-08-17 16:01:11 +00:00
dan
3d6e060b48
Move error simulation code from the sqlite3_os_init() functions into a wrapper.
...
FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807
2009-08-17 15:52:25 +00:00
shane
7c7c311da5
More documentation and comment updates for sqlite3_initialize/shutdown interface changes to handle failures.
...
FossilOrigin-Name: 32509bc7339cd6a46cea4c243e3418546860cb2d
2009-08-17 15:31:23 +00:00
dan
e1ab219309
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly.
...
FossilOrigin-Name: 904a371c6c9d3f20332b37767b06161fa0a78113
2009-08-17 15:16:19 +00:00
drh
9ac06509f1
Enhanced documentation and minor code tweaks in preparation for hardening
...
the sqlite3_initialize/shutdown interfaces against initialization failures.
FossilOrigin-Name: 98c49e6135ae6268a80de88f8b0284f88ef32e1d
2009-08-17 13:42:29 +00:00
dan
d768f944d9
Add a test to verify that 3.6.17 releases read-locks obtained to read the database schema even if the connection is not currently in auto-commit mode.
...
FossilOrigin-Name: 78dfe8321db9debfcd4a7f3daf4223d0cbf23ab9
2009-08-17 09:29:09 +00:00
drh
d9c50f7fed
Update the amalgamation builder so that it avoids putting redundant
...
SQLITE_API macros on declarations.
FossilOrigin-Name: 0d5b058717858c9cda8ca120a3d814453a94a0e6
2009-08-14 18:18:03 +00:00