dan
dadafa881f
Remove the mutex from test_multiplex.c.
...
FossilOrigin-Name: 6374978e8f1ac091394a9f5a1896be92af658bcd
2016-10-27 14:51:02 +00:00
drh
c52496f57f
Make sure left-join markings are transferred to the virtual scalar
...
subexpressions when decomposing a vector comparison in the ON clause of
a LEFT JOIN.
Fix for ticket [fef4bb4bd9185ec8f].
FossilOrigin-Name: 619f5cc71774a37648e185c8502d7af14eb09b7f
2016-10-27 01:02:20 +00:00
drh
9904298bb3
Small size reduction and performance enhancement in whereScanInit().
...
FossilOrigin-Name: c23f5ef337533c1ec6e3ba78a2910352181cc9ee
2016-10-26 18:41:43 +00:00
drh
392ddeb12d
Small size reduction and performance improvement in whereScanNext().
...
FossilOrigin-Name: d861ee17eb900a607de6ec3f4a5d5c24cfb834a0
2016-10-26 17:57:40 +00:00
dan
d15f430111
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
...
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.
FossilOrigin-Name: ec9dab8054c71d112c68f58a45821b38c2a45677
2016-10-26 16:05:10 +00:00
dan
b40897ab5e
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
...
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.
FossilOrigin-Name: e7b9bc678ecb75c594d9d3ade12a99a8d551cdc9
2016-10-26 15:46:09 +00:00
drh
d240f091c6
Merge the SQLITE_ENABLE_URI_00_ERROR compile-time option.
...
FossilOrigin-Name: 86675ae0abc78960a2faec55d115804acfc3be6d
2016-10-26 13:58:47 +00:00
dan
635f83c062
Add extra tests to check the result of including a %00 escape in a URI
...
when ENABLE_URI_00_ERROR is defined.
FossilOrigin-Name: 1aaa06e37f44309c62335d8eda59ca6890d4be9d
2016-10-26 13:44:07 +00:00
dan
5c35e90377
Add compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00"
...
escape found in a URI is treated as an error.
FossilOrigin-Name: e8a9bfece27e2af178a206ad6bce3f24d64e7ee4
2016-10-26 12:15:41 +00:00
dan
01e697b4ec
Add test case to demonstrate a "BEGIN EXCLUSIVE" command returning
...
SQLITE_BUSY_SNAPSHOT.
FossilOrigin-Name: b115856408b6aa5538be67beb619d7aff0630bea
2016-10-25 15:06:11 +00:00
drh
7ad3eb63cf
Performance optimization in moveToRoot(). Avoid repeated validity checking of
...
the root page on each call. Once is enough.
FossilOrigin-Name: 98795c2dd9a6d8fa8d49a9f5c36cdf824cae7246
2016-10-24 01:01:09 +00:00
drh
2df45e02f4
In the sessions module, avoid recording a change if an UPDATE statement
...
overwrites a column with REAL affinity containing an integer value with
the same value.
FossilOrigin-Name: 5f3e602831ba2ecaf8ba5411efb387afcde05a33
2016-10-22 01:22:30 +00:00
dan
e43635aaa7
In the sessions module, avoid recording a change if an UPDATE statement
...
overwrites a column with REAL affinity containing an integer value with the same value.
FossilOrigin-Name: b861328ab9ceec6926d97658c3606e6ae9ad39bf
2016-10-21 21:21:45 +00:00
drh
41f5f6ec2c
Add ".mode quote" to the command-line shell.
...
FossilOrigin-Name: c4f5fa78cd8207ce1e46e32e632b8f6ee86047e1
2016-10-21 17:39:30 +00:00
dan
e24452edef
Avoid using the "direct overflow read" optimization to read large blobs if the
...
pager layer has a wal file open - even if the database header indicates that
the db is not a wal database.
FossilOrigin-Name: b54c15f11796a75683eec4b502a22ccb87d621c6
2016-10-21 10:49:39 +00:00
dan
ceb97c1107
If SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ" to the list of symbols returned by "PRAGMA compile_options".
...
FossilOrigin-Name: b7d9727bff2e840af4b090872c991693e78e6076
2016-10-21 10:09:22 +00:00
dan
86873baa58
Add test case to incrblob4.test. No changes to code.
...
FossilOrigin-Name: fd9c6ff05f2052810549a1a6a384f4b40f4ba4ac
2016-10-20 11:48:48 +00:00
drh
c3191d236a
Minor simplification of the comparison opcodes.
...
FossilOrigin-Name: 56474ebca3fdddb8f3c5156f06dc42dc0a65256c
2016-10-18 16:36:15 +00:00
drh
ba69061ebc
Fix harmless uninitialized variable warnings in speedtest1.c.
...
FossilOrigin-Name: 2aa7a03b8632dbfd9741018b5b19c372dcfd3647
2016-10-18 15:29:57 +00:00
drh
f8a89ca5dd
Add the --repeat option to speedtest1.c and speed-check.sh.
...
FossilOrigin-Name: 6ca0e06b21b0d5f7ae5bcb7839a11a45da0d2cea
2016-10-18 14:35:55 +00:00
mistachkin
47d00872fc
Escape non-ASCII character from an ICU extension comment.
...
FossilOrigin-Name: 5ec02ecf3d20ce7e3f5249e9a3684f9b67a7d703
2016-10-17 18:44:11 +00:00
mistachkin
5f0b8a0e30
Corrections to a couple recently added 'filectrl.test' results.
...
FossilOrigin-Name: 3d89dc4544bc51f8c9fa63a6ecf0458f6d10fc9f
2016-10-17 18:33:36 +00:00
dan
1480095ff5
Changes to support interrupting a checkpoint using sqlite3_interrupt().
...
FossilOrigin-Name: c88d36e251abec24aa7e37cf550e148904b9fd2d
2016-10-17 15:28:39 +00:00
drh
cee11adaaa
Small size reduction and performance increase in the string duplicator.
...
FossilOrigin-Name: cda998f080cb00779d8c0d1c83d8fe2b74462cd4
2016-10-17 00:48:06 +00:00
drh
f013e20c66
Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake.
...
No changes to code.
FossilOrigin-Name: 16d88a907730e3773a1320dbaf1f82c2bc71d71f
2016-10-15 18:37:05 +00:00
dan
1cb3c7c415
Add test case to hook.test. No changes to non-test code.
...
FossilOrigin-Name: 2674d779f5453ea6b709a39618d4b8017ab2e3fb
2016-10-15 08:56:18 +00:00
mistachkin
8705f868e0
Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control.
...
FossilOrigin-Name: 16039be3739b8d3b34a1e6093eaebb09e07f984b
2016-10-14 21:27:50 +00:00
drh
9e31fe02ba
Bump the version number in anticipation of the next development cycle.
...
FossilOrigin-Name: aa6de9c40ba2d906772b9032fd5d798661f6d4cc
2016-10-14 21:16:27 +00:00
drh
813646c182
Version 3.15.0
...
FossilOrigin-Name: 707875582fcba352b4906a595ad89198d84711d8
2016-10-14 10:20:30 +00:00
drh
989412a1cf
Take care to avoid integer overflow when doing the initial page cache
...
allocation with an excessively large cache_size setting.
FossilOrigin-Name: 4d66ac98deaa85218be7ff0eb254f78b96d8e8d4
2016-10-13 12:56:18 +00:00
drh
c436a03d02
Avoid reading the -1-th element of an array in the query planner. Fix to a
...
bug introduced by check-in [8e2b25f9b8a7] from earlier today. Curiously,
the problem only appeared on 32-bit systems.
FossilOrigin-Name: 443913d582bcd953d85159047541592e2f68ade3
2016-10-12 18:55:53 +00:00
drh
432697467f
Add to sqlite3_analyzer command-line options --version and --tclsh, and also
...
the undocumented --debug option.
FossilOrigin-Name: e87d02d289a2016ea3ee074e914b07a8ac22b21f
2016-10-12 18:26:26 +00:00
drh
013ae68b25
New testcase() macros to ensure coverage of the ORDER BY LIMIT optimization
...
code in where.c.
FossilOrigin-Name: 61f0526978af667781c57bcc87510e4524efd0d8
2016-10-12 15:15:30 +00:00
dan
83465a662f
Fix a problem affecting queries that match the pattern (... WHERE ipk IN (....) ORDER BY ? LIMIT ?). Fix for [96c1454c].
...
FossilOrigin-Name: 8e2b25f9b8a7ed087d3cece74239814bee19429e
2016-10-12 14:48:00 +00:00
dan
ef74652ceb
Remove a stray line from session4.test causing a memory leak. No changes to SQLite code.
...
FossilOrigin-Name: 6624c4964b63e259d5ee006eaa7ec79ddadbd6a6
2016-10-10 14:48:36 +00:00
dan
90b2fe6b1e
When handling ORDER BY expressions, do not assume all values of an indexed expressions are distinct. Fix for [4766f444].
...
FossilOrigin-Name: aebe429e52ffef026cb0803fb164339d61bd2e88
2016-10-10 14:34:00 +00:00
drh
48590fcb37
Make sure indexes on expressions skip over initial NULL values in the
...
index. Fix for ticket [4baa464912129477f3c9]
FossilOrigin-Name: 71797ba431085f9ae381ed5ea6471967926f4043
2016-10-10 13:29:15 +00:00
dan
ea5e5f0b89
Fix a case in which the rtree module was ignoring an OOM while generating an error message.
...
FossilOrigin-Name: 788f86bebe413b5a0ab41ba3d75ba8728827a964
2016-10-10 10:06:59 +00:00
dan
e5ec01c481
Update test/trace3.test to account for the fact that casting a pointer to a 64-bit signed integer might produce a negative value.
...
FossilOrigin-Name: 010ec22541a4c37f2d3b01b6a531b4b4264102b7
2016-10-08 16:10:29 +00:00
drh
dfe4e6bb33
Corrections to Lemon documentation. No SQLite changes.
...
FossilOrigin-Name: c568ae3eef31b49e846fad90e705914e2868a09c
2016-10-08 13:34:08 +00:00
dan
320d4c304d
Add missing "static" to internal function whereRangeVectorLen().
...
FossilOrigin-Name: cbed3d75cf9a24037263d126727db7dd048a4f97
2016-10-08 11:55:12 +00:00
dan
e288992e19
Updates to the tool/warnings.sh script to make it easier to use on OpenBSD.
...
FossilOrigin-Name: dbe2997f57f8d8f95e4b767bf73b8df3a5e4f783
2016-10-08 09:21:34 +00:00
dan
642f0146d7
Fix some compiler warnings in fts5.
...
FossilOrigin-Name: b066637bb75959267fe6104da323c5112ad78f82
2016-10-05 20:14:29 +00:00
drh
e3c6b61cee
Fix harmless compiler warnings.
...
FossilOrigin-Name: 2dde3375124198560c8ff15f87aadde2afd722c5
2016-10-05 20:10:32 +00:00
dan
4e59344a4c
Add a test case for the fix in [a596b7c6cc].
...
FossilOrigin-Name: b2ef39b11f7c46e69e53439680c32adbb18903bd
2016-10-05 15:04:35 +00:00
drh
da5c62400f
Do not set MEM_Blob unless the appropriate fields of the Mem object have
...
been correctly initialized.
FossilOrigin-Name: a596b7c6cc780525120604090493f3f7d962b9fa
2016-10-05 15:02:00 +00:00
drh
e0251d44fa
Fix the backup_malloc.test script so that it works on Windows.
...
FossilOrigin-Name: d080012daaaa399663a0f767c792a2fff3e1037a
2016-10-05 01:33:57 +00:00
drh
4eda15e715
Fix a problem with the lempar.c parser template.
...
FossilOrigin-Name: 3a9d802fda10585654332b314d317250dc5d894e
2016-10-04 12:20:12 +00:00
drh
44728d7e01
Do not bother to initialize unused fields in the BtreePayload object.
...
FossilOrigin-Name: b10d0f939c82c4de3faa90b86de9ec4a89992856
2016-10-04 00:47:26 +00:00
drh
a71c743aae
Allow deterministic functions in the WHERE clause of a partial index.
...
FossilOrigin-Name: c6e9b9421805c904b20900b711fa0e51773aef3e
2016-10-03 18:13:23 +00:00
drh
c9b39288ae
Size and performance optimizations on the sqlite3ExprAssignVarNumber() routine.
...
FossilOrigin-Name: 109852e51e2cc2674940ba3e5097a92e66f88bb8
2016-10-03 16:33:14 +00:00
drh
de25a88c50
Avoid unnecessary strlen() calls in sqlite3ExprAssignVarNumber() by passing in
...
the token length from the parser.
FossilOrigin-Name: d15ae2e530cffea60263f203ac5f89b6790f4bd5
2016-10-03 15:28:24 +00:00
drh
87c05f0c58
Avoid unnecessary memset() calls in the query optimizer.
...
FossilOrigin-Name: 5bb7cde0731d23411e9df02a957010f94203397b
2016-10-03 14:44:47 +00:00
drh
cca8a4ad6f
Fix an obsolete comment on a variable definition in expr.c. No code changes.
...
FossilOrigin-Name: 012ff6dd306328f7ea71a6600471c871e7ffe37b
2016-10-03 12:56:48 +00:00
drh
1dd518cfcd
Make sure the sqlite_sequence table is updated when an optional xfer
...
optimization is used. Fix for ticket [7b3328086a5c1].
FossilOrigin-Name: 81e4d4f897553f6fee540a38c3e83ceac5ba9b78
2016-10-03 02:59:33 +00:00
drh
cb43a937e5
Allocate Parse objects off of the stack where appropriate for a substantial
...
performance increase and a size reduction.
FossilOrigin-Name: ea8affa9e453b201b479162f621b591e7a65a489
2016-10-03 01:21:51 +00:00
drh
1a7df58c1a
Add SQLITE_USE_ALLOCA to the --lean configuration in speed-check.sh.
...
FossilOrigin-Name: fe07609efc31c4639c40fbda501c55f443756ad2
2016-10-01 23:55:23 +00:00
drh
445f3d564c
Rearrange fields in the Parse object to reduce the amount of initialization
...
required.
FossilOrigin-Name: 361940b44dd17bf2b39fc0e0716c0de6b2b7f4f7
2016-10-01 21:43:37 +00:00
drh
216b70ff82
Reduce the width of a memset() to avoid double-initializing some variables.
...
FossilOrigin-Name: 34edbfd12d6cfa6bbfa30eef9276a4865eadc869
2016-10-01 20:43:41 +00:00
drh
230368c30d
Remove an unnecessary memset() call.
...
FossilOrigin-Name: a76bff74ce47c9c98106566bde5d781992657e22
2016-10-01 19:32:54 +00:00
drh
d8e4b13256
Use sqlite3DbMallocRawNN() where appropriate, instead of
...
sqlite3DbMallocRaw().
FossilOrigin-Name: 54a449a41d8d32da2f8b73689227ced866974a18
2016-10-01 19:21:56 +00:00
drh
8dfef1175e
Make sure deleting an unused prepared statement does not reference
...
uninitialized fields in the structure.
FossilOrigin-Name: 7983eef0422439bfc85950554b000d46a9767ee3
2016-10-01 16:53:45 +00:00
drh
76336d5b9d
Avoid accessing Vdbe.pc if it is uninitialized. Check Vdbe.magic first.
...
FossilOrigin-Name: 6ac6e4462a08cb2f3d28e4a23218fc1b110a2148
2016-10-01 11:39:53 +00:00
drh
ab3182f7c4
Avoid unnecessary zeroing of fields in the Vdbe object when it is allocated.
...
FossilOrigin-Name: 1e21bbe836539e64d24857f4faa3d12cd607dc7e
2016-10-01 00:37:50 +00:00
drh
cd9af608e1
Avoid initializing the column-cache section of the Parse object, since entries
...
in the cache will be initialized as they are used, and avoiding the initial
memset() saves many CPU cycles.
FossilOrigin-Name: 63cf7eafae5c3c1379edf416c5157010c7c120b5
2016-09-30 22:24:29 +00:00
drh
94881d732b
Fix an always-true conditional left over from the previous commit.
...
FossilOrigin-Name: ab12fce3318db447995e1465f34a1e43cd623d6a
2016-09-30 21:20:37 +00:00
drh
9b40d13f43
Fix the Parse.aColCache column cache so that all of the valid entries are
...
in the first Parse.nColCache slots.
FossilOrigin-Name: 6028502059ccbd3699637b7a70a6d8ce1b7c3dad
2016-09-30 20:22:27 +00:00
drh
e05950d878
Another simplification to the Parse object.
...
FossilOrigin-Name: c1419727f5e4cb3ef63b5853b6ef3b1e53af0651
2016-09-30 19:14:32 +00:00
drh
1d96cc60d0
Remove unnecessary fields from the Parse object.
...
FossilOrigin-Name: 814e41da3563eecf5514811bc8ab2df4f5cc0d4b
2016-09-30 18:35:36 +00:00
drh
2a1df937ab
Avoid unnecessary Mem initializations when generating a new sqlite3_stmt
...
object.
FossilOrigin-Name: 47ae1cda8dc255d100aeb8cb90ea4c9e449509be
2016-09-30 17:46:44 +00:00
drh
dd3bfe8648
Small size and performance optimization to sqlite3VdbeChangeP5().
...
FossilOrigin-Name: 3c93c8f5bbf54ed2a331079b28fdd94eb0e59e69
2016-09-29 20:28:34 +00:00
drh
2831c4d123
Remove the peep-hole optimization of removing OP_Close opcodes that come
...
before OP_Halt, as the extra work of removing those opcodes uses more cycles
than just running them.
FossilOrigin-Name: 984a96d79656c1b095aba1f88aca4bb787ba0bd8
2016-09-29 19:50:02 +00:00
drh
42735c7d30
Size and performance optimization to sqlite3ValueFromExpr()
...
FossilOrigin-Name: 945f82bc44c5a431c0fef0d36cf016671d7ade1e
2016-09-29 19:27:16 +00:00
drh
22fa36dc04
Clarification and typo-fixes in comments. No changes to code.
...
FossilOrigin-Name: e2cd79aa3104c51035bf29c548c322564731b75f
2016-09-29 15:53:28 +00:00
drh
5f33eaa6a4
Use Knuth multiplicative hashing for the symbol table.
...
FossilOrigin-Name: cc29ddd6be60bdbf107f285c9eb57d5896ebca2d
2016-09-28 20:42:31 +00:00
drh
5e769a50ad
Two more typo fixes in comments.
...
FossilOrigin-Name: 40c0fb0af678797c39a99853f9f4102464c16f4b
2016-09-28 16:05:53 +00:00
drh
ed204d1f44
Fix typos in comments. No code changes.
...
FossilOrigin-Name: 5bbd071d57a8048e2ca17bf97761e4f27fc5a6bf
2016-09-28 16:04:22 +00:00
drh
96fdcb40af
Update requirements marks due to improvements in the wording of documentation.
...
No changes to code.
FossilOrigin-Name: bf903b2ecac5d7b25c9cc899cae41f1d69aafe4e
2016-09-27 00:09:33 +00:00
drh
2e34326555
Fix FTS3 test cases due to the flattener change of the previous check-in.
...
FossilOrigin-Name: 0c8b9b211f4285e2ab77cf5e0820088ef10e05c4
2016-09-27 00:03:25 +00:00
dan
4c5ebee0b5
When flattening a query of the form "SELECT * FROM (SELECT * FROM tbl WHERE x=?) WHERE y=?", ensure that the final WHERE clause is "x=? AND y=?" instead of "y=? AND x=?". Although it is still not guaranteed, this makes the order in which WHERE clause terms are processed comport more closely to users expectations.
...
FossilOrigin-Name: cf7f9e6d5abff273dd2f8a8dce27d52e1449b3be
2016-09-26 14:39:05 +00:00
drh
0cd874bd57
Inline the relevent parts of sqlite3ExprAlloc() into spanExpr(), for a
...
performance improvement.
FossilOrigin-Name: fe89225eab777c2c9cb1cbc31092b9e39f516842
2016-09-26 12:38:22 +00:00
drh
410c301fea
Omit the LikeOp object from the parser. Change more sqlite3PExpr() calls into
...
sqlite3ExprAlloc() calls.
FossilOrigin-Name: 795454a3fa5f9ccc486593b5e16e8fad38c934fb
2016-09-24 17:42:43 +00:00
drh
87f0e9863d
Add -DSQLITE_MAX_EXPR_DEPTH=0 to the --lean option on speed-check.sh.
...
FossilOrigin-Name: a8cb1390fc1234b2e925090c4d770cca5d587bea
2016-09-24 01:41:59 +00:00
drh
209bc522b0
Add the EP_Leaf flag bit to the Expr.flags field to indicate Expr
...
nodes that do not have substructure. Use that bit to avoid unnecessary
recursion.
FossilOrigin-Name: 8a6ea455cd1bf42ae0a7f1f1789baf88d782db13
2016-09-23 21:36:24 +00:00
drh
e1c03b6233
Use sqlite3ExprAlloc() instead of sqlite3PExpr() for leaf nodes in the
...
expression tree, where appropriate. This is both smaller and faster.
FossilOrigin-Name: afac0709cec577a7851e3711730712cf12eeb6af
2016-09-23 20:59:31 +00:00
drh
8dd099bbaa
New test case for the ORDER BY LIMIT optimization.
...
FossilOrigin-Name: 9a5a489d0d344274d0fc9fb9303503a454f42844
2016-09-23 18:13:01 +00:00
drh
28f17017ee
Fix a potential null-pointer dereference and crash in the case where one
...
thread is calling sqlite3_column_text() and another thread is calling
sqlite3_step() on the same prepared statement at the same instant.
FossilOrigin-Name: ee1382a36303eff8d94275ac3b12e5ce398ee620
2016-09-22 21:37:18 +00:00
drh
511f9e8d29
Remove the internal sqlite3CodeOnce() interface, replacing it with a
...
direct call to sqlite3VdbeAddOp0(v,OP_Once). Slightly smaller and faster.
FossilOrigin-Name: c3774c6a5fe48af91fda28e9e18c6ed9053ea992
2016-09-22 18:53:13 +00:00
mistachkin
5a0da94302
Makefile changes to support building winsqlite3.dll using STDCALL rather than CDECL.
...
FossilOrigin-Name: 5e892d60935e5c82234d1bfaef4c5026061acceb
2016-09-22 18:46:38 +00:00
drh
98ef26b0d4
Fix speedtest1.c so that it works with SQLITE_OMIT_DEPRECATED.
...
Add the --lean and --cachesize options to speed-check.sh.
FossilOrigin-Name: 7785b3a25778cc19861c01f4148f72e0f724f55d
2016-09-21 23:58:49 +00:00
dan
49377a8fb7
Fix a problem with the fts5 auxiliary function API causing a crash when a query contained a phrase of zero terms.
...
FossilOrigin-Name: 0741812d7fcd558479e4849fbb3ba8d03738d018
2016-09-21 19:43:34 +00:00
dan
30f8c23657
Do not run vacuummem.test if ENABLE_MEMORY_MANAGEMENT is defined.
...
FossilOrigin-Name: 4a613d856433ac48e8ee0cd7f0e774e484e8acf6
2016-09-21 19:00:37 +00:00
drh
fb04a36c20
Fix obsolete requirements marks. Add new tests for VACUUM of attached
...
databases.
FossilOrigin-Name: 2b44f9aa7d4e2089dacd6bfcf526dae9309b7af3
2016-09-21 18:18:57 +00:00
dan
b6ea12cc05
Avoid running vacuum5.test in auto-vacuum mode.
...
FossilOrigin-Name: be184befa09ef0a670a2a6d9c037b9a27bcf16d8
2016-09-21 17:53:47 +00:00
dan
b390681622
Do not run test "delete_db.test" with either the journaltest or inmemoryjournal permutations. Ensure that the multiplexor tests in delete_db.test are performed in non-autovacuum mode.
...
FossilOrigin-Name: 46b7d19e0282ecd7622344aafad8c2feb83c9658
2016-09-21 17:47:59 +00:00
dan
48a72ebfa3
Update the fts5vocab table to handle "ORDER BY term" efficiently.
...
FossilOrigin-Name: d4928fb5cd63a72808f01778fa5a11395385dedf
2016-09-21 14:41:09 +00:00
drh
09952c6490
Improved implementation of 64-bit signed integer multiply that correctly
...
detects overflow (and promotes to floating-point) in some corner cases.
Fix for ticket [1ec41379c9c1e400]
FossilOrigin-Name: db3ebd7c52cfc5fcc7be00f52e9d7c84719f7b93
2016-09-20 22:04:05 +00:00
mistachkin
d8992cef36
Fix harmless compiler warning.
...
FossilOrigin-Name: 72429063956614975d90cae2a829cfa4296694da
2016-09-20 17:49:01 +00:00
mistachkin
e0736da15a
Fix typo in comment.
...
FossilOrigin-Name: bd3ecbb5c1977744321f4bbac79fd7e2e7c1b5ba
2016-09-20 17:38:27 +00:00
drh
ff535a2499
Further performance enhancements in zeroblob() handling.
...
FossilOrigin-Name: 21b0e3b75c531a5ce33a1503f9bf647d56f56a5b
2016-09-20 01:46:15 +00:00
drh
8aaf7bcc8d
Avoid unnecessary calls to ExpandBlob() for smaller and faster code.
...
FossilOrigin-Name: 5e196fd18169e84806cd45dd1a8190339323e772
2016-09-20 01:19:18 +00:00
drh
fadd2b1972
Very small optimization in the bytecode engine.
...
FossilOrigin-Name: 46002511e52518bae14f210157f231c814c77c9e
2016-09-19 23:39:34 +00:00
drh
9a2e5169a4
Fix a segfault introduced by the row-value enhancement that comes up on
...
a skip-scan where the first term of the index is unconstrained and the
second term is of the form "columm IN (SELECT...)".
FossilOrigin-Name: 2401ea5acfeee8042489d1db38036ff86e8a6916
2016-09-19 11:00:42 +00:00
drh
c332cc30d9
Improved performance in sqlite3ExprCodeTarget().
...
FossilOrigin-Name: 75146165dcc1ae1faab46b1a7333ef795d5eeac5
2016-09-19 10:24:19 +00:00
drh
d43075bcaf
Small performance optimization in the expression walker.
...
FossilOrigin-Name: c6e6afb9391704d9119335f2ce17df3968acb514
2016-09-19 02:19:00 +00:00
drh
9e5eb9c8cc
Revise the implementation of OP_Once so that it is smaller, faster, and uses
...
less memory. This also fixes an obscure bug introduced 3 days ago by check-in
[5990a1bdb4a073].
FossilOrigin-Name: 6bf5ba10d28f1b0a32aa9a560ae3143a1235eadb
2016-09-18 16:08:10 +00:00
mistachkin
598f7c59e1
Minor enhancement to the TclKit batch tool: it should download the TclKit EXE alone when the TCLKIT_NOENV environment variable is set.
...
FossilOrigin-Name: baceb988c6f4e93134e6a63173e846af2b73531a
2016-09-17 22:46:13 +00:00
drh
85f071b850
Small performance optimization in the freeSpace() routine of btree.c.
...
FossilOrigin-Name: 63962e2a927963575be74c3ce11f39f722c07c72
2016-09-17 19:34:32 +00:00
drh
fd7459e0aa
Improved description of the ElseNotEq opcode in comments. No changes to code.
...
FossilOrigin-Name: e011435e2f57ddfe315d5da48e93185d6789fc80
2016-09-17 17:39:01 +00:00
mistachkin
8145fc6eda
Fix typo in the name of a Win32 string conversion routine. Replace several uses of raw_printf() with utf8_printf() in the shell.
...
FossilOrigin-Name: 6fc95dd7a0b44212f30e657a850892a85a12715c
2016-09-16 20:39:21 +00:00
drh
7152cc0641
If no KEY is specified on ATTACH, copy the main schema key if the key size
...
is non-zero. In other words, allow for -1 as a valid key size in support
of the --textkey to SEE.
FossilOrigin-Name: 03573887dbf357f8aa54e4a1cd03b82b0ded8139
2016-09-16 19:42:47 +00:00
drh
d145915a59
Fix problems with the fileRead() function in the command-line shell. Fix
...
a harmless memory leak in the command-line shell, to make validation testing
easier.
FossilOrigin-Name: e660402e5e654b7f37ad2ce201df5cbb2b9eb9a6
2016-09-16 19:11:03 +00:00
drh
0882da8001
Remove the #ifdef SQLITE_DEBUG from around the testcase_glob() routine
...
in the command-line shell.
FossilOrigin-Name: 9885dac4b98693c4d2ed643022127f1452f19dc6
2016-09-16 18:53:42 +00:00
dan
edc3537c61
Fix a problem causing incorrect code to be generated for IN constraints like "a IN (1, 2, 3)" where column "a" is a rowid column with an extra UNIQUE index created on it. Ticket [0eab1ac759].
...
FossilOrigin-Name: a92aee5520cfaf85ae896365a7e42bdd981f828d
2016-09-16 16:30:57 +00:00
drh
72d5003ed8
Replace a faulty assert() with a testcase() to assure the condition is
...
tested.
FossilOrigin-Name: a49bc0a8244feb08b83e716d81c2a9512c184539
2016-09-16 15:42:17 +00:00
drh
4313f045c2
Add WHERETRACE macros showing every entry and exit from
...
whereLoopAddBtreeIndex().
FossilOrigin-Name: e7653decdcee161d379ced40aa1b27246337b000
2016-09-16 14:50:38 +00:00
drh
a0daa751f8
Fix SQLITE_OMIT_AUTHORIZATION so that it compiles cleanly.
...
FossilOrigin-Name: a3e3b3e1c57178ccd38fc7375ec1de8e8ae45372
2016-09-16 11:53:10 +00:00
drh
760c8162ff
In the shell, make ".testcase" and ".check" available in all configurations,
...
not just SQLITE_DEBUG. All testcases to be named. Show the result of each
testcase on stdout.
FossilOrigin-Name: 792afefa9c750910082fd102f1ccd10309759dfc
2016-09-16 02:52:22 +00:00
drh
cd0509e256
In the command-line shell, add the --new option to the ".open" command.
...
Also, report the current database filename as part of the ".show" command.
FossilOrigin-Name: 8e5c92039128a430e0509f4f06ea80ba39c35bda
2016-09-16 00:26:08 +00:00
drh
2db8211526
Add the ".testcase" and ".check" dot-commands in the shell, when compiled
...
using SQLITE_DEBUG.
FossilOrigin-Name: 62289f27ee276090a855982bd8216a465e7d0a27
2016-09-15 21:35:24 +00:00
drh
98365be030
Omit the sqlite3Apis constant object when compiling with
...
SQLITE_OMIT_LOAD_EXTENSION, since it is not used.
FossilOrigin-Name: 7b10461370828b9c57acaaaea518031d53986fa3
2016-09-15 19:15:19 +00:00
drh
21e19b44f0
Remove no-op code (adding an assert() to prove that the code was no-op)
...
in the text affinity logic of the bytecode engine comparison operators.
FossilOrigin-Name: b9f5bdbf40ac6382e48f09ebcd53cc908e065527
2016-09-15 14:54:51 +00:00
dan
95489c58f7
Fix a typo in a comment in sqlite.h.in. No changes to code.
...
FossilOrigin-Name: 12df7152109ffce4b3e0ee233c5ea8103edb902a
2016-09-15 05:47:00 +00:00
drh
72ceae01e5
Slight size reduction and performance increase in sqlite3VdbeHalt().
...
FossilOrigin-Name: 5990a1bdb4a0734ff23015ada71cf02d0cb1381f
2016-09-15 00:32:42 +00:00
drh
5f6eb1a0dc
Optimization to vdbeRecordCompareInt() makes it slightly smaller and faster.
...
FossilOrigin-Name: 5a2a7712cb8e0b686942dfab4e9e67b5ea7b2be3
2016-09-15 00:04:46 +00:00
drh
481fd50cb4
Update comments used to generate API documentation to include the new
...
"[dateof:3.X.Y]" notation for dates of release where appropriate.
No changes to code.
FossilOrigin-Name: 55f7f8ee5b1c13aa219198b7ae66f59b3730f4c3
2016-09-14 18:56:20 +00:00
dan
12c56aa452
Fix a bug in sqldiff causing it to confuse blobs zero bytes in size with NULL values.
...
FossilOrigin-Name: 264e9c75875796cad773d39b775d4604546bc57a
2016-09-12 14:23:51 +00:00
dan
ff02e200c0
Add missing "finish_test" command to vacuum5.test.
...
FossilOrigin-Name: 02f40c3b934ba79f2d45eae3781f2bea0c69c95f
2016-09-12 13:32:37 +00:00
dan
d562ec277c
Have releasetest.tcl delete all test files except for "testfixture", "testfixture.exe", "sqlite3", "sqlite3.exe", "test.log" and "test-out.txt" after each test run is finished. Passing the "--keep" option restores the old behaviour.
...
FossilOrigin-Name: e0e042dca98f29c060f76db079afecb3200ffae5
2016-09-12 09:28:21 +00:00
drh
2eb22af03d
Changes to give a warning-free build with SQLITE_OMIT_INCRBLOB and
...
SQLITE_OMIT_SHARED_CACHE.
FossilOrigin-Name: 711c59171b22df04224183a713e6c36e0bb3bba8
2016-09-10 19:51:40 +00:00
dan
9871664ed6
Add test code to delete an SQLite database and its auxiliary files.
...
FossilOrigin-Name: 8a9d128119fde36c175735be56876d30e5c8586f
2016-09-10 14:43:07 +00:00
mistachkin
35cd8b1eb5
Make the new file test_delete.c portable to MSVC on Windows.
...
FossilOrigin-Name: 0e3ace39f234c204649ec69c6a69fb0e062c58f7
2016-09-09 20:26:27 +00:00
drh
27fe1c3fcc
Remove an unnecessary call to sqlite3VdbeMemExpandBlob() when casting to
...
text.
FossilOrigin-Name: 19e2e5950541f1a93eed994cc2b1eaf64b68e858
2016-09-09 20:23:59 +00:00
dan
000f95b1ba
Add new file test_delete.c, containing test code for deleting an sqlite database.
...
FossilOrigin-Name: fb0b95e9405a3180d13c6318409af361e9df7632
2016-09-09 20:00:40 +00:00
drh
64caee4086
Performance improvements to the comparison operators in the bytecode engine.
...
FossilOrigin-Name: 37803b19d219f4107f29b240d5d314600e4bd236
2016-09-09 19:33:00 +00:00
drh
b80dbdc2f7
Fix a out-of-order variable declaration for some compile-time configurations.
...
FossilOrigin-Name: 6ac932c92a61cd68cc5b1816216e4748a5c7b3cd
2016-09-09 15:12:41 +00:00
drh
fe3765828a
In releasetest.tcl, the --srcdir option is automatic, so no need to mention
...
it in the --help output.
FossilOrigin-Name: 2bdd838e2c434f1d26b1836ef39fa938ef93131d
2016-09-09 13:23:36 +00:00
drh
2c33183d11
Fix an obsolete comment in the releasetest.tcl source code.
...
FossilOrigin-Name: afaaa276b256f56adf63cb568e486cb3315c3ec2
2016-09-09 13:17:26 +00:00
drh
eedeb92caa
In releasetest.tcl:
...
Improved testing for uncommitted changes. If uncommitted changes are seen,
exit immediately unless the --force option is used.
FossilOrigin-Name: 9a14e6c46cdda9f10151ee96a0540798573edcf2
2016-09-09 12:29:57 +00:00
mistachkin
0e4125a311
Remove an extra space before function names in the amalgamation.
...
FossilOrigin-Name: 20f3c7436f6a8a7bab3968adc010c7c8325e4618
2016-09-08 23:16:02 +00:00
drh
1fbd008cf4
Issue a warning and prompt the user to continue if the releasetest.tcl script
...
is run in a checkout with uncommitted changes.
FossilOrigin-Name: 30e917fff05b02ce2cb1f1c871d638200fbe5716
2016-09-08 23:12:08 +00:00
drh
f78dcd1b96
Add support for row-value comparisons, including IN operators, and
...
row-value updates in the UPDATE statement.
FossilOrigin-Name: ddb5f0558c44569913d22781ab78f3e9b58d7aea
2016-09-07 19:54:24 +00:00
dan
26c8d0ca21
Fix a problem handling expressions like "(a, b) IN (SELECT ... ORDER BY 1, 2)" when there is an index on "a" but not "b".
...
FossilOrigin-Name: 7f2c5c9ee3628c968306a5ab2e5a9a761f1b8055
2016-09-07 19:37:20 +00:00
drh
d609bdb9d3
Add the ext/misc/memvfs.c extension that implements a VFS for read-only
...
database files contained in memory.
FossilOrigin-Name: 12b7782a9af91eab913e159149cb28b3f5a6557c
2016-09-07 18:11:11 +00:00
drh
c097e122b9
Simplify the affinity handling logic in codeAllEqualityTerms(). Logically
...
the same, just a little easier to read and understand.
FossilOrigin-Name: bbab9621f512b04684163b98b6fc669c68038044
2016-09-07 13:30:40 +00:00
drh
af6f65fb26
Merge fixes from trunk.
...
FossilOrigin-Name: 193f036c87857bd77577ceb462af5034c7cc77da
2016-09-07 13:12:13 +00:00
drh
fc8b40f2f6
Fix the ".read" command in the command-line shell so that it understands
...
that the input is not interactive.
FossilOrigin-Name: d8451fe84d09db6ec7e1bd5f0708ea1b5e85f3d6
2016-09-07 10:10:18 +00:00
drh
57a8c61501
The ORDER BY LIMIT optimization is not valid unless the inner-most IN operator
...
loop is actually used by the query plan.
Fix for ticket [0c4df46116e90f92].
FossilOrigin-Name: 820644b886f81e991fceb5f1c3290b8959b34528
2016-09-07 01:51:46 +00:00
drh
63cecc4173
Remove obsolete vector-IN test cases. Fix a bad testcase() macro.
...
FossilOrigin-Name: ab3f8f193a7ec36018bf26c9231a1a6a58b6a523
2016-09-06 19:08:21 +00:00
drh
1431807a0b
Fix corer cases of vector IN operators where the RHS is a compound SELECT
...
that includes an ORDER BY clause.
FossilOrigin-Name: 8329ac6f8d1edcc19c3e0559abe9a8011dbe1497
2016-09-06 18:51:25 +00:00