]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Tue, 7 Oct 2014 20:09:27 +0000 (20:09 +0000)]
Fix the corruptI.test script so that it works with
SQLITE_ENABLE_OVERSIZE_CELL_CHECK and with SQLITE_DEFAULT_AUTOVACUUM=1.
FossilOrigin-Name:
e405b9e4a9ef322d84b20e902234b4f6aa196b1b
drh [Tue, 7 Oct 2014 16:59:22 +0000 (16:59 +0000)]
Restrict the scope of the valueToText() routine.
FossilOrigin-Name:
13c962b33df411a0d9ead0bb1969596faa286f79
drh [Tue, 7 Oct 2014 15:46:54 +0000 (15:46 +0000)]
Enhance (and fix) the MEMTYPE tags associated with heap memory allocations
when SQLITE_MEMDEBUG is used.
FossilOrigin-Name:
ca5b789e33c4e5ce366d8f5372d086442f84e230
drh [Mon, 6 Oct 2014 18:33:49 +0000 (18:33 +0000)]
Remove unreachable branches in decodeIntArray() when compiling without
STAT3 or STAT4.
FossilOrigin-Name:
80e1baa5c225c78902e08dbea9d577ff5757847f
dan [Mon, 6 Oct 2014 14:37:48 +0000 (14:37 +0000)]
Improve the accuracy of the estimates used when searching an index for values not present in any stat4 samples.
FossilOrigin-Name:
3aff9a9cac7aa994dfdaa0ab5c23ae73a1e820f0
drh [Mon, 6 Oct 2014 12:41:57 +0000 (12:41 +0000)]
Fix a harmless compiler warning inside an assert() in FTS4.
FossilOrigin-Name:
418f3c9ad28672e5fe38d772d34e7cf8d26bc0e1
drh [Sat, 4 Oct 2014 19:31:53 +0000 (19:31 +0000)]
Tweaks to documentation on sqlite3_open() and sqlite3_bind(). No code changes.
FossilOrigin-Name:
b8f7f19dc06c59de2e194d83e6c052fb7d28c71d
drh [Sat, 4 Oct 2014 11:59:33 +0000 (11:59 +0000)]
Updates to documentation and requirements marks. No code changes.
FossilOrigin-Name:
0f8102d71a0ee828629f037775ad86fe2a544120
dan [Sat, 4 Oct 2014 10:22:01 +0000 (10:22 +0000)]
Add a test to show that the change on this branch is effective.
FossilOrigin-Name:
fc619be057975b8be6d0958024c5d436edbdf084
drh [Sat, 4 Oct 2014 00:07:44 +0000 (00:07 +0000)]
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
dan [Fri, 3 Oct 2014 19:29:39 +0000 (19:29 +0000)]
Fix a division-by-zero error that might occur if the sqlite_stat1 table is corrupt.
FossilOrigin-Name:
f9c053b23ece877a7fdbe82204a10592f2d24a2d
dan [Fri, 3 Oct 2014 19:16:53 +0000 (19:16 +0000)]
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
drh [Fri, 3 Oct 2014 16:00:51 +0000 (16:00 +0000)]
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
drh [Fri, 3 Oct 2014 14:54:47 +0000 (14:54 +0000)]
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
drh [Thu, 2 Oct 2014 21:52:35 +0000 (21:52 +0000)]
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
drh [Wed, 1 Oct 2014 13:17:34 +0000 (13:17 +0000)]
Show the TK_DOT operator in the TreeView debugging output.
No changes to production code.
FossilOrigin-Name:
07c89940c49a5dca3205a4b6fa8290f23bcb6e10
dan [Wed, 1 Oct 2014 12:01:10 +0000 (12:01 +0000)]
Avoid ever writing before the start of an allocated buffer in the DIRECT_OVERFLOW_READ code. Fix for [
e3a290961a6 ].
FossilOrigin-Name:
c3c15d20c6913811956a5041c959a56ca4eeb5eb
drh [Wed, 1 Oct 2014 01:52:42 +0000 (01:52 +0000)]
Merge the latest enhancements from trunk.
FossilOrigin-Name:
2695772c984c215649a16e1e3e18a8048a6a60dd
drh [Tue, 30 Sep 2014 19:04:41 +0000 (19:04 +0000)]
Improvements to the new syntax-tree output routines: Omit the "END SELECT"
mark and instead terminate the graph at the last item. Increase the maximum
tree depth to 100.
FossilOrigin-Name:
5ce05757aac80b99c3b2141cd301809f8e28e661
drh [Tue, 30 Sep 2014 17:31:23 +0000 (17:31 +0000)]
Enable the query planner to deal with WHERE clauses that have OR terms
nested within AND terms that are nested within OR terms. Also remove an
unused function declaration.
FossilOrigin-Name:
b6b289182f6590288ebc7b9efbcb29b6b4480538
drh [Tue, 30 Sep 2014 17:03:35 +0000 (17:03 +0000)]
Further enhancements to the "wheretrace" debugging output.
FossilOrigin-Name:
670993eb8113f386cb2cb8b1507917f6da3b4d98
drh [Tue, 30 Sep 2014 14:14:19 +0000 (14:14 +0000)]
Enhanced debug output for OR-logic in the query loop optimizer.
FossilOrigin-Name:
2e375eae473e4a9f2e7870d59e22ba39051ecbce
drh [Tue, 30 Sep 2014 13:46:49 +0000 (13:46 +0000)]
Show tree diagrams of data structures in the debugging output when the 0x100
bit is set on sqlite3WhereTrace or sqlite3SelectTrace.
FossilOrigin-Name:
92e0b4bd4d75e8b000586e51a07b3e181d9af20b
drh [Tue, 30 Sep 2014 12:33:33 +0000 (12:33 +0000)]
Remove the SQLITE_ENABLE_TREE_EXPLAIN compile-time option. Add alternative
debugging display routines: sqlite3TreeViewExpr(), sqlite3TreeViewExprList(),
and sqlite3TreeViewSelect().
FossilOrigin-Name:
4ff51325d6b41d0c59e303b573700ec80c51d216
drh [Mon, 29 Sep 2014 15:42:01 +0000 (15:42 +0000)]
Fix the header comment in sqlite3VdbeDeletePriorOpcode(). No changes to
code.
FossilOrigin-Name:
7fb1626866c2f8dad84c7e6184824be3efd71ca2
drh [Mon, 29 Sep 2014 15:00:28 +0000 (15:00 +0000)]
Ensure that the OP_Prev opcode verifies that content has not been deleted
out from under the cursor. Fix for ticket [
209d31e3161b9e9ff ].
FossilOrigin-Name:
414f0d6a647a4d040b5463c73c5e15e699d85b4c
drh [Sat, 27 Sep 2014 20:45:48 +0000 (20:45 +0000)]
Change the names of the stream interface APIs to be of the form
"_strm" instead of "_str". In other words, added an "m" to the end, to
try to make it clear that we are talking about a "stream" and not a "string.
FossilOrigin-Name:
1f44bfdc237ee6304f4aa56e5c5d1c0d74fcc944
drh [Sat, 27 Sep 2014 19:51:50 +0000 (19:51 +0000)]
Merge recent trunk changes (performance enhancements) into the sessions
branch.
FossilOrigin-Name:
497367cb57345dd37793e5f369b34d12be56172e
dan [Sat, 27 Sep 2014 18:18:32 +0000 (18:18 +0000)]
Fix a segfault in the sessions module that could follow an OOM.
FossilOrigin-Name:
09985fa6b60a0bf38e23bbccd4d8e1d1cbf66124
dan [Sat, 27 Sep 2014 16:33:09 +0000 (16:33 +0000)]
Fix a segfault in the streaming API functions triggered by a very long table name.
FossilOrigin-Name:
d2642543eed54da1ac0f757d43dd4d72482eb752
dan [Sat, 27 Sep 2014 12:26:18 +0000 (12:26 +0000)]
Improve sessions module documentation and comments. Fix some other code issues.
FossilOrigin-Name:
bfc8bd80f8b225cebc66478448510ce84223ae7d
drh [Sat, 27 Sep 2014 05:00:25 +0000 (05:00 +0000)]
Reduce the amount of memcpy() required by defragmentPage().
FossilOrigin-Name:
3edab9957cc7bb90b52fd40b02613c2cb03fc166
mistachkin [Fri, 26 Sep 2014 18:30:11 +0000 (18:30 +0000)]
Add an assert() to verify the last-row-id for the database just prior to calling a SQL function.
FossilOrigin-Name:
d026f0c944ce812732d3595eaa3c5d432a86c7dd
dan [Fri, 26 Sep 2014 10:52:21 +0000 (10:52 +0000)]
Fix a problem with concatenating patchsets containing DELETE and INSERT operations on the same row.
FossilOrigin-Name:
4d8537eafb40e3687abc057ba26a1f7014f2c2d9
drh [Fri, 26 Sep 2014 02:41:05 +0000 (02:41 +0000)]
Fix the "PRAGMA integrity_check" command so that it avoids formatting error
message context messages until it actually needs to generate an error message.
This avoids much formatting, and hence greatly improves the performance of
"PRAGMA integrity_check" in the common case when there are no errors. It also
makes the code a little smaller.
FossilOrigin-Name:
83913515830aa850f9e38406f9422d7e88dcab66
drh [Fri, 26 Sep 2014 01:10:02 +0000 (01:10 +0000)]
If an SQL function makes a recursive call to do an INSERT into the same
database, make sure that the last_insert_rowid() for that INSERT is recorded.
FossilOrigin-Name:
e93aecc090c2a1d3c231bb2bde044886eff0bdf7
dan [Thu, 25 Sep 2014 20:43:28 +0000 (20:43 +0000)]
Add streaming version of sqlite3changeset_concat().
FossilOrigin-Name:
88eb6656bdb047a104837a2e15e7fe18c0a7a159
drh [Thu, 25 Sep 2014 17:42:41 +0000 (17:42 +0000)]
Minor code reformatting and comment change, to improve clarity.
No logic changes.
FossilOrigin-Name:
baeb72a356d73e6f624edacd2986ab766105e177
dan [Thu, 25 Sep 2014 14:54:20 +0000 (14:54 +0000)]
Add streaming version of sqlite3changeset_invert() to sessions module.
FossilOrigin-Name:
8ded6a46794c7bff1c8b790c662ba7e92f576380
drh [Thu, 25 Sep 2014 13:17:30 +0000 (13:17 +0000)]
Simplifications to the SQL function and aggregate calling procedures.
FossilOrigin-Name:
3467049a1705b49905ea88a5c6becb6fe318f2fa
drh [Thu, 25 Sep 2014 12:31:28 +0000 (12:31 +0000)]
Simplification to the random rowid picking logic that begins running when
the maximum possible rowid has already been used.
FossilOrigin-Name:
1330c72e172324c68ab49e5bb2ceba985935ae01
drh [Thu, 25 Sep 2014 11:08:57 +0000 (11:08 +0000)]
Still more performance enhancements to the LIKE and GLOB operators.
FossilOrigin-Name:
6c8924cacc2b875270770fed2cc3b1884f57a655
drh [Thu, 25 Sep 2014 03:51:37 +0000 (03:51 +0000)]
More performance optimization for the LIKE and GLOB operators.
FossilOrigin-Name:
5ab1023d6cfe31fa8a194804b8216058977ac973
drh [Thu, 25 Sep 2014 02:44:29 +0000 (02:44 +0000)]
Change that might allow SQLite to build and work using the EBCDIC character
set.
FossilOrigin-Name:
ef30e0352b3d4a29749cd0872c10e45a6649ec52
drh [Thu, 25 Sep 2014 00:56:00 +0000 (00:56 +0000)]
Size reduction and performance improvement in the LIKE and GLOB operators.
FossilOrigin-Name:
b2c89ef49cd19b8031a8149a2dc47cea07dd04e0
drh [Wed, 24 Sep 2014 19:47:27 +0000 (19:47 +0000)]
Have each open database allocate its pTmpSpace when the first write cursor
is opened, rather than on each insert or delete, for a small space savings
and performance boost.
FossilOrigin-Name:
99323552c001bc9173eb2a44542234c8ef7a9845
drh [Wed, 24 Sep 2014 18:31:07 +0000 (18:31 +0000)]
Small performance and size optimization for btreeUnlockIfUnused().
FossilOrigin-Name:
13c746f85d254475b10c3dd58555acd3bbead0ce
dan [Wed, 24 Sep 2014 17:13:20 +0000 (17:13 +0000)]
Add streaming version of sqlite3changeset_apply(). Tests and fixes for the same and sqlite3changeset_start_str().
FossilOrigin-Name:
b917fc146876f764442de08d5ec36e5b4cf5ab52
drh [Wed, 24 Sep 2014 13:20:22 +0000 (13:20 +0000)]
Do not allow parameters in a DEFAULT clause of a CREATE TABLE statement.
Ticket [
78c0c8c3c9f7c1 ].
FossilOrigin-Name:
1ad2bc1ed4c4ac81ac67a9660761f0eeb47c7fef
drh [Wed, 24 Sep 2014 02:05:41 +0000 (02:05 +0000)]
Have the clearCell() routine return the cell size to the caller, rather
than have the caller make a separate call to cellSizePtr().
FossilOrigin-Name:
f21d217583c205dc17f98bb4877fd4ed98cefcb1
drh [Wed, 24 Sep 2014 01:23:00 +0000 (01:23 +0000)]
Shorten all lines of source code in btree.c to at most 80 characters.
No logical changes.
FossilOrigin-Name:
5dd41cdbfebdd088ebd9a90a394ee296c207ad90
drh [Wed, 24 Sep 2014 00:59:08 +0000 (00:59 +0000)]
Add the MemPage.noPayload boolean and use it to help
cellSizePtr() and btreeParseCellPtr() run faster.
FossilOrigin-Name:
8e3375313ebbf26b68561f3ed31d2a488222e5d0
drh [Tue, 23 Sep 2014 23:12:53 +0000 (23:12 +0000)]
Remove an unused C-preprocessor macro. No functional changes to the code.
FossilOrigin-Name:
f480582ccae0e9a917d4523191025bd16016ba64
drh [Tue, 23 Sep 2014 22:36:25 +0000 (22:36 +0000)]
Avoid calling btreeParseCellPtr() from within fillInCell() since most of
what btreeParseCellPtr() computes is ignored by fillInCell(). Instead, have
fillInCell() compute the values it needs inline. Performance improvement.
FossilOrigin-Name:
4147f6671e3faa8ddffab8387a6c7d9b5b962fc8
drh [Tue, 23 Sep 2014 21:25:19 +0000 (21:25 +0000)]
Simplify the CellInfo structure for a size reduction and performance
improvement.
FossilOrigin-Name:
bf59df66b3613c38cfb13a68091b8328ebb22c78
dan [Tue, 23 Sep 2014 20:39:55 +0000 (20:39 +0000)]
Begin adding 'streaming' APIs to sessions module. This is a work in progress.
FossilOrigin-Name:
3c7d3d950bbf5f5ed3696ebc61c77ca48bafe2b5
drh [Tue, 23 Sep 2014 18:30:00 +0000 (18:30 +0000)]
Add the "multiplex_truncate" PRAGMA to the multiplexor extension, for
querying and setting the truncate flag on a database connection.
FossilOrigin-Name:
d2962a5f388f30a02429e0c8b87399f482b5604c
drh [Tue, 23 Sep 2014 01:40:59 +0000 (01:40 +0000)]
Adjust skip-scan cost estimates slightly so that a full table scan is
preferred over a skip-scan to a column with only two distinct values.
FossilOrigin-Name:
ae9a42b268ad3f7d21a5813bb931e795c6917014
drh [Mon, 22 Sep 2014 20:38:10 +0000 (20:38 +0000)]
Fix to payload size overflow detection in the cellSizePtr() change of
the previous check-in.
FossilOrigin-Name:
7609744014c6a84a8379794a0351a2e9626ec86b
drh [Mon, 22 Sep 2014 19:51:35 +0000 (19:51 +0000)]
Size reduction and substantial performance increase for cellSizePtr().
FossilOrigin-Name:
bc8bbf3207288d160287519c3b7123997996b440
drh [Mon, 22 Sep 2014 14:30:51 +0000 (14:30 +0000)]
Tune the query planner to be more aggressive about using automatic indexes
on views and subqueries for which there is not opportunity to declare a
persistent schema index.
FossilOrigin-Name:
41de1643bfc9ae25e20790d707e2789b665baa2b
drh [Mon, 22 Sep 2014 03:22:27 +0000 (03:22 +0000)]
Disable shared memory operations using the unix-nolock VFS.
FossilOrigin-Name:
10a6e510497b471d67ac3dfb19ff256a7d18adf4
drh [Sun, 21 Sep 2014 22:49:20 +0000 (22:49 +0000)]
Merge all recent trunk changes into the sessions branch.
FossilOrigin-Name:
6406b77f2c447751a2fbb16f01c61cdcfd6af59e
drh [Sun, 21 Sep 2014 22:31:52 +0000 (22:31 +0000)]
Correctly handle an ORDER BY clause on an outer query when applying
the compound-subquery flattening optimization. Ticket [
89398880bcfff ].
Also add the SQLITE_ENABLE_SELECTTRACE option for additional debugging
and analysis information about select statement processing.
FossilOrigin-Name:
d5880abd63c83c88e135257373afa0a3fd88297e
drh [Sun, 21 Sep 2014 20:31:26 +0000 (20:31 +0000)]
drh [Sun, 21 Sep 2014 17:51:37 +0000 (17:51 +0000)]
Add the "showauth" extension in ext/misc.
FossilOrigin-Name:
28d52c1c38d849f099bc777f5987d1ef89680c2a
drh [Sun, 21 Sep 2014 00:27:26 +0000 (00:27 +0000)]
Improved ".selecttrace" output.
FossilOrigin-Name:
c0b61f7092a7fd2c5f51db26ce7a7a5c75c227fe
dan [Sat, 20 Sep 2014 20:38:48 +0000 (20:38 +0000)]
drh [Sat, 20 Sep 2014 20:24:49 +0000 (20:24 +0000)]
Fix the SELECTTRACE_ENABLE macro so that it doesn't cause problems for
testfixture. Add new SELECTTRACE() calls.
FossilOrigin-Name:
f1ba68f131d2f03e4a7bc50cde23a7609d384279
drh [Sat, 20 Sep 2014 18:18:33 +0000 (18:18 +0000)]
Enable SELECT query planning tracing when compiled with
SQLITE_ENABLE_SELECTTRACE and either SQLITE_DEBUG or SQLITE_TEST.
FossilOrigin-Name:
cbe0cf9ddf46f0a678c85d49bfa74e3b7712e1a1
drh [Sat, 20 Sep 2014 00:35:05 +0000 (00:35 +0000)]
Fix the usage of the _GNU_SOURCE and _BSD_SOURCE macros in the main
internal header file, sqliteInt.h. Set HAVE_STRCHRNUL to 1 by default on
Linux only.
FossilOrigin-Name:
59e2c9df02d7e988c5ad44c560ead1e5288b12e7
drh [Sat, 20 Sep 2014 00:29:20 +0000 (00:29 +0000)]
Only enable HAVE_STRCHRNUL by default on linux, as that is the only place
it appears to work by default.
FossilOrigin-Name:
0fac2c045f47c7735af4eb68ced81d8b43622a1f
mistachkin [Sat, 20 Sep 2014 00:02:23 +0000 (00:02 +0000)]
Revise macro usage in 'sqliteInt.h'.
FossilOrigin-Name:
35db3e2f350ca2bc6bb9e1a647aec7f93bfb7065
drh [Fri, 19 Sep 2014 22:44:20 +0000 (22:44 +0000)]
Simplify two conditionals and add testcase() macros to the affinity transform
logic in the comparison operators.
FossilOrigin-Name:
544664cadfb4e504bc0b321c865d1ecb8a831e20
drh [Fri, 19 Sep 2014 22:30:49 +0000 (22:30 +0000)]
Recognize the invariant that a Mem object cannot be MEM_Dyn and have
a non-zero szMalloc at the same time. Enforce this with assert()s and
exploit it in the sqlite3VdbeMemClearAndResize() routine for a performance
increase.
FossilOrigin-Name:
3b21cf2b284048da4b728a5d6ec89e5c330144d4
drh [Fri, 19 Sep 2014 22:01:54 +0000 (22:01 +0000)]
Tighten the conditions under which applyNumericAffinity() be called and add
assert() statements to prove that it is never called otherwise.
FossilOrigin-Name:
e996ca32cb643c558b616c0dd872f3351b6aa3ef
drh [Fri, 19 Sep 2014 20:13:25 +0000 (20:13 +0000)]
Fix the affinity on inserts into the ANALYZE tables. Change the affinity
characters to be upper case, to make the P5 parameter of comparison operators
easier to read.
FossilOrigin-Name:
3f3ca76aea38d566a574f4403b375bdac32854ed
drh [Fri, 19 Sep 2014 19:43:20 +0000 (19:43 +0000)]
Do not attempt to extend the temp file if VFS version 3 is not supported and
hence memory mapped I/O is unavailable.
FossilOrigin-Name:
3ab20ba14f0204efeec62c7dbb87cb3f60e2497f
drh [Fri, 19 Sep 2014 19:00:48 +0000 (19:00 +0000)]
Make the "nolock" VFS on unix a version-3 VFS so that the sorter can
use memory-mapped I/O.
FossilOrigin-Name:
3db78d6100a1ecf58c18eec3abefa7d1250c649c
dan [Fri, 19 Sep 2014 18:08:39 +0000 (18:08 +0000)]
Add further tests to ota5.test. Add "ota.test", for running all ota tests.
FossilOrigin-Name:
95ffdaa542df1c28fac97422e5a4b2c5cb81d50a
drh [Fri, 19 Sep 2014 16:56:45 +0000 (16:56 +0000)]
Remove a local variable from the OP_Column implementation, resulting in a
modest size reduction and a performance increase.
FossilOrigin-Name:
6199760d1340858d97c845177986b783da915d9e
drh [Fri, 19 Sep 2014 16:13:12 +0000 (16:13 +0000)]
Small size reduction and performance increase for releaseMemArray().
FossilOrigin-Name:
24cd32d681df58f687b2afbe4b13d579e3efdd4b
drh [Fri, 19 Sep 2014 16:02:06 +0000 (16:02 +0000)]
Updates to comments. No code changes.
FossilOrigin-Name:
9b42c3da6b2593a10b8fe4b2fcc3d650132625c1
drh [Fri, 19 Sep 2014 15:28:33 +0000 (15:28 +0000)]
The OP_Column opcode runs faster and is smaller by manually in-lining the
code that persists string values in the output register.
FossilOrigin-Name:
36b613ccf0ddb764af90841994da91b7fcaa8f00
dan [Fri, 19 Sep 2014 15:06:23 +0000 (15:06 +0000)]
Add extra tests for the ota extension.
FossilOrigin-Name:
1e468fe1e408e513a1e1bbe72fe2a240f2991b3d
drh [Fri, 19 Sep 2014 04:42:38 +0000 (04:42 +0000)]
Add the sqlite3VdbeMemClearAndResize() function. Fix a sorting-index
prefilter problem.
FossilOrigin-Name:
987a7a211913b3949da20e43423af376f72a28ba
drh [Fri, 19 Sep 2014 02:01:37 +0000 (02:01 +0000)]
Make sure that the sorting-index pre-filter recognizes that a rowid reference
might be sortable. This fixes a performance regression.
FossilOrigin-Name:
72727b68cd07969165f1f0943cc7e1a265436653
drh [Fri, 19 Sep 2014 00:43:39 +0000 (00:43 +0000)]
Add the sqlite3VdbeMemClearAndResize() interface to be used in place of
sqlite3VdbeMemGrow().
FossilOrigin-Name:
5b9b8987797abf7c68d2c3154f6657be9b8b1c8f
drh [Thu, 18 Sep 2014 21:25:33 +0000 (21:25 +0000)]
Add the Mem.szMalloc element to the Mem object and use it to keep track of
the size of the Mem.zMalloc allocation.
FossilOrigin-Name:
9c09ac353df6041808cace41880f4729ee73f5e1
mistachkin [Thu, 18 Sep 2014 18:55:47 +0000 (18:55 +0000)]
Correct typos in comments. No changes to code.
FossilOrigin-Name:
55879932116d373c95a5f32ec44b53a9c3f4db24
dan [Thu, 18 Sep 2014 17:57:46 +0000 (17:57 +0000)]
Update the ota extension to support SQLITE_ENABLE_8_3_NAMES builds.
FossilOrigin-Name:
718da6de870231d358384473b40e81c4394b8067
drh [Thu, 18 Sep 2014 17:52:15 +0000 (17:52 +0000)]
Merge the Mem.r value into the MemValue union as Mem.u.r. Hence, a Mem can
now store an integer or a real but not both at the same time. Strings are
still stored in a separate element Mem.z, for now.
FossilOrigin-Name:
4c8c89d7e62aecfe2eb735f7bb114aed6b452847
dan [Thu, 18 Sep 2014 16:38:10 +0000 (16:38 +0000)]
Use quotes instead of angle-brackets to include sqlite3.h from sqlite3ota.h.
FossilOrigin-Name:
fce9c6ccf101d28492a84b85463433f32ef569fb
drh [Thu, 18 Sep 2014 16:28:59 +0000 (16:28 +0000)]
Performance improvement for affinity transformations on comparison operators.
FossilOrigin-Name:
d7afdcbac24350b73a30c06c45cf0f2122820e4f
dan [Thu, 18 Sep 2014 15:57:22 +0000 (15:57 +0000)]
Remove some c++isms from sqlite3ota.c.
FossilOrigin-Name:
0da1862b1b68f15c7c14286a982dda886d1e3b4a
dan [Thu, 18 Sep 2014 15:22:48 +0000 (15:22 +0000)]
Add new file ext/ota/README.txt, containing notes regarding the implementation of the ota extension.
FossilOrigin-Name:
3c6e1cbb4baaebc5958ab7276f27ff0ba14f4fa2
dan [Thu, 18 Sep 2014 14:48:38 +0000 (14:48 +0000)]
Add an API to query an ota handle for the total number of key/value operations performed so far.
FossilOrigin-Name:
e3943fa7bbbfc5e16f73a494d8fa54d19e9cfcf9
drh [Thu, 18 Sep 2014 14:36:00 +0000 (14:36 +0000)]
Since numeric affinity is the most common case, check it first. Interchange
the NONE and TEXT affinity codes for easier checking of no affinity.
FossilOrigin-Name:
4ef4c9a7c8510203bce0941dda2f76ded8da1de2
dan [Thu, 18 Sep 2014 11:31:52 +0000 (11:31 +0000)]
Merge latest trunk changes with this branch.
FossilOrigin-Name:
67ea2979d5831b6d0d55173bd9413b21644cf6a1
dan [Thu, 18 Sep 2014 11:15:17 +0000 (11:15 +0000)]
Fix an ota bug causing attempts to write to tables with more than 8 columns to fail.
FossilOrigin-Name:
7da98ca2422166dc5d68607541707f41b77b5784