drh
57e3ba7623
Make the alternate-form-2 flag ("!") change the meaning of width and precision
...
from bytes to characters for the %q, %Q, and %w extensions of printf().
FossilOrigin-Name: 391540acbea34eb88c75b1152b458d8936b3fdfff47633b9ec897775b015ba4c
2018-02-19 18:03:10 +00:00
drh
62856465f2
In the printf() library, measure width and precision in characters rather
...
than bytes if the "!" (alternate-form-2) flag is present on a %s or %z
substitution.
FossilOrigin-Name: ca31c6630422fca70e626dd38aae96296bd8535d491ca52391624a5e7e663636
2018-02-19 17:03:23 +00:00
drh
26f625fbf4
Only try to use the geteuid() interface on unix if HAVE_FCHOWN is defined.
...
This fixes the build for vxWorks, we are told.
FossilOrigin-Name: 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e
2018-02-19 16:34:31 +00:00
drh
a224ee2a1b
Fix an assert so that it compares two CellInfo objects field by field
...
instead of using memcmp(). Memcmp() does not work on x86
because of uninitialized padding bytes.
FossilOrigin-Name: 88258770adead70fa101c74e266a37bb9aaffac0ba738a4b345617feb8c46477
2018-02-19 13:53:56 +00:00
drh
e28eb64d09
Fix a memory leak in the processing of nested row values. This problem has
...
existed every since row values support was added (version 3.15.0, 2016-10-14)
but was only just now detected by OSSFuzz.
FossilOrigin-Name: 2df6bbf1b8ca881c8a465d6624de66fde4c5975ccae6b2f2dda392b137f577de
2018-02-18 17:50:03 +00:00
mistachkin
091881bbb0
Port mutex enhancments from check-in [f53b8a573b] to the Win32 implementation.
...
FossilOrigin-Name: 74bb7225d132c80fd5758bb8c120448e3b3e951d0ca2fa0c57cac0a9c6c27045
2018-02-18 00:54:06 +00:00
dan
c551550808
Fix a data race causing a tsan complaint with SQLITE_ENABLE_API_ARMOR builds
...
on unix. The race condition is not dangerous in practice, it just upsets tsan.
FossilOrigin-Name: f53b8a573bfbb48780243d56ca8372165adb1b979731c43d46cd1f8eb7e593f3
2018-02-17 07:38:50 +00:00
drh
713f34ace9
Do not allow parameters or schema references inside of WITH clause of
...
triggers and views. This fixes a bug discovered by OSSFuzz and present
since common-table-expressions were first added in 2014-02-03.
FossilOrigin-Name: b918d4b4e546d3903ff20efc3c8ca26dd9761cc8ed9ef7d2799b66ff9ae1ae51
2018-02-15 21:00:37 +00:00
drh
f4bc6c43d7
Improve performance of editdist3() by keeping the costs in sorted order.
...
Also add a new regression test to editdist3().
FossilOrigin-Name: dc734c5b61464dfd6bfa7963f2ecce32e405a0c2ba1ef6f453ec9389da080256
2018-02-15 03:56:33 +00:00
drh
46e835a2c4
Reduce the number of calls to strncmp() required to run editDist3Core().
...
FossilOrigin-Name: afd6fbc01052ccfc9bd29fb8f934b291b8f56af44fcae870da7e1355fe95c29a
2018-02-15 03:05:56 +00:00
drh
501ea05630
Fix the --heap, --pagecache, --lookaside and other options to the command-line
...
shell that invoke sqlite3_config() so that they work again.
FossilOrigin-Name: 00707f2f2f746a6421f3e2de995e68cc8adba7225a04db6b28db52944e7e988e
2018-02-15 01:03:37 +00:00
drh
ee269a60c9
Add the --readonly option to the ".open" command in the CLI.
...
FossilOrigin-Name: 06870bb15656b50b0e14d4364bb21afac76500e313ecf67aaef3688d603fd076
2018-02-14 23:27:43 +00:00
drh
d9274a8ae3
Performance optimizations to the editdist3() function in the spellfix
...
extension.
FossilOrigin-Name: 70d304dcbac4c3fd5e3b96108bffea2ce6c0db19c847397d5c5e268bb90a981d
2018-02-14 20:58:36 +00:00
drh
0fae06fcb6
Disable assert() in the spellfix extension if not compiled with SQLITE_DEBUG.
...
FossilOrigin-Name: 3c53ee0fdea4cbf2590e2b289b021b0ef8b7ead2945db1bdfc767432d9447acb
2018-02-14 20:25:33 +00:00
drh
4e6e5cef6c
New test cases for the editdist3() function in the spellfix extension.
...
FossilOrigin-Name: 2d3f1f22d53034576a0ec8d9c360fb19efbb05b2e95ad1b09d120fb1b7da33fd
2018-02-14 15:30:48 +00:00
drh
e2d27e0259
Try to optimize spellfix1 by storing a NULL in the k1 column of %_vocab
...
if it would otherwise have the same value as the word column.
FossilOrigin-Name: b76ec7cb5841f9ad02b342271e91c5f5a598006f69df7953a6213c706e01f7a2
2018-02-14 14:13:09 +00:00
drh
a9abfb1e6c
Improved test cases for the [f484b65f3d6230593c34f] bug.
...
FossilOrigin-Name: 1f300514e6cdd32c755dc1b05dfa125b10eda2eb55a1024b66f66dbf5cf96289
2018-02-13 19:13:05 +00:00
drh
4d1c6845ff
Fix an incorrect table lookup used to find the appropriate search operator
...
for a WHERE clause on a row-value inequality. The incorrect table lookup
was causing an incorrect answer for the less-than operator.
Fix for ticket [f484b65f3d6230593c34f11]
FossilOrigin-Name: f3112e67cdb27c1aec8d2cee3cb91ade061d093e13505894698e26336898b336
2018-02-13 18:48:08 +00:00
drh
d446e79545
Remove an unused variable from FTS4.
...
FossilOrigin-Name: 27ea783b281606196ad1e7e6e6dcbd80c75d4bafcf3e58756a71c213320e4db2
2018-02-13 16:30:19 +00:00
dan
e84c498be1
Ensure that multiple updates of the same FTS4 row (i.e. the row with the same
...
rowid) within a single transaction are written to separate segments. Fix for
[d6ec09ec].
FossilOrigin-Name: d2a81a3752a8298ee65fddcf32dee2147ba6467f770315a41966b3533977aa64
2018-02-13 16:21:32 +00:00
drh
c083cb4422
Updates to the speed-check.sh script for improvements to the --vdbeprofile
...
option.
FossilOrigin-Name: f89c8f8ecd67f72ee730a2a334dff69b406a3dd00f50abbb54c4dc86cfab1bd1
2018-02-12 20:50:28 +00:00
drh
35043cc32a
When compiling with VDBE_PROFILE, add the sqlite3NProfileCnt global variable
...
which can be used to measure per-opcode values other than elapse time, if
non-zero.
FossilOrigin-Name: d44d5936428859b6d3e089d9835acb8ca1f3c0a85b59eeaa619170623e7dcc30
2018-02-12 20:27:34 +00:00
dan
1db7db1f03
Update test file func6.test so that it works with SQLITE_ENABLE_NULL_TRIM
...
builds.
FossilOrigin-Name: e128d72f1a565551d3b6fdb3807fcb1c2a2bf355f0c09d04562b62f49d01fdbc
2018-02-12 15:27:32 +00:00
drh
00c3ef2df9
Fix a possible infinite loop in VACUUM that can come up when the schema
...
has been carefully corrupted. Problem discovered by OSSFuzz. Test cases
in TH3.
FossilOrigin-Name: 27754b74ddf6463c6f9c48ea0df3637945b5ea086b92a41ddeb55b9aaefea4c2
2018-02-12 13:30:34 +00:00
drh
c86d82f27d
Fix misplaced testcase() macros from the previous check-in.
...
FossilOrigin-Name: 3aed949a18a251c5795f21f0385c205a127502b7e9cf06bc7f4c763951cd7984
2018-02-10 02:31:30 +00:00
drh
f313952097
Improve the performance of the built-in REPLACE() function in cases where
...
it does many substitutions that make the string larger. OSSFuzz is reporting
intermittant timeouts when running a test where it does a REPLACE() on a
930KB random blob. Perhaps this enhancement will fix that.
FossilOrigin-Name: fab2c2b07b5d3cd851db3e6f5c8a44155e32b0df22905ea33412b153b825a928
2018-02-09 23:25:14 +00:00
drh
510fea885e
Add the zorder.c extension implementing zorder() and unzorder() SQL functions.
...
FossilOrigin-Name: a57a77dc0cc9fbaa9d5b134422f7a8cc8d4c2851ed3c2bdd449800c6a5d2aae0
2018-02-09 20:49:15 +00:00
dan
91347c066b
Make the tests in func6.test more robust against implementation changes.
...
FossilOrigin-Name: b685d3231097fb90e7d61d9ac01cc560e8bf2671d49390ae7af5bfdbd6d04f11
2018-02-09 15:42:40 +00:00
drh
54cfb492b7
Fix a harmless compiler warning.
...
FossilOrigin-Name: a6c3115483d597fc77ab19fdcfd1d3437cad7e467081ad8c5315fb98c115eed9
2018-02-09 15:04:51 +00:00
mistachkin
2a86110a6c
Enhance sqlite3ErrStr() to include several more error codes.
...
FossilOrigin-Name: ad5d3bdc739a0997786f94fb5789b726b9f53ff883226093924338fe5000922b
2018-02-08 01:00:11 +00:00
mistachkin
b189e4101c
Fix typo in comment. Skip tests added by check-in [4761db83b6] when running on Windows.
...
FossilOrigin-Name: 468a389cdc8b6f92c77b11f682e210ad8cce7e3dbc0df308a898f4115e85fce2
2018-02-07 18:45:00 +00:00
dan
eab0e10304
In extensions rtree, fts3 and fts5, ensure that when dynamic buffers are bound
...
to persistent SQL statements using SQLITE_STATIC, the binding is replaced with
an SQL NULL before the buffer is freed. Otherwise, a user may obtain a pointer
to the persistent statement using sqlite3_next_stmt() and attempt to access
the freed buffer using sqlite3_expanded_sql() or similar.
FossilOrigin-Name: 2a5f813bc61f9e780f2ccbda425611f65ad523b6d486a1e5e2b9d5e9f1d260a2
2018-02-07 18:02:50 +00:00
dan
fa68815fa3
When the final connection disconnects from a wal mode database, check that the
...
database file has not been moved or unlinked before deleting the wal and shm
files.
FossilOrigin-Name: 4761db83b6d3d57f281370899403c102e39ad0021d315dd6a6912d250436782a
2018-02-07 16:14:41 +00:00
mistachkin
bc6b8d7359
Adjust the previous check-in, which modified the Win32 VFS, so that it works with SQLITE_OMIT_WAL.
...
FossilOrigin-Name: 36c2e67e82626f8d0a187c6c286c133ed659889e3b577469261b9dcd3b3ab75b
2018-02-05 21:02:47 +00:00
mistachkin
435666e26d
Allocation the mutex used by the Win32 VFS only once at initialization, instead of every time it is needed.
...
FossilOrigin-Name: 535ed0ac5e8728ec91fc0a4cb54b820923d161cfd4e0e6aed6df6cdae365bc7d
2018-02-05 20:42:50 +00:00
drh
561158937b
Allocation the mutex used by the unix VFS only once at initialization, instead
...
of every time it is needed.
FossilOrigin-Name: 5764dc160783f5c4017204b3e26a89d31240c868484ced8214c9ad872bd77bd4
2018-02-05 16:39:12 +00:00
dan
d1317095b5
Fix another minor problem in walro2.test.
...
FossilOrigin-Name: ba0631de60ca38bf7efa6dbd86ec8774bf6f438c804155968e97f17eabe3b20a
2018-02-05 13:42:45 +00:00
dan
60d72b9bab
Update test file walro2.test to account for systems with a page-size
...
(getpagesize()) larger than 32KB.
FossilOrigin-Name: d9e59cfb8476e1ec1ca458b8382172526c0557ab785f41e31971d03045c9344c
2018-02-05 13:28:51 +00:00
drh
4b18c1d53a
In the CLI,
...
make sure sqlite3_initialize() is called correctly even for non-UTF8 hosts.
FossilOrigin-Name: a3591fb54178b8f124207ff16e3ef9e58a62585feb3a56ced2b862222aea19d8
2018-02-04 20:33:13 +00:00
mistachkin
97f9059eee
Fix harmless compiler warning seen with MSVC.
...
FossilOrigin-Name: 63a914410b5750bd08836864ae456ff09549487c5ce49706fedffa3d4f973059
2018-02-04 01:30:54 +00:00
mistachkin
001f52ed7d
Move variable declaration in zipfile extension to fix MSVC compiler error.
...
FossilOrigin-Name: ac6a32482e675871c3ce5ecc727e50e4bba649e80e3c55bf99025fed5667da94
2018-02-04 01:29:01 +00:00
dan
3944cf8de3
Remove the "include <io.h>" win32 dependency from the zipfile extension.
...
FossilOrigin-Name: cb3feb3bc33718625159eddbf8ef608cd641af84e97d433d6b11ba6da94dad2e
2018-02-02 16:28:19 +00:00
dan
1dff328119
Remove the time() dependency from the zipfile extension. Use SQLite VFS
...
methods instead.
FossilOrigin-Name: 0702fb5611c7cf0154c5490eeada66afc733731dff0fe030375bae6a72123a17
2018-02-02 16:20:41 +00:00
dan
668845bb0b
Add a few more zipfile tests. No changes to code.
...
FossilOrigin-Name: 3f621545879ea39502cfaf2b61883f92c077070274b4fdf45524ded81cac3e63
2018-02-01 20:42:23 +00:00
dan
15daa6b53e
Fix a problem triggered when a zipfile virtual table is created and written to
...
within the same transaction. And add other zipfile test.
FossilOrigin-Name: 48f1c556994d7f8f359c649a1da81eec02306106b68946a9a20b276742c4610d
2018-02-01 19:41:23 +00:00
drh
563ddbe54d
New assert() statements to help ensure that no other errors similar
...
to [343634942dd54ab57b7] ever appear in the code.
FossilOrigin-Name: 5a70af1e9c567f12c997d25d0a305a8d42bf2cc92f2811e9d5fdde720665e213
2018-02-01 15:57:00 +00:00
dan
c3ef23a1c9
Fix a memory leak that could follow an IO error in the zipfile extension. And
...
add other tests.
FossilOrigin-Name: e6bb750697c3c7ceb5ce41d216e8ef6a1d556822a3b55e0a007b4a03e194a7d9
2018-02-01 15:19:54 +00:00
drh
06b3bd5b7a
When an index is based on a text representation of a numeric column in the
...
original table, make sure the indexed value uses the canonical text
representation of the numeric value in the table.
Proposed fix for ticket [343634942dd54ab57b70].
FossilOrigin-Name: 88e2ce916791d488076584f3795a89eb4277fcb812af9e4c2f383815d55ff6f1
2018-02-01 01:13:33 +00:00
dan
f8c3a2f3cf
When creating a new archive entry, have zipfile store UTC instead of local
...
time in the legacy MS-DOS format timestamp field.
FossilOrigin-Name: b730d187f2202e5b5d31ed6c94c9bb04d7c289f7086a9b44b3d9050ea3586d3a
2018-01-31 20:18:26 +00:00
dan
cfaffad65c
Fix a test case in zipfile.test.
...
FossilOrigin-Name: 4eb5b24c64ee5907c18371f563b79fa0caf58285a62b8f09e639a690e6727eaa
2018-01-31 19:45:58 +00:00
dan
44091ed368
When creating a new archive entry, have zipfile store UTC instead of local
...
time in the legacy MS-DOS format timestamp field.
FossilOrigin-Name: e2114df18383d111dd5fbac902e08b42a7f4b2b2d6f7bf29574a3722e4a4dad5
2018-01-31 19:13:31 +00:00
drh
5cd253423b
Improve 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: 02ba8a7ba7ba71cd7abd5dd3093ea486f53a025f6972bb444f2da37e0e2fc3b2
2018-01-31 16:50:27 +00:00
dan
4ea48144f9
Fix a failing assert() in the new code on this branch.
...
FossilOrigin-Name: 74d857d178dfadea7e07ba47439fe11aa9d282b54caf78cd6961e593b37406d0
2018-01-31 14:07:01 +00:00
drh
04a28c3b6d
Changes to the autoconf tarball so that it does not try to use system() when
...
building on iOS.
FossilOrigin-Name: 32ed9c106710c74a12d60ec33027fd6a9335627c95642ba608593b2735714da6
2018-01-31 01:38:44 +00:00
dan
099fa84727
If a virtual table xColumn method sets an error message using
...
sqlite3_result_error(), use that message in preference to any error message
left in the sqlite3_vtab object.
FossilOrigin-Name: 71e3b715ad36c2132a587b84221be6359c31d7a17c3fba201b7ed3baf17922f1
2018-01-30 18:33:23 +00:00
dan
2f7260deba
Add tests cases for the zipfile extension.
...
FossilOrigin-Name: 13b786dafd308b7aef42328f26fe64981c83d524e4bf82ceb7d58afc7146c7d3
2018-01-30 17:43:22 +00:00
dan
fdcd9d4e6c
Prevent users from creating zipfile() virtual tables without an argument.
...
FossilOrigin-Name: 81fdbe0cc5a360f818078d47a5888d0a29d555927da279a9a0213702d74ef09a
2018-01-30 14:07:55 +00:00
dan
ea4125bbef
Add unix-only tests to check that the "unzip" program can unpack archives
...
generated by the zipfile extension.
FossilOrigin-Name: 438c5c5237a801ae78809bf324bb9251fb50250addfc1f8e36659442b0e26ab6
2018-01-29 19:47:32 +00:00
dan
f8c4b99a02
Add aggregate function zipfile() to the zipfile extension. For composing new
...
zip archives in memory.
FossilOrigin-Name: e364eeac76a8225146b37d801bc6cabe03e9abede5a1412ebe9d94a32d8838cc
2018-01-29 18:41:07 +00:00
dan
8433e7166b
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
2018-01-29 17:08:52 +00:00
dan
26e731cc88
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
2018-01-29 16:22:39 +00:00
dan
a07aa8d397
Fix missing header comments and other code issues in zipfile.c.
...
FossilOrigin-Name: 6ea8ba312c38365d3e28cfb2a367d729dd2751d1d853843eea0e18126777a320
2018-01-27 18:55:18 +00:00
dan
26333ee3ca
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
2018-01-27 16:29:59 +00:00
drh
1822ebf9b1
Changes to avoid a harmless UB warning from clang.
...
FossilOrigin-Name: 19f5c1400054df10688ab448e7e23afef97cab4a7c7a3e411f7527509b515dd8
2018-01-27 14:25:27 +00:00
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
31a13548f8
Merge changes from trunk.
...
FossilOrigin-Name: 6ef3de810d54563c227045b16197b8011ce285ea867261946f93b2de55344f29
2018-01-24 15:02:53 +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
dan
26893c98d2
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
2018-01-17 16:11:26 +00:00
drh
b968518559
Fix harmless compiler warnings, mostly unused parameters for UDFs in the CLI.
...
FossilOrigin-Name: bfbeffab7735461acb3773242ba31dae15af9f8b0291c54a6734747bb1b36e66
2018-01-17 13:15:23 +00:00
dan
f193937620
Omit the single test from zipfile.test that uses json functionality in
...
non-SQLITE_ENABLE_JSON1 builds.
FossilOrigin-Name: 6bb2a10fad71bf8cec6bca538db7b00be0d26418ab62b83092d3a6a68d1c0d9f
2018-01-17 12:58:11 +00:00
dan
30fe26c47f
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
2018-01-17 12:57:07 +00:00
mistachkin
98e2cb8bd1
Simplifications to winOpenSharedMemory in the Win32 VFS.
...
FossilOrigin-Name: 3e04999dabb87715de46255b1a9b08d5dfa70d140e0a09a37ea2842d71c77caf
2018-01-17 01:40:57 +00:00
mistachkin
5685257b83
Corrections to error code handling in os_win.c, pursuant to walfault.test.
...
FossilOrigin-Name: 568192228c9578b8ea34c363e10ff28450045cda76248b2f0f89f84b3a57e680
2018-01-17 01:26:05 +00:00
mistachkin
824f28426a
Fix duplicate test names in 'walfault.test'.
...
FossilOrigin-Name: 7274d05ff43fc9872f0e4857ae583689e4a6c429b7fa991dcc29744da3048879
2018-01-17 01:15:08 +00:00
dan
2879952faa
Fix a problem causing zipfile to store 0 in place of the CRC32 value for
...
uncompressed files.
FossilOrigin-Name: ba44724bcca2e87788b7c6d8c5de7fa388360127bd894ee6a171fd66e794fcae
2018-01-16 21:09:00 +00:00
drh
8c9e30ba2f
Remove an unused field from the internal definition of the sqlite3_context
...
object.
FossilOrigin-Name: 948a26b5a64d8a89c4ec7546ec4a4bee36e29e82edda677ca75424e7091325d0
2018-01-16 21:05:10 +00:00
drh
2d9e8c55da
Fix compiler warning in the FTS5 test interface.
...
FossilOrigin-Name: 2ab4e8d5d82ab410c00f048c12555f2f40f9fd8bffda64ccbdd3dfe036727315
2018-01-16 21:00:58 +00:00
drh
4a4532bbb7
Make the new sqlite3_vtab_collation() interface accessible to loadable
...
extensions.
FossilOrigin-Name: f301db3c2343fd2086bc5b69a17b2d226175584ccd09549ebb2cb603590da487
2018-01-16 20:50:37 +00:00
dan
4bd387495f
Fix a test problem causing an error in fts5fault9.test.
...
FossilOrigin-Name: 8e2048113fc6ed87fc7d5ba470261926aa0bd35474744bb2b99ea596bc468f02
2018-01-16 20:44:00 +00:00
drh
eb0b6f364e
Remove the unused SQLITE_CANTOPEN_DIRTYWAL result code.
...
FossilOrigin-Name: 3c786305fc6eaa6856ec6c71fc7969f61de266ba1bea0abf0ae133eb94e54b2d
2018-01-16 20:37:56 +00:00
dan
70bc717c0e
Fix a makefile problem causing -DSQLITE_ENABLE_STMTVTAB builds to fail.
...
FossilOrigin-Name: 7f6e5bdf9021c31e8bde82c224bf53be3c93b79f7bb5c2802c54be8031cf89fb
2018-01-16 20:20:00 +00:00
drh
0ed2fd8a25
Move the ZLIB version announcement in the CLI out of the default banner
...
and put it in the ".version" command.
FossilOrigin-Name: 231679d6f8c0c3d957c8daa88b0743449b60b47159e114f4bc073a8612a73b2a
2018-01-16 20:05:27 +00:00
mistachkin
fff5367c24
Show version of zlib in use when running the shell tool in interactive mode.
...
FossilOrigin-Name: a8906b527a8f7a2cec88cc3b05c063a2785f0d1d141e148d954fc7440972a484
2018-01-16 19:03:51 +00:00
dan
194a17bbb7
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
2018-01-16 17:33:09 +00:00
dan
0c2ba13e02
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
2018-01-16 13:37:43 +00:00
drh
ded2d99d73
Disable the ".archive" command tests in shell8.test if the CLI is compiled without
...
ZLIB support.
FossilOrigin-Name: ce8bfe6c2b87090a2de1e04bc88fcb878597fe1f4ecd5df6d9d588a65601c901
2018-01-16 02:38:35 +00:00
dan
2d620070b9
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
2018-01-15 19:00:35 +00:00
dan
89fa746941
Fix a zipfile problem with extracting zero length files compressed using
...
deflate.
FossilOrigin-Name: cf64087224aff1a2fe169d23996d9e5ed8d86459c655eb5d0bace0466a557ec6
2018-01-15 15:49:46 +00:00
drh
a9be508a97
Fix an error in the setDeviceCharacteristics() procedure for the
...
(unsupported) QNX code in os_unix.c.
FossilOrigin-Name: 8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
2018-01-15 14:32:37 +00:00
drh
b058d05452
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
2018-01-14 20:12:23 +00:00
drh
eb54500419
Fix harmless compiler warnings in zipfile.c.
...
FossilOrigin-Name: 8f7a592f8c044d75b4615a95e27454100b10c2b26f4cafee97dec23343821130
2018-01-13 23:28:33 +00:00
dan
f42884c307
Support UPDATE statements against zipfile virtual tables.
...
FossilOrigin-Name: f2d2a5df4f29b47212fd2411eae6545087b901a270655640c87ceb472e02a24c
2018-01-13 19:08:24 +00:00
drh
cdb60978b9
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
2018-01-13 14:28:00 +00:00
dan
098728fc9c
Fix various problems in test scripts preventing "make test" from passing on
...
F2FS file-systems with the "atomic-write" feature.
FossilOrigin-Name: 6bedc7435d26c1f21c0d1b3a52daa0169fa5416b690a99347328dcafdcd78740
2018-01-13 14:02:16 +00:00
dan
2483a111db
Fix a typo in crash8.test.
...
FossilOrigin-Name: c3dc7b8d9de94e46fae75fcc96ec68743205e0a2591e14391c394fff203004d1
2018-01-13 14:01:26 +00:00
dan
69aedc8db4
Fix various problems in test scripts preventing "make test" from passing on
...
F2FS file-systems with the "atomic-write" feature.
FossilOrigin-Name: 56d93d070d6b92d8a5a3fec1b09aae8911116c73d072fc5022f0b51668ed996b
2018-01-13 13:07:49 +00:00
mistachkin
2034353db4
Updates and minor typo fix for the README.
...
FossilOrigin-Name: bb196fcb677e962db4308c02097968615729a51fe4a1292e468aaf3e4bf522d3
2018-01-13 02:07:16 +00:00
drh
76506cd3a7
Add the new "nochange" APIs to the extension loading mechanism.
...
FossilOrigin-Name: cd7c42699e73b688dbed29ed5d243d06439d7dbe0ba8c42d8299e04cc0dd4464
2018-01-13 01:53:09 +00:00
drh
9df81a2989
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
2018-01-12 23:38:10 +00:00
drh
41fb367a2c
Improved comments. Slightly tighter implementation, but no big changes.
...
FossilOrigin-Name: a1b3f28569f2a8d82b2931527fdfe191b421f3e1ea18ee30e04211e1ad645993
2018-01-12 23:18:38 +00:00
drh
ce2fbd1b02
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
2018-01-12 21:00:14 +00:00
drh
4ec6f3a075
Simplification to the implementation of OP_Insert.
...
FossilOrigin-Name: 6acbdba59e9df4313a6232d925a70390acdc43dfa380b4fba7bb8bd442d6e728
2018-01-12 19:33:18 +00:00