dan
fa5c69f5cb
Fix a problem in the xBestIndex method of the closure extension causing it to
...
allocate non-contiguous argvIndex values in some cases (an "xBestIndex
malfunction" error).
FossilOrigin-Name: 0c67150749cb3d067e14b2dcac9c3489e0f14bd18c0387f1d9bc93d21fc96fe5
2018-05-02 08:12:22 +00:00
drh
ef9e3d78f2
Enhance the comments in the templatevtab.c implementation.
...
FossilOrigin-Name: 05f6278a02e5cde89f76ced5af7d508e26576d7291dad7ee9e06b1a3be516cb0
2018-04-27 15:17:08 +00:00
drh
fc0ec3e5e8
Add new interfaces for accessing the list of SQL keywords:
...
sqlite3_keyword_count(), sqlite3_keyword_name(), sqlite3_keyword_check().
FossilOrigin-Name: 7dd34e3776fed90a49344d54a1b68bb59f7957b5a8a1a367087b7cafb63111c1
2018-04-25 19:02:48 +00:00
drh
7eabc44dee
Add the new DO and NOTHING keywords to the keyword lists maintained
...
by various extensions and auxiliary programs.
FossilOrigin-Name: 77a98a0781cd8450e2100111e70526db6a51d7e58e3c505ea87f685388099e82
2018-04-25 17:10:30 +00:00
drh
4d3e61403a
Fix a memory leak following failure to open an external CSV file in the
...
csv.c extension.
FossilOrigin-Name: 526ee07d19dbc8fd1af3a02a8da12b337020a4be40e045da9a19d0a7c2b6ab54
2018-04-24 10:57:10 +00:00
drh
55a3490cf2
Add the ext/misc/tmeplatevtab.c template for virtual tables. This is a
...
work-in-progress as it still needs improvements to the comments in order to
be useful as a template.
FossilOrigin-Name: 22358fb5495c727a4dde129128fe409a7b929a5ffa143b1e2879f84d7680ec3c
2018-04-19 16:14:59 +00:00
mistachkin
33fc27790a
Fix segfault in 'eval.c' extension when used with 'empty_result_callbacks'.
...
FossilOrigin-Name: e8b87bd4954437041139344d6d1ce3e4aace40ea6891b70f9c20cd95671270e7
2018-04-04 12:21:33 +00:00
drh
92a2ec00eb
Fix the generate_series virtual table so that it correctly returns no
...
rows if any of its constraints are NULL.
Ticket [fac496b61722daf28].
FossilOrigin-Name: 3328e828e28ca7198fd1ce84503e649ab2278913a2cf85a0f0391f31d0c9c8d7
2018-04-03 14:25:51 +00:00
drh
58bd03320d
Fix a bug in the spellfix extension causing it to compute suboptimal answers.
...
The problem was introduced by check-in [afd6fbc01052ccfc9].
FossilOrigin-Name: 3bf28fd9a70ebefc464dceda124d6ed342dd83f71eeeb0568f79e34e731a073e
2018-03-30 16:34:04 +00:00
drh
9f95e48d94
Fix an off-by-one error in the dist3 algorithm of the spellfix extension.
...
FossilOrigin-Name: 5c34af7b975598bbe20751dfdd346f43031cb2bcb6b78f1bbdb2b51b398de182
2018-03-30 15:59:54 +00:00
dan
3f2cebb6b4
Fix minor problems with passing NULL pointers to memcmp() and memcpy() found by -fsanitize=undefined.
...
FossilOrigin-Name: 0b06ce6d8e7cff5cd5d467a94522dfef5593d7c26663ce03c2c2b663a2641551
2018-03-23 16:31:34 +00:00
mistachkin
ce2052bc39
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: 2f2be1b1811e6b83fc8945da06e57b8b54233ff8a6ebd9d71b22c6bab2e74afb
2018-03-23 00:31:53 +00:00
mistachkin
de8113c31e
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. Also, fix handling of 'UPDATE OR REPLACE' statements run on zipfile virtual tables. Win32 portability fixes to the 'fileio' extension. Miscellaneous test fixes.
...
FossilOrigin-Name: b36caeca91647616ac2ccdb281200c1a8bcd15d1f30dda0c1d89440d54607196
2018-03-20 16:56:12 +00:00
dan
93c803e960
Fix handling of "UPDATE OR REPLACE" statements run on zipfile virtual tables.
...
FossilOrigin-Name: 9a5ef341de2bd2fc4657a510f48159f7876f58d340b457b4272a71d389f88da3
2018-03-20 13:26:01 +00:00
dan
d30830e42d
Add a test case for the fix on this branch.
...
FossilOrigin-Name: 7834cf6c28c63f6ca0e29a508c0f6e3ec9c5c48715344c2db99a9866e92ef205
2018-03-20 12:12:06 +00:00
drh
8c1eba75a3
Enhance the command-line completion extension to return the names of
...
triggers and views along with the names of tables.
FossilOrigin-Name: 10e32204e1850354ff16fc052145726e903f87185a37f172831dddad1955184e
2018-03-19 19:05:45 +00:00
mistachkin
2cc8f4831e
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE.
...
FossilOrigin-Name: cf78a882799424610209e9ac5e76771db3f5e6704ffa181f9598eb0986d93eb8
2018-03-17 02:13:13 +00:00
mistachkin
42a0dbfe92
Win32 portability fixes to the 'fileio' extension.
...
FossilOrigin-Name: 9d2b0f8b84aac862b0572b183e3ba53ea8c0d8742aaa3c3fbe59f6036054fd1a
2018-03-16 23:54:36 +00:00
mistachkin
093d63bf34
Draft fix for an fsdir() issue reported via the mailing list.
...
FossilOrigin-Name: 48641010c24bf37f13d68c4d19c5c3e9b41404af12a4947705cc53a31db04178
2018-03-15 05:25:57 +00:00
drh
42f3c5ff25
Add support for INSERT OR REPLACE and INSERT OR IGNORE on the zipfile
...
extension.
FossilOrigin-Name: 8ad35d483e4293d5571eeacc20fd26cdc4064fbee7b63d974879d507a0ee5792
2018-03-10 14:17:01 +00:00
drh
41a6f2cb6d
Improved error messages from the zipfile extension.
...
FossilOrigin-Name: f634a7e386918b829389f20c330d312315fdd61125cd2c5f66cf17a5d74bce49
2018-03-10 13:21:41 +00:00
drh
70acb0aa6b
Avoid harmless left-shifts of negative numbers in the zipfile extension
...
when building ZIP archives of files with pre-DOS dates.
FossilOrigin-Name: 16bba8650cc24a0fd606944422bb31f2b8bdbe0a5a483678989e400b751eab4d
2018-03-10 12:53:20 +00:00
drh
ef29f73479
Fix the zipfile extension so that it is able to create symbolic link entries
...
in the ZIP file even on systems like Win32 that do not support symbolic links
on the native filesystem.
FossilOrigin-Name: 2a4493f4ad2d09c1097e98e7086623669f3f252571884d515e51a98b1c6855e1
2018-03-10 12:34:08 +00:00
drh
980e2cd39a
Attempt to fix a harmless compiler warning from Clang.
...
FossilOrigin-Name: bba1bfbde62733e14f458bf3b71cb00d4899a4ebae2553d6ed24d48495cdced1
2018-03-09 12:46:34 +00:00
mistachkin
f7c8a35b8d
Fix harmless compiler warnings in the 'dbdump' tool.
...
FossilOrigin-Name: 2b9bb2664c56dd3280b4aad05b7f64dd23e5b992b5621a48dbfdb7c358d0f3ae
2018-03-07 21:39:25 +00:00
mistachkin
ac8ba26ecb
Fix utility compilation issues with MSVC.
...
FossilOrigin-Name: 5bd5a79898790bef150b2bc7f275333444b1a723385e595931377ff4d32190bf
2018-03-07 14:42:17 +00:00
mistachkin
5facffbc70
Fix harmless compiler warnings in the zipfile extension seen with MSVC.
...
FossilOrigin-Name: 15c587cf6ffc920dc37f67cacb4f0db6a603fb998a22a639f755387910516414
2018-02-23 13:38:54 +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
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
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
510fea885e
Add the zorder.c extension implementing zorder() and unzorder() SQL functions.
...
FossilOrigin-Name: a57a77dc0cc9fbaa9d5b134422f7a8cc8d4c2851ed3c2bdd449800c6a5d2aae0
2018-02-09 20:49:15 +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
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
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
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
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
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
c86caa58cd
Fix compiler warnings in zipfile.c.
...
FossilOrigin-Name: bed610d99b5322ee209b06966c0086e8c55f8a82be8d7693cfdeb4d728679721
2018-01-27 03:26:10 +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
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
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
fe875027d7
Add the normalize.c extension.
...
FossilOrigin-Name: 16ebe558d2f0982f630c39b6c1b00d14d27011d454cced213f17c26491a2c06e
2018-01-24 15:07:37 +00:00