drh
c9f3db33d5
New test case for ticket [ec32177c99ccac2b1] that works without the STAT4.
...
FossilOrigin-Name: 5259d4847f2b73f26b2385f9d8cff8fe0cabc54b4deab8477c87c8d1bb5535b1
2018-01-27 13:55:56 +00:00
drh
33f10207aa
Proposed fix for the query planner problem of ticket
...
[ec32177c99ccac2b1].
FossilOrigin-Name: eef8cbef3c49e6331301a8f3f8a5fd12090b1e99e68487c2d405e53ef771f688
2018-01-27 05:40:10 +00:00
drh
c86caa58cd
Fix compiler warnings in zipfile.c.
...
FossilOrigin-Name: bed610d99b5322ee209b06966c0086e8c55f8a82be8d7693cfdeb4d728679721
2018-01-27 03:26:10 +00:00
drh
33f763d154
Fix the query planner so that it takes into account dependencies in the
...
arguments to table-valued functions in subexpressions in the WHERE clause.
Fix for ticket [80177f0c226ff54f6dd].
FossilOrigin-Name: 7daa687340e475972d6849f84fe1419a1f5700934f53fd80656849adc73d6d04
2018-01-26 22:41:59 +00:00
dan
8005d60587
If the argument to table function zipfile() is a blob (not text), assume that
...
it contains a zip file image to interpret, not the name of a file on disk.
FossilOrigin-Name: 029ebcd30cb261d949f7587ac54c23d7479796b6716fd4ca7512361b8f32de3e
2018-01-26 18:59:25 +00:00
drh
4eb57ceffc
Improve text-to-integer conversion in boundary cases. The
...
sqlite3Atoi64() function always returns the minimum or maximum integer
if the magnitude of the text value is too large. Trailing whitespace is
now ignored.
FossilOrigin-Name: ace0644a1a2a42a3ea42d44f00a31915b8a7e56c9ba90f90a6c02001f89f9c86
2018-01-26 18:37:34 +00:00
dan
8558ef2e19
Reorganize zipfile.c code to make it easier to add support for in-memory zip
...
archive processing.
FossilOrigin-Name: 30b9258294e3028ef4ea467e332e013995509544e9a23c8bbf5168772a7e895d
2018-01-25 20:50:46 +00:00
drh
cad42838d7
Slightly smaller and faster implementation of OP_If and OP_IfNot.
...
FossilOrigin-Name: 6ab42934e2c4957b5d8927bf4434a9db07ab6078987a6a2d25f35cc468d21203
2018-01-25 01:20:29 +00:00
drh
9f8952390a
When unpacking a sorter record, do so from right to left instead of left to
...
right, since by starting with the right-most column, the work done by
OP_Column opcodes is reduced.
FossilOrigin-Name: 8055e4f42446ceb5bcf752bbf41a73289c3ca759c56c9f779edc3d7f202b7881
2018-01-24 20:42:42 +00:00
dan
1a0e5b37b2
Reorganize spellfix.c to make it easier to edit automatically (e.g. using a
...
script). No changes to functionality.
FossilOrigin-Name: 090a64faaac579c6ed1cddb02d14e7089468a4aeaeec11e78d461790bcb6eb0a
2018-01-24 18:28:39 +00:00
drh
da6bc6792f
Rearrange fields of the BtCursor object so that it is smaller and requires less
...
initialization, for a small performance improvement.
FossilOrigin-Name: 0ddf5292cc0411ec6fcb7399ecf2904c899e0488404d3f65490fbe1db15efdf4
2018-01-24 16:04:21 +00:00
drh
fe875027d7
Add the normalize.c extension.
...
FossilOrigin-Name: 16ebe558d2f0982f630c39b6c1b00d14d27011d454cced213f17c26491a2c06e
2018-01-24 15:07:37 +00:00
drh
a8519d79b9
Interchange the numeric codes for CURSOR_VALID and CURSOR_INVALID to obtain
...
a small size decrease and performance increase.
FossilOrigin-Name: e0f192ea6dda4fa0b243d58c8ce41932519141bcae0689a90318b4f866f54edd
2018-01-24 14:40:01 +00:00
drh
4d6d872c49
Adjust the fts3rank.test module so that it works on big-endian systems
...
(hopefully - I don't have a big-endian machine to test the change on.)
FossilOrigin-Name: e4766cabdf64d8e998048ae43154466fc9c3fad0b86102a42b65122abfcbbe55
2018-01-24 14:39:18 +00:00
drh
a87f8ce262
Improved error message output when the btreeinfo.c extension is run in
...
a connection that lacks sqlite_dbpage support.
FossilOrigin-Name: 461b0b81b2acedb1b9ca520657518d6778417c375aeb58c41ead840b75a6d985
2018-01-24 13:15:56 +00:00
drh
b9f4799b55
Prevent a harmless unused variable warning when compiling with
...
SQLITE_OMIT_TRACE.
FossilOrigin-Name: 61a44961b5811c993ae8d4f820a21a0ee739fe5e88cbfe5e4190e0091912ca19
2018-01-24 12:14:43 +00:00
drh
93117f0c4b
Fix a formatting issue in sqlite3_prepare_v3() documentation. No changes
...
to code.
FossilOrigin-Name: 9e6066de84285252fb8999a8d8e02a46c5bb6c822e4f7421ad3911687357ee5d
2018-01-24 11:29:42 +00:00
drh
9ccc0fd1f9
Fix the sqlite3ext.h header file so that it correctly accesses the
...
new sqlite3_value_nochange() and sqlite3_vtab_collation() interfaces.
FossilOrigin-Name: 6185d190e250faae0d979a24cb1039c7fce178478ae75df8e4af1d94cd38c18e
2018-01-24 11:25:59 +00:00
dan
0aac5613d9
Update a couple of test scripts so that they work on F2FS file-systems that
...
support atomic transactions.
FossilOrigin-Name: 49e58e645e0c114c71935a3b7fa4771e8a23e28127efd2efe0f2f18813c8f391
2018-01-24 06:30:10 +00:00
drh
56f1774603
Make the shell functional even if compiled with SQLITE_OMIT_COMPLETE.
...
Omit the sqlite3_complete() call from the fuzzing interface if it is
compiled with SQLITE_OMIT_COMPLETE.
FossilOrigin-Name: c3e816cca4ddf0967c4c790cdde2345101dde3f2d854e62589f1ac1d7f3c60b8
2018-01-24 01:58:49 +00:00
drh
5347f3c111
Invoke the sqlite3_complete() interface from the fuzzer.
...
FossilOrigin-Name: 332bf84625d2034c9e1c029aa8243aa34088217e52e34e1f5472217743a31af3
2018-01-24 01:02:23 +00:00
drh
588049cc99
Increase the version number to 3.23.0 for the next development cycle.
...
FossilOrigin-Name: b58b60b2c0729b73c0ef35bd1a5aa90965d1c01043413ca45b412d8b68f59bce
2018-01-23 20:22:15 +00:00
drh
21d5978422
Remove an unreachable branch from sqlite3SkipAccumulatorLoad().
...
FossilOrigin-Name: 8b9c8eab60b692e45c55a718d76b70e63040416040696907463692cbf83fb0c5
2018-01-23 19:24:54 +00:00
drh
d15046ac08
Work around a problem with GCC on 32-bit machines that cause the CAST
...
operator to generate a floating-point result for strings that could be
represented as very large integers.
FossilOrigin-Name: 1b02731962c21bb097a88801ece76ff441bf882519a821a246da84f4e2a33455
2018-01-23 17:33:42 +00:00
dan
a916b57013
Fix a bug causing spurious "sub-select returns N columns expected 1" errors
...
in join queries with a term like "(a, b) IN (SELECT ...)" in the WHERE clause.
FossilOrigin-Name: 14dfd96f9bca2df5033b2d894bf63cc8bf450a45ca11df5e3bbb814fdf96b656
2018-01-23 16:38:57 +00:00
drh
61d04974f0
Fix the modification-time setting logic in the fileio.c extension on Windows
...
so that it works with utf8 filenames.
FossilOrigin-Name: f785b9041556912edbacdbfb3dfc38705058d7c10d874544295c25db54628bc2
2018-01-23 15:26:30 +00:00
dan
b8fff29c68
In SQLITE_ENABLE_BATCH_ATOMIC_WRITE builds on F2FS file-systems, invoke
...
SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE if an SQLITE_FCNTL_COMMIT_ATOMIC_WRITE call
fails. Also, do not use an atomic transaction to create the initial database.
This is because if an error occurs while writing to the db file, any changes
to the file-size do not seem to be rolled back automatically. The only time
this matters is when the file was 0 bytes in size to start with.
FossilOrigin-Name: b3122db1545aeb48b7c28d480534b4b0fe04e83d5336225714c3cad926e5960e
2018-01-23 14:01:51 +00:00
drh
8d7f163015
Fix comment typos. No changes to code.
...
FossilOrigin-Name: 8e5e74c66b9cdb348392e3db2d9f32cfa20fcec35bf09d9e1f623e7ad875ec97
2018-01-23 13:30:38 +00:00
mistachkin
176b3a09b2
Skip defining WIN32_LEAN_AND_MEAN when it is already defined.
...
FossilOrigin-Name: 195f5323df800f7963df2ea251c497c72e4d7ff0b88a70f1fa60f13bb1a9fd3b
2018-01-23 07:11:05 +00:00
drh
7ea3469e53
Slightly faster implementation of the length() SQL function.
...
FossilOrigin-Name: 9a4199aedb039141a50a68943ef863d7df9637ada318793cce6c12b9d39bcdc5
2018-01-23 04:22:33 +00:00
drh
f09ac0b336
Slightly faster function dispatch in the virtual machine by avoiding
...
unnecessary reinitialization of variables that are already correctly
initialized.
FossilOrigin-Name: edd4e6876cc08ab907bb21f075380de946562d4c56a04923760848b4b11536ac
2018-01-23 03:44:06 +00:00
mistachkin
fa3d785580
Simplify one of the compiler warning fixes from the previous check-in.
...
FossilOrigin-Name: 012d7d49c571207087bbe24af05d639627b96df526bfcb2098a3e975b74d865d
2018-01-23 00:17:27 +00:00
mistachkin
b71aa0955b
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: 76a11a80e94d1e9c9645e6e348948f3fd508266d4569c85d80a3879862d0a819
2018-01-23 00:05:18 +00:00
drh
138d4f8de2
Version 3.22.0
...
FossilOrigin-Name: 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d
2018-01-22 18:45:57 +00:00
drh
8bfe66a9c4
Avoid unnecessary OOM detection warnings in a debugging routine.
...
FossilOrigin-Name: 395f8ea790e6e295800fa8927f0585b2419b9521ef4fd591d51d2a48db2a90c4
2018-01-22 15:45:12 +00:00
dan
3a9b9b7749
Fix a test case in walro2.test so that it works with encryption extensions
...
(when each page has a little less usable space available than usual).
FossilOrigin-Name: b79521d255a4aa2a7b4424f3498443f27d329ab5428171ba6b87c987f3ccdfc2
2018-01-22 15:20:59 +00:00
drh
88284b0dc3
On the walro2-X.4.2.2 test case, show the size as part of the test output.
...
FossilOrigin-Name: ac5091d7f870f1d0659a576723de454d544e5bfa2bdbba307d7c81eb5ab34e3b
2018-01-22 14:49:15 +00:00
dan
2f94935409
Allow the shell to be built from the configure script with
...
SQLITE_OMIT_VIRTUALTABLE defined.
FossilOrigin-Name: 136bf323e42dc90e1780199a381bcbb084b069eca5c7343ee6fc6e2550831536
2018-01-20 15:48:45 +00:00
dan
1a3a308616
Use a loop to avoid recursion in the heightOfSelect() function.
...
FossilOrigin-Name: 86de43595cb2ecebd680fe654affcfb9fbcfff6575c893293ae298124a357bfe
2018-01-18 19:00:54 +00:00
dan
5a7da86f5b
Check for both zlib.h and -lz before enabling zlib support in the amalgamation
...
configure script.
FossilOrigin-Name: 8ecd13a1b38e58d4464585c388c1aa27d1f056dba0db239316623e81d3eb5284
2018-01-18 17:46:08 +00:00
drh
80db2d6521
Update the autoconf configure.ac script and Makefile.am templates so that
...
ZLIB is automatically detected and used.
FossilOrigin-Name: 41bfb6b8d61699d09a7e67d2289149abfbb9ce8e75e6ff8560546cad0d2e3f2b
2018-01-18 17:09:26 +00:00
dan
b8a0fb75db
Fix sessions module handling of sqlite_stat1 rows with (idx IS NULL).
...
FossilOrigin-Name: 0e916416331d7948b312a5dd58ac0c145030bb3b47a37dab2636564397249a86
2018-01-18 16:59:52 +00:00
dan
cae5b9feac
Clarify the handling of the sqlite_stat1 table by legacy versions of the
...
sessions module.
FossilOrigin-Name: dc7c48cb4126db9e25c73512cc743155293fe1c4c2516f8c84102228695b6e70
2018-01-18 16:56:19 +00:00
dan
e3ca3831ba
Add comments describing the special sqlite_stat1 handling to sqlite3session.h.
...
FossilOrigin-Name: 4431a3256f7436e34b3c33edc1f3e53df7eb3c87daec9bac8d038895d93ca7f2
2018-01-18 16:53:41 +00:00
drh
4b3931ef33
Fix to the documentation for sqlite3_trace_v2(). No changes to code.
...
FossilOrigin-Name: 6fbd0a11a66f8eb4d7820cb49c23bdcb917db98a22c29d76edea1eea6dab0a4e
2018-01-18 16:52:35 +00:00
dan
d1cccf19b5
Fix sessions module conflict handling for the sqlite_stat1 table.
...
FossilOrigin-Name: f05ee74e05c401eb075a1ba65179662a08a5c3d5b55fc81f2acc841e841dd055
2018-01-18 16:42:11 +00:00
dan
1611e5a301
Simplify the sessions preupdate-hook logic for transforming NULL to X'' for
...
column sqlite_stat1.idx.
FossilOrigin-Name: 089d7cecaaa47db58320b216a111a5e56123d022008be6c81bc0746148bbdb58
2018-01-18 15:06:23 +00:00
drh
3dc9727782
Alternative implementation for the internal sqlite3Pow10() utility for MSVC,
...
which is more accurate on that platform.
FossilOrigin-Name: 469b96be5350ba2291518280ffe179b87aa7fbe701e2813ef63843922771517a
2018-01-17 21:14:17 +00:00
dan
3739f29807
Fix a problem in the sessions module with logging sqlite_stat1 rows for which
...
(idx IS NULL) is true.
FossilOrigin-Name: 25bf734be1b3883fccf12ac4d93d50289aa307fb60a52e0e32df12f7ee4edc7a
2018-01-17 20:57:20 +00:00
dan
61c758b53a
Fix a problem causing the sessions module to occasionally lose track of rows
...
with composite primary keys when there are two rows with the same text value
in the leftmost column of the PK.
FossilOrigin-Name: 09aed13678374bf22087cd808808b711dc703b7c18bc8aaf704850611e17f5cd
2018-01-17 17:38:18 +00:00