dan
74439167cb
Rearrange an expression in vdbemem.c to avoid a (harmless) reference to a possibly unitialized variable.
...
FossilOrigin-Name: 4a7b3fa049a9aa0668e318287edd4a78c0588bf8
2014-10-15 11:31:35 +00:00
drh
5604cc0d3b
Make sure new sqlite3_vtab objects created by the xCreate() virtual table
...
method are initialized by the system, in accordance with the documentation.
FossilOrigin-Name: eab82330631187dcc3e5d2dddd23dbda5752904b
2014-10-14 20:25:43 +00:00
drh
8dd8362d64
Optimize a database corruption test inside of the OP_Column opcode.
...
FossilOrigin-Name: 005e5b388a8a97bca6d1f0e06c40d68d92aa1212
2014-10-13 23:39:02 +00:00
drh
facf47a891
Use the padding word in the Mem object as temporary storage for
...
serial_type value in OP_Record, and thus avoid a redundant computation of
the serial_type for each column.
FossilOrigin-Name: 4b3b65ee5ea61e9b9671ca027940bf02689cb890
2014-10-13 20:12:47 +00:00
drh
f526dcad29
Three small optimizations to vdbeaux.c.
...
FossilOrigin-Name: 04892f8ba6c55cec4fe37bfe59b6349fd2a40698
2014-10-13 17:42:05 +00:00
drh
c22284f4b3
Reduce the CPU load imposed by sqlit3VdbeCursorMoveto() by factoring out
...
some of its functions and by avoiding unnecessary calls.
FossilOrigin-Name: c2799aece17d347c64217a0e407bb10e50c184a3
2014-10-13 16:02:20 +00:00
drh
6cf4a7dfa6
Remove the OPFLAG_CLEARCACHE flag from OP_Column. In its place, change the
...
P3 parameter of OP_SorterData to be the index of the pseudo-table cursor whose
record header cache is to be cleared. This gives a small size reduction
and performance increase.
FossilOrigin-Name: 20062f49428a2349a2dd705af570c60b499a3eef
2014-10-13 13:00:58 +00:00
drh
b53a5a9e50
Remove the VdbeCursor.lastRowid cache of the current rowid, since maintaining
...
the correct cache value uses more CPU cycles than just recomputing the rowid
on the occasions when it is actually needed. Replace it with the
VdbeCursor.aOffset field which used to be computed from VdbeCursor.aType
when needed. Saves 100 bytes of code space and runs 0.2% faster.
FossilOrigin-Name: 91384a7d727ef0f285cd430e829ba9f3852db50e
2014-10-12 22:37:22 +00:00
drh
c81aa2e120
Performance optimization and very slight size reduction for OP_Column.
...
FossilOrigin-Name: 869c30e45cc87063be423c650f16b99e8adb3df0
2014-10-11 23:31:52 +00:00
drh
d6176c4131
Simplification to the insertCell() routine in btree.c, resulting in a
...
performance boost and a very small size decrease. It turns out that the
extra work involved in sometimes avoiding an memcpy() of the first four bytes
of a record takes more time than just unconditionally copying those
four bytes.
FossilOrigin-Name: 66de15580d3c289601e67debfe1edee286f4db5f
2014-10-11 17:22:55 +00:00
drh
8683e08676
Require the SQLITE_ENABLE_RTREE compile-time option in speedtest1.c in order
...
to enable the R-Tree tests.
FossilOrigin-Name: 5d29a033b0f17b0fd74656b28a8367a9a9067f81
2014-10-11 10:52:54 +00:00
drh
4929047d1a
Make sure that a GROUP BY that also implements an ORDER BY scans the table
...
in the correct order. Fix for ticket [ba7cbfaedc7e6].
FossilOrigin-Name: 7a32fdfd4be2138c0ab00f3dc6f54a70e4e07be4
2014-10-11 02:12:58 +00:00
drh
c631faa922
Remove an unnecessary conditional from the EXPLAIN QUERY PLAN logic.
...
FossilOrigin-Name: c5dc83ebded914f07286b7f98d0a50c28c16f609
2014-10-11 01:22:16 +00:00
dan
b6453201d2
Account for the ASC/DESC properties of ORDER BY expressions when using the same index for GROUP BY and ORDER BY. Candidate fix for [ba7cbfaedc].
...
FossilOrigin-Name: 2a9573962b837973c4959465d8a5f2641d109a5a
2014-10-10 20:52:53 +00:00
drh
1f8817cb32
Restrict the scope of the explainIndexRange() function in where.c.
...
FossilOrigin-Name: c30124520027f0f860223bf842e2f09db3dafb5f
2014-10-10 19:15:35 +00:00
dan
5bd8af7c6b
Fix a failing test case in index5.test. Also tweak the way cache memory is divided between read-only and dirty pages when using SQLITE_CONFIG_PAGECACHE to reduce IO in some cases.
...
FossilOrigin-Name: 8541dfb3bbdf63dc9ab304d8a0ab8b290cdc9d96
2014-10-10 19:10:59 +00:00
drh
ab993380a2
Changes to enable compiling using VC6.
...
FossilOrigin-Name: 9ee5686ab3b0bca8cabdf455c75bd9410cdc5378
2014-10-10 18:09:52 +00:00
drh
e35626fabd
When using the -config option to releasetest.tcl, default the testing type
...
to "fulltest" if it is not specified on the command line.
FossilOrigin-Name: cf291cbe9f49396f03cfca39c2e892f27f750107
2014-10-10 17:47:00 +00:00
drh
2eeb7ae437
Provide the new "-config CONFIG" option to the test/releasetest.tcl script,
...
which allows one to run a single test configuration selected by name.
FossilOrigin-Name: d479e32be205f6cd0474f002282eae6eec613f36
2014-10-10 17:44:03 +00:00
drh
98545bb2ed
Add the estimated number of output rows to the EXPLAIN QUERY PLAN output
...
if compiled with SQLITE_EXPLAIN_ESTIMATED_ROWS. This feature is off by
default for the time being.
FossilOrigin-Name: daa8314fba9dc3c4f5e7fbda42c97604fbfc4392
2014-10-10 17:20:39 +00:00
drh
6c97789d2e
Simplify the code used to generate the text for EXPLAIN QUERY PLAN.
...
FossilOrigin-Name: beea1efc3a49cad08087fcbb18dbce71c873fe57
2014-10-10 15:47:46 +00:00
drh
681fca0018
Fix a potential problem in the whereRangeScanEst() routine when STAT4 is
...
active. The problem was introduced by recent enhancements.
FossilOrigin-Name: 68e1b4de700b5291f79249a03e1a750c6b2c9ae4
2014-10-10 15:01:46 +00:00
drh
bf59bf94b2
Cause the command-line shell to return non-zero if the final SQL statement
...
is incomplete.
FossilOrigin-Name: 177fff3b98b101b98f1e7d334b6a80530b645565
2014-10-10 13:08:33 +00:00
dan
6e1a037357
Allow FTS tokenizers to choose whether or not to consider the "*" character part of tokens or not. This restores the pre-[e21bf7a2ad] behaviour. Also fix a problem causing FTS to interpret tokens beginning with "*" characters as EOF.
...
FossilOrigin-Name: 49dfee7cd1c9ab2901b8a871a6cd00b2ead76801
2014-10-09 15:08:17 +00:00
drh
622d4f8bb1
Add a test case for the memory leak fixed by the previous check-in.
...
FossilOrigin-Name: bae36d544676c90e337381a83f4513b4d925ab05
2014-10-09 14:10:38 +00:00
drh
a8950d5038
Fix a memory leak associated with the FTS4 matchinfo() function.
...
FossilOrigin-Name: fb8da82411b80a234c6a5481622027815450996a
2014-10-09 14:00:49 +00:00
drh
8e0a8f681a
Remove an always-true branch in whereRangeScanEst(). Replace it with an
...
assert().
FossilOrigin-Name: 42e48fd3a6a6219d9bd6135d821b38c5157922ba
2014-10-08 19:33:54 +00:00
drh
3705ef6a73
Fix up test cases to account for the new SQLITE_LIMIT_WORKER_THREADS limit.
...
FossilOrigin-Name: 6483d426c4c5c772cd49412ea37e0fa7a0378904
2014-10-08 15:53:21 +00:00
drh
f6aff80525
Set the connection-specific lastRowid value before calling any SQL function.
...
FossilOrigin-Name: dff0f6422e60a7e2e4efb658aab202a119cfa702
2014-10-08 14:28:31 +00:00
drh
6a15440378
Ensure that the Pager.pTmpSpace allocation is correct even if an OOM error
...
occurs while reducing the page size.
FossilOrigin-Name: e4b43967fd9a0b4944be9ab5575bff3678be8ed5
2014-10-08 13:34:21 +00:00
dan
923c0b53be
Remove some temporary code in mallocA.test that was accidentally checked in.
...
FossilOrigin-Name: dedd15f7cd13868f3be37646dd30ab7ceac5dea7
2014-10-08 11:11:24 +00:00
drh
69afd9980e
Fix the STAT4 range scan estimates for DESC indexes.
...
FossilOrigin-Name: e3fe84005259ef9a6027d25793514cebb2d4e7e0
2014-10-08 02:53:25 +00:00
drh
9a7b41d74a
More intuitive labels on ".wheretrace" output.
...
FossilOrigin-Name: adcb3fed489b580221c7bf2692a60e24248b23a0
2014-10-08 00:08:08 +00:00
drh
722246e801
Make sure the sqlite3VdbeMemClearAndResize() routine is never called with a
...
zero size parameter, since a size of zero could lead to either a memory leak
or an assertion fault.
FossilOrigin-Name: f672a380e2e52bede95ff11a533fd9f7d412d494
2014-10-07 23:02:24 +00:00
drh
89a5833cb9
Fix the corruptI.test script so that it works with
...
SQLITE_ENABLE_OVERSIZE_CELL_CHECK and with SQLITE_DEFAULT_AUTOVACUUM=1.
FossilOrigin-Name: e405b9e4a9ef322d84b20e902234b4f6aa196b1b
2014-10-07 20:09:27 +00:00
drh
3b335fce5c
Restrict the scope of the valueToText() routine.
...
FossilOrigin-Name: 13c962b33df411a0d9ead0bb1969596faa286f79
2014-10-07 16:59:22 +00:00
drh
d231aa3a42
Enhance (and fix) the MEMTYPE tags associated with heap memory allocations
...
when SQLITE_MEMDEBUG is used.
FossilOrigin-Name: ca5b789e33c4e5ce366d8f5372d086442f84e230
2014-10-07 15:46:54 +00:00
drh
85d117bc56
Remove unreachable branches in decodeIntArray() when compiling without
...
STAT3 or STAT4.
FossilOrigin-Name: 80e1baa5c225c78902e08dbea9d577ff5757847f
2014-10-06 18:33:49 +00:00
dan
61a157254f
Improve the accuracy of the estimates used when searching an index for values not present in any stat4 samples.
...
FossilOrigin-Name: 3aff9a9cac7aa994dfdaa0ab5c23ae73a1e820f0
2014-10-06 14:37:48 +00:00
drh
b8e8d5055a
Fix a harmless compiler warning inside an assert() in FTS4.
...
FossilOrigin-Name: 418f3c9ad28672e5fe38d772d34e7cf8d26bc0e1
2014-10-06 12:41:57 +00:00
drh
df868a4fbf
Tweaks to documentation on sqlite3_open() and sqlite3_bind(). No code changes.
...
FossilOrigin-Name: b8f7f19dc06c59de2e194d83e6c052fb7d28c71d
2014-10-04 19:31:53 +00:00
drh
00729cba46
Updates to documentation and requirements marks. No code changes.
...
FossilOrigin-Name: 0f8102d71a0ee828629f037775ad86fe2a544120
2014-10-04 11:59:33 +00:00
dan
4ee3eb0ad4
Add a test to show that the change on this branch is effective.
...
FossilOrigin-Name: fc619be057975b8be6d0958024c5d436edbdf084
2014-10-04 10:22:01 +00:00
drh
75b170b164
Avoid leaking Index.aiRowEst memory if an OOM causes a rollback which deletes
...
the index before the aiRowEst deletion code in sqlite3AnalysisLoad() routine
has a chance to run. Since the aiRowEst now might be deleted from freeIndex()
which does not always have a db pointer, make sure the aiRowEst memory is
not held in lookaside.
FossilOrigin-Name: efd87ba142723ba131fcc985db6eb45c5a3c637b
2014-10-04 00:07:44 +00:00
dan
0c1a18b294
Fix a division-by-zero error that might occur if the sqlite_stat1 table is corrupt.
...
FossilOrigin-Name: f9c053b23ece877a7fdbe82204a10592f2d24a2d
2014-10-03 19:29:39 +00:00
dan
43085d7425
Improve the accuracy of the estimates used when searching an index for values not present in any stat4 samples under some circumstances.
...
FossilOrigin-Name: e6f7f97dbc677c9f01b23142928c3fa7307c2fba
2014-10-03 19:16:53 +00:00
drh
79f7af9a9e
Add requirements marks on the sqlite3_db_status() interface implementation.
...
Fix a typo in the documentation. Fix the new sqlite3_result_text64() routine
so that it works correctly with an encoding parameter of SQLITE_UTF16.
FossilOrigin-Name: d2fc322728331ae2d147c8496129df5e3c655eb5
2014-10-03 16:00:51 +00:00
drh
8da47419dd
Update to requirements marks related to changes in the memory allocation
...
interface and enhancement of the documentation regarding DEFAULT clauses
in CREATE TABLE.
FossilOrigin-Name: 440705b98a3429b830ea85e71cc1e414bc6d8058
2014-10-03 14:54:47 +00:00
drh
2a3d1d17fd
Avoid a NULL pointer deference when processing the IS operator if the
...
right-hand side is an illegal "#ID" style variable.
Fix for ticket [8c32a33a53092c85a15b]
FossilOrigin-Name: ffe7573636c8057614b02f0a85559e1857fd04e4
2014-10-02 21:52:35 +00:00
drh
ccaba81e26
Show the TK_DOT operator in the TreeView debugging output.
...
No changes to production code.
FossilOrigin-Name: 07c89940c49a5dca3205a4b6fa8290f23bcb6e10
2014-10-01 13:17:34 +00:00