]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Wed, 31 Jan 2018 14:07:01 +0000 (14:07 +0000)]
Fix a failing assert() in the new code on this branch.
FossilOrigin-Name:
74d857d178dfadea7e07ba47439fe11aa9d282b54caf78cd6961e593b37406d0
dan [Mon, 29 Jan 2018 17:08:52 +0000 (17:08 +0000)]
Update the omit-left-join optimization so that it works in some cases when the
RHS is subject to a UNIQUE but not NOT NULL constraint.
FossilOrigin-Name:
88411a402b29f19d69e0d06d9099eabb98c238ddb7c07ce110236316f008753e
dan [Mon, 29 Jan 2018 16:22:39 +0000 (16:22 +0000)]
Ensure the "unique-not-null" flag is set for automatic indexes on columns
declared with "col UNIQUE NOT NULL" (where the NOT NULL comes after the
UNIQUE).
FossilOrigin-Name:
8767f7b880f2e4112f75f0b6ef7be3f50ab1ae20e103e7d03d8bfe77e6c79438
dan [Sat, 27 Jan 2018 18:55:18 +0000 (18:55 +0000)]
Fix missing header comments and other code issues in zipfile.c.
FossilOrigin-Name:
6ea8ba312c38365d3e28cfb2a367d729dd2751d1d853843eea0e18126777a320
dan [Sat, 27 Jan 2018 16:29:59 +0000 (16:29 +0000)]
If a zipfile virtual table is created with no argument - "CREATE VIRTUAL TABLE
zzz USING zipfile()" - accumulate data in memory. Support "SELECT
zipfile_blob(z) FROM zzz LIMIT 1" to retrieve a zip archive image.
FossilOrigin-Name:
e63185edfe0c316aa60c1fa085d032425ecc7db54536dfa5a977772eaf3c240e
drh [Sat, 27 Jan 2018 14:25:27 +0000 (14:25 +0000)]
Changes to avoid a harmless UB warning from clang.
FossilOrigin-Name:
19f5c1400054df10688ab448e7e23afef97cab4a7c7a3e411f7527509b515dd8
drh [Sat, 27 Jan 2018 13:55:56 +0000 (13:55 +0000)]
drh [Sat, 27 Jan 2018 05:40:10 +0000 (05:40 +0000)]
drh [Sat, 27 Jan 2018 03:26:10 +0000 (03:26 +0000)]
drh [Fri, 26 Jan 2018 22:41:59 +0000 (22:41 +0000)]
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
dan [Fri, 26 Jan 2018 18:59:25 +0000 (18:59 +0000)]
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
drh [Fri, 26 Jan 2018 18:37:34 +0000 (18:37 +0000)]
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
dan [Thu, 25 Jan 2018 20:50:46 +0000 (20:50 +0000)]
Reorganize zipfile.c code to make it easier to add support for in-memory zip
archive processing.
FossilOrigin-Name:
30b9258294e3028ef4ea467e332e013995509544e9a23c8bbf5168772a7e895d
drh [Thu, 25 Jan 2018 01:20:29 +0000 (01:20 +0000)]
Slightly smaller and faster implementation of OP_If and OP_IfNot.
FossilOrigin-Name:
6ab42934e2c4957b5d8927bf4434a9db07ab6078987a6a2d25f35cc468d21203
drh [Wed, 24 Jan 2018 20:42:42 +0000 (20:42 +0000)]
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
dan [Wed, 24 Jan 2018 18:28:39 +0000 (18:28 +0000)]
Reorganize spellfix.c to make it easier to edit automatically (e.g. using a
script). No changes to functionality.
FossilOrigin-Name:
090a64faaac579c6ed1cddb02d14e7089468a4aeaeec11e78d461790bcb6eb0a
drh [Wed, 24 Jan 2018 16:04:21 +0000 (16:04 +0000)]
Rearrange fields of the BtCursor object so that it is smaller and requires less
initialization, for a small performance improvement.
FossilOrigin-Name:
0ddf5292cc0411ec6fcb7399ecf2904c899e0488404d3f65490fbe1db15efdf4
drh [Wed, 24 Jan 2018 15:07:37 +0000 (15:07 +0000)]
drh [Wed, 24 Jan 2018 14:40:01 +0000 (14:40 +0000)]
Interchange the numeric codes for CURSOR_VALID and CURSOR_INVALID to obtain
a small size decrease and performance increase.
FossilOrigin-Name:
e0f192ea6dda4fa0b243d58c8ce41932519141bcae0689a90318b4f866f54edd
drh [Wed, 24 Jan 2018 14:39:18 +0000 (14:39 +0000)]
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
drh [Wed, 24 Jan 2018 13:15:56 +0000 (13:15 +0000)]
Improved error message output when the btreeinfo.c extension is run in
a connection that lacks sqlite_dbpage support.
FossilOrigin-Name:
461b0b81b2acedb1b9ca520657518d6778417c375aeb58c41ead840b75a6d985
drh [Wed, 24 Jan 2018 12:14:43 +0000 (12:14 +0000)]
Prevent a harmless unused variable warning when compiling with
SQLITE_OMIT_TRACE.
FossilOrigin-Name:
61a44961b5811c993ae8d4f820a21a0ee739fe5e88cbfe5e4190e0091912ca19
drh [Wed, 24 Jan 2018 11:29:42 +0000 (11:29 +0000)]
Fix a formatting issue in sqlite3_prepare_v3() documentation. No changes
to code.
FossilOrigin-Name:
9e6066de84285252fb8999a8d8e02a46c5bb6c822e4f7421ad3911687357ee5d
drh [Wed, 24 Jan 2018 11:25:59 +0000 (11:25 +0000)]
Fix the sqlite3ext.h header file so that it correctly accesses the
new sqlite3_value_nochange() and sqlite3_vtab_collation() interfaces.
FossilOrigin-Name:
6185d190e250faae0d979a24cb1039c7fce178478ae75df8e4af1d94cd38c18e
dan [Wed, 24 Jan 2018 06:30:10 +0000 (06:30 +0000)]
Update a couple of test scripts so that they work on F2FS file-systems that
support atomic transactions.
FossilOrigin-Name:
49e58e645e0c114c71935a3b7fa4771e8a23e28127efd2efe0f2f18813c8f391
drh [Wed, 24 Jan 2018 01:58:49 +0000 (01:58 +0000)]
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
drh [Wed, 24 Jan 2018 01:02:23 +0000 (01:02 +0000)]
Invoke the sqlite3_complete() interface from the fuzzer.
FossilOrigin-Name:
332bf84625d2034c9e1c029aa8243aa34088217e52e34e1f5472217743a31af3
drh [Tue, 23 Jan 2018 20:22:15 +0000 (20:22 +0000)]
Increase the version number to 3.23.0 for the next development cycle.
FossilOrigin-Name:
b58b60b2c0729b73c0ef35bd1a5aa90965d1c01043413ca45b412d8b68f59bce
drh [Tue, 23 Jan 2018 19:24:54 +0000 (19:24 +0000)]
Remove an unreachable branch from sqlite3SkipAccumulatorLoad().
FossilOrigin-Name:
8b9c8eab60b692e45c55a718d76b70e63040416040696907463692cbf83fb0c5
drh [Tue, 23 Jan 2018 17:33:42 +0000 (17:33 +0000)]
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
dan [Tue, 23 Jan 2018 16:38:57 +0000 (16:38 +0000)]
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
drh [Tue, 23 Jan 2018 15:26:30 +0000 (15:26 +0000)]
Fix the modification-time setting logic in the fileio.c extension on Windows
so that it works with utf8 filenames.
FossilOrigin-Name:
f785b9041556912edbacdbfb3dfc38705058d7c10d874544295c25db54628bc2
dan [Tue, 23 Jan 2018 14:01:51 +0000 (14:01 +0000)]
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
drh [Tue, 23 Jan 2018 13:30:38 +0000 (13:30 +0000)]
mistachkin [Tue, 23 Jan 2018 07:11:05 +0000 (07:11 +0000)]
Skip defining WIN32_LEAN_AND_MEAN when it is already defined.
FossilOrigin-Name:
195f5323df800f7963df2ea251c497c72e4d7ff0b88a70f1fa60f13bb1a9fd3b
drh [Tue, 23 Jan 2018 04:22:33 +0000 (04:22 +0000)]
Slightly faster implementation of the length() SQL function.
FossilOrigin-Name:
9a4199aedb039141a50a68943ef863d7df9637ada318793cce6c12b9d39bcdc5
drh [Tue, 23 Jan 2018 03:44:06 +0000 (03:44 +0000)]
Slightly faster function dispatch in the virtual machine by avoiding
unnecessary reinitialization of variables that are already correctly
initialized.
FossilOrigin-Name:
edd4e6876cc08ab907bb21f075380de946562d4c56a04923760848b4b11536ac
mistachkin [Tue, 23 Jan 2018 00:17:27 +0000 (00:17 +0000)]
Simplify one of the compiler warning fixes from the previous check-in.
FossilOrigin-Name:
012d7d49c571207087bbe24af05d639627b96df526bfcb2098a3e975b74d865d
mistachkin [Tue, 23 Jan 2018 00:05:18 +0000 (00:05 +0000)]
Fix harmless compiler warnings seen with MSVC.
FossilOrigin-Name:
76a11a80e94d1e9c9645e6e348948f3fd508266d4569c85d80a3879862d0a819
drh [Mon, 22 Jan 2018 18:45:57 +0000 (18:45 +0000)]
drh [Mon, 22 Jan 2018 15:45:12 +0000 (15:45 +0000)]
Avoid unnecessary OOM detection warnings in a debugging routine.
FossilOrigin-Name:
395f8ea790e6e295800fa8927f0585b2419b9521ef4fd591d51d2a48db2a90c4
dan [Mon, 22 Jan 2018 15:20:59 +0000 (15:20 +0000)]
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
drh [Mon, 22 Jan 2018 14:49:15 +0000 (14:49 +0000)]
On the walro2-X.4.2.2 test case, show the size as part of the test output.
FossilOrigin-Name:
ac5091d7f870f1d0659a576723de454d544e5bfa2bdbba307d7c81eb5ab34e3b
dan [Sat, 20 Jan 2018 15:48:45 +0000 (15:48 +0000)]
Allow the shell to be built from the configure script with
SQLITE_OMIT_VIRTUALTABLE defined.
FossilOrigin-Name:
136bf323e42dc90e1780199a381bcbb084b069eca5c7343ee6fc6e2550831536
dan [Thu, 18 Jan 2018 19:00:54 +0000 (19:00 +0000)]
Use a loop to avoid recursion in the heightOfSelect() function.
FossilOrigin-Name:
86de43595cb2ecebd680fe654affcfb9fbcfff6575c893293ae298124a357bfe
dan [Thu, 18 Jan 2018 17:46:08 +0000 (17:46 +0000)]
Check for both zlib.h and -lz before enabling zlib support in the amalgamation
configure script.
FossilOrigin-Name:
8ecd13a1b38e58d4464585c388c1aa27d1f056dba0db239316623e81d3eb5284
drh [Thu, 18 Jan 2018 17:09:26 +0000 (17:09 +0000)]
Update the autoconf configure.ac script and Makefile.am templates so that
ZLIB is automatically detected and used.
FossilOrigin-Name:
41bfb6b8d61699d09a7e67d2289149abfbb9ce8e75e6ff8560546cad0d2e3f2b
dan [Thu, 18 Jan 2018 16:59:52 +0000 (16:59 +0000)]
Fix sessions module handling of sqlite_stat1 rows with (idx IS NULL).
FossilOrigin-Name:
0e916416331d7948b312a5dd58ac0c145030bb3b47a37dab2636564397249a86
dan [Thu, 18 Jan 2018 16:56:19 +0000 (16:56 +0000)]
Clarify the handling of the sqlite_stat1 table by legacy versions of the
sessions module.
FossilOrigin-Name:
dc7c48cb4126db9e25c73512cc743155293fe1c4c2516f8c84102228695b6e70
dan [Thu, 18 Jan 2018 16:53:41 +0000 (16:53 +0000)]
Add comments describing the special sqlite_stat1 handling to sqlite3session.h.
FossilOrigin-Name:
4431a3256f7436e34b3c33edc1f3e53df7eb3c87daec9bac8d038895d93ca7f2
drh [Thu, 18 Jan 2018 16:52:35 +0000 (16:52 +0000)]
Fix to the documentation for sqlite3_trace_v2(). No changes to code.
FossilOrigin-Name:
6fbd0a11a66f8eb4d7820cb49c23bdcb917db98a22c29d76edea1eea6dab0a4e
dan [Thu, 18 Jan 2018 16:42:11 +0000 (16:42 +0000)]
Fix sessions module conflict handling for the sqlite_stat1 table.
FossilOrigin-Name:
f05ee74e05c401eb075a1ba65179662a08a5c3d5b55fc81f2acc841e841dd055
dan [Thu, 18 Jan 2018 15:06:23 +0000 (15:06 +0000)]
Simplify the sessions preupdate-hook logic for transforming NULL to X'' for
column sqlite_stat1.idx.
FossilOrigin-Name:
089d7cecaaa47db58320b216a111a5e56123d022008be6c81bc0746148bbdb58
drh [Wed, 17 Jan 2018 21:14:17 +0000 (21:14 +0000)]
Alternative implementation for the internal sqlite3Pow10() utility for MSVC,
which is more accurate on that platform.
FossilOrigin-Name:
469b96be5350ba2291518280ffe179b87aa7fbe701e2813ef63843922771517a
dan [Wed, 17 Jan 2018 20:57:20 +0000 (20:57 +0000)]
Fix a problem in the sessions module with logging sqlite_stat1 rows for which
(idx IS NULL) is true.
FossilOrigin-Name:
25bf734be1b3883fccf12ac4d93d50289aa307fb60a52e0e32df12f7ee4edc7a
dan [Wed, 17 Jan 2018 17:38:18 +0000 (17:38 +0000)]
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
dan [Wed, 17 Jan 2018 16:11:26 +0000 (16:11 +0000)]
Fix main.mk so that testfixture can be built either from the amalgamation or
from individual source files. No changes to code.
FossilOrigin-Name:
a8aea925f8fde8f2dc5ff4b744d54aa2bf8916f3ee57f22d77fd1ddb5a35a9cc
drh [Wed, 17 Jan 2018 13:15:23 +0000 (13:15 +0000)]
Fix harmless compiler warnings, mostly unused parameters for UDFs in the CLI.
FossilOrigin-Name:
bfbeffab7735461acb3773242ba31dae15af9f8b0291c54a6734747bb1b36e66
dan [Wed, 17 Jan 2018 12:58:11 +0000 (12:58 +0000)]
Omit the single test from zipfile.test that uses json functionality in
non-SQLITE_ENABLE_JSON1 builds.
FossilOrigin-Name:
6bb2a10fad71bf8cec6bca538db7b00be0d26418ab62b83092d3a6a68d1c0d9f
dan [Wed, 17 Jan 2018 12:57:07 +0000 (12:57 +0000)]
Update test file fts5fault6.test to account for test tokenizers implemented in
Tcl returning SQLITE_ERROR instead of SQLITE_NOMEM following an OOM error.
FossilOrigin-Name:
c232f6424a858ede44940a927fe4e26ee99c6ab614aa6f63e13ba46e88dbb280
mistachkin [Wed, 17 Jan 2018 01:40:57 +0000 (01:40 +0000)]
Simplifications to winOpenSharedMemory in the Win32 VFS.
FossilOrigin-Name:
3e04999dabb87715de46255b1a9b08d5dfa70d140e0a09a37ea2842d71c77caf
mistachkin [Wed, 17 Jan 2018 01:26:05 +0000 (01:26 +0000)]
Corrections to error code handling in os_win.c, pursuant to walfault.test.
FossilOrigin-Name:
568192228c9578b8ea34c363e10ff28450045cda76248b2f0f89f84b3a57e680
mistachkin [Wed, 17 Jan 2018 01:15:08 +0000 (01:15 +0000)]
Fix duplicate test names in 'walfault.test'.
FossilOrigin-Name:
7274d05ff43fc9872f0e4857ae583689e4a6c429b7fa991dcc29744da3048879
dan [Tue, 16 Jan 2018 21:09:00 +0000 (21:09 +0000)]
Fix a problem causing zipfile to store 0 in place of the CRC32 value for
uncompressed files.
FossilOrigin-Name:
ba44724bcca2e87788b7c6d8c5de7fa388360127bd894ee6a171fd66e794fcae
drh [Tue, 16 Jan 2018 21:05:10 +0000 (21:05 +0000)]
Remove an unused field from the internal definition of the sqlite3_context
object.
FossilOrigin-Name:
948a26b5a64d8a89c4ec7546ec4a4bee36e29e82edda677ca75424e7091325d0
drh [Tue, 16 Jan 2018 21:00:58 +0000 (21:00 +0000)]
Fix compiler warning in the FTS5 test interface.
FossilOrigin-Name:
2ab4e8d5d82ab410c00f048c12555f2f40f9fd8bffda64ccbdd3dfe036727315
drh [Tue, 16 Jan 2018 20:50:37 +0000 (20:50 +0000)]
Make the new sqlite3_vtab_collation() interface accessible to loadable
extensions.
FossilOrigin-Name:
f301db3c2343fd2086bc5b69a17b2d226175584ccd09549ebb2cb603590da487
dan [Tue, 16 Jan 2018 20:44:00 +0000 (20:44 +0000)]
Fix a test problem causing an error in fts5fault9.test.
FossilOrigin-Name:
8e2048113fc6ed87fc7d5ba470261926aa0bd35474744bb2b99ea596bc468f02
drh [Tue, 16 Jan 2018 20:37:56 +0000 (20:37 +0000)]
Remove the unused SQLITE_CANTOPEN_DIRTYWAL result code.
FossilOrigin-Name:
3c786305fc6eaa6856ec6c71fc7969f61de266ba1bea0abf0ae133eb94e54b2d
dan [Tue, 16 Jan 2018 20:20:00 +0000 (20:20 +0000)]
Fix a makefile problem causing -DSQLITE_ENABLE_STMTVTAB builds to fail.
FossilOrigin-Name:
7f6e5bdf9021c31e8bde82c224bf53be3c93b79f7bb5c2802c54be8031cf89fb
drh [Tue, 16 Jan 2018 20:05:27 +0000 (20:05 +0000)]
Move the ZLIB version announcement in the CLI out of the default banner
and put it in the ".version" command.
FossilOrigin-Name:
231679d6f8c0c3d957c8daa88b0743449b60b47159e114f4bc073a8612a73b2a
mistachkin [Tue, 16 Jan 2018 19:03:51 +0000 (19:03 +0000)]
Show version of zlib in use when running the shell tool in interactive mode.
FossilOrigin-Name:
a8906b527a8f7a2cec88cc3b05c063a2785f0d1d141e148d954fc7440972a484
dan [Tue, 16 Jan 2018 17:33:09 +0000 (17:33 +0000)]
Change a cat in zipfile.c from (z_const Bytef*) to just (Bytef*). This allows the module to build with older versions of zlib.
FossilOrigin-Name:
ac9af91d5a2927e71903461e7bbdd2c0168fde9a042853c8bcd4c7ebd0d51e0d
dan [Tue, 16 Jan 2018 13:37:43 +0000 (13:37 +0000)]
Fix a problem causing an infinite loop or other malfunction in some UPDATE
statements with an OR term in the WHERE clause.
FossilOrigin-Name:
feb2c2b6f66b0f45490beb1642d99cdb89fa220e299a8c118929df557c814189
drh [Tue, 16 Jan 2018 02:38:35 +0000 (02:38 +0000)]
Disable the ".archive" command tests in shell8.test if the CLI is compiled without
ZLIB support.
FossilOrigin-Name:
ce8bfe6c2b87090a2de1e04bc88fcb878597fe1f4ecd5df6d9d588a65601c901
dan [Mon, 15 Jan 2018 19:00:35 +0000 (19:00 +0000)]
Fix a problem in the zipfile module causing it to generate incorrect
checksums. Remove the ability to insert compressed data into a zip archive.
FossilOrigin-Name:
b0b7d0363acf38c2178e2d3041d8ce2a0de061a51caa64670dbf539ee6d4356b
dan [Mon, 15 Jan 2018 15:49:46 +0000 (15:49 +0000)]
Fix a zipfile problem with extracting zero length files compressed using
deflate.
FossilOrigin-Name:
cf64087224aff1a2fe169d23996d9e5ed8d86459c655eb5d0bace0466a557ec6
drh [Mon, 15 Jan 2018 14:32:37 +0000 (14:32 +0000)]
Fix an error in the setDeviceCharacteristics() procedure for the
(unsupported) QNX code in os_unix.c.
FossilOrigin-Name:
8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
drh [Sun, 14 Jan 2018 20:12:23 +0000 (20:12 +0000)]
Avoid excess stack usage when a VALUES clause with lots of rows occurs
within a scalar expression. This fixes a problem discovered by OSSFuzz.
FossilOrigin-Name:
a4fa0581ba7cfd45fabe0198f55b3c2c8ee3ecfd2825aeed91116f44e77d760b
drh [Sat, 13 Jan 2018 23:28:33 +0000 (23:28 +0000)]
Fix harmless compiler warnings in zipfile.c.
FossilOrigin-Name:
8f7a592f8c044d75b4615a95e27454100b10c2b26f4cafee97dec23343821130
dan [Sat, 13 Jan 2018 19:08:24 +0000 (19:08 +0000)]
Support UPDATE statements against zipfile virtual tables.
FossilOrigin-Name:
f2d2a5df4f29b47212fd2411eae6545087b901a270655640c87ceb472e02a24c
drh [Sat, 13 Jan 2018 14:28:00 +0000 (14:28 +0000)]
Fully initialize the Mem object for serial-type 10, in case such a
serial-type is found in a corrupt database file.
FossilOrigin-Name:
bd70a07d819a54346cb6c40fab681424c5af0dfb6bf29321a3de9fc99d285376
dan [Sat, 13 Jan 2018 14:02:16 +0000 (14:02 +0000)]
Fix various problems in test scripts preventing "make test" from passing on
F2FS file-systems with the "atomic-write" feature.
FossilOrigin-Name:
6bedc7435d26c1f21c0d1b3a52daa0169fa5416b690a99347328dcafdcd78740
dan [Sat, 13 Jan 2018 14:01:26 +0000 (14:01 +0000)]
dan [Sat, 13 Jan 2018 13:07:49 +0000 (13:07 +0000)]
Fix various problems in test scripts preventing "make test" from passing on
F2FS file-systems with the "atomic-write" feature.
FossilOrigin-Name:
56d93d070d6b92d8a5a3fec1b09aae8911116c73d072fc5022f0b51668ed996b
mistachkin [Sat, 13 Jan 2018 02:07:16 +0000 (02:07 +0000)]
drh [Sat, 13 Jan 2018 01:53:09 +0000 (01:53 +0000)]
Add the new "nochange" APIs to the extension loading mechanism.
FossilOrigin-Name:
cd7c42699e73b688dbed29ed5d243d06439d7dbe0ba8c42d8299e04cc0dd4464
drh [Fri, 12 Jan 2018 23:38:10 +0000 (23:38 +0000)]
Add the sqlite3_value_nochange() API, usable from within the xUpdate method
of a virtual table to discover whether or not a column was unchanged at the
SQL level.
FossilOrigin-Name:
dec3ea4e4e6c4b1761ddc883a29eaa50dcd663ce6199667cc0ff82f7849d4f2a
drh [Fri, 12 Jan 2018 23:18:38 +0000 (23:18 +0000)]
Improved comments. Slightly tighter implementation, but no big changes.
FossilOrigin-Name:
a1b3f28569f2a8d82b2931527fdfe191b421f3e1ea18ee30e04211e1ad645993
drh [Fri, 12 Jan 2018 21:00:14 +0000 (21:00 +0000)]
Add the experimental sqlite3_value_nochange() interface usable by xUpdate
methods of virtual tables to see if a column has actually changed values.
FossilOrigin-Name:
8b7be15ece9e2e83959bb0e21e240106fe1077431242c3cc6b81f1baa2382f40
drh [Fri, 12 Jan 2018 19:33:18 +0000 (19:33 +0000)]
Simplification to the implementation of OP_Insert.
FossilOrigin-Name:
6acbdba59e9df4313a6232d925a70390acdc43dfa380b4fba7bb8bd442d6e728
dan [Fri, 12 Jan 2018 19:20:15 +0000 (19:20 +0000)]
Fix error handling in sqlite3session_diff() when it is invoked for table
"sqlite_stat1".
FossilOrigin-Name:
874285e477dd9bd164e25ddb08b6b80daaa8cfd111b4180ecce59b1ce26f77a5
drh [Fri, 12 Jan 2018 18:46:52 +0000 (18:46 +0000)]
Avoid an unnecessary branch when not using pre-update hooks.
FossilOrigin-Name:
ec96707eb359c7e0597ee22e5ae017774366463dffa6bdb06e4438b09549f5c0
drh [Fri, 12 Jan 2018 18:03:38 +0000 (18:03 +0000)]
dan [Fri, 12 Jan 2018 17:25:25 +0000 (17:25 +0000)]
Include changes made to the sqlite_stat1 table in changesets
generated by the sessions module. sqlite_stat1 entries in such changesets are
ignored by legacy clients.
FossilOrigin-Name:
2064233533edec0308d0212fb08e72fd14c760a1c88452424cae298e9eaf4af8
dan [Fri, 12 Jan 2018 16:44:29 +0000 (16:44 +0000)]
Experimental change to include changes made to the sqlite_stat1 table in
changesets generated by the sessions module. sqlite_stat1 entries in such
changesets are ignored by legacy clients.
FossilOrigin-Name:
bd46c4429693545eb16db85692fc591ac529796aa746f5f21df1ce4380619320
drh [Fri, 12 Jan 2018 14:34:45 +0000 (14:34 +0000)]
Always use utimes() instead of utimensat() since the latter is not available
even on some recent unix systems.
FossilOrigin-Name:
30ed7a4b6408f0ca921abc4d8b7bb5404fc7708cedcd104b017b361054e7148c
dan [Fri, 12 Jan 2018 12:02:02 +0000 (12:02 +0000)]
Add a test to ensure that the sqlite3changeset_apply() function ignores tables
that do not have the expected primary keys.
FossilOrigin-Name:
bf2daf06279e46bc37cc92ad1becec1b12d2aa804a14b101fca8b3a7fdb280c3
drh [Thu, 11 Jan 2018 18:15:40 +0000 (18:15 +0000)]
Add the sqlite3_vtab_nochange() interface. Test cases are in TH3.
FossilOrigin-Name:
a5d09dfaa337fa51d6e702c6aefe58824ab1e7d221c6e79166e2c6f9c7ab1501
dan [Thu, 11 Jan 2018 17:33:48 +0000 (17:33 +0000)]
Change zipfile to be a WITHOUT ROWID virtual table and table-valued function.
FossilOrigin-Name:
931201f64e04247ed613a0301fcc86c3a337c2ed162c6370a80c67a1dd919e7c