]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Thu, 11 Jan 2018 17:04:26 +0000 (17:04 +0000)]
Add the sqlite3_vtab_nochange() method which virtual table implementations
can use to optimize UPDATEs.
FossilOrigin-Name:
d444b1ff39f0a1673a977b8047e1e14a49d461c9934be080d27c2392a830c1c0
drh [Thu, 11 Jan 2018 14:50:40 +0000 (14:50 +0000)]
Minor formatting changes in zipfile.c. No logical code differences.
FossilOrigin-Name:
4f68bed3b9a63a349a2a2d7f26609491577e9717034ad86af404cf9eed9d6aaf
drh [Thu, 11 Jan 2018 13:43:04 +0000 (13:43 +0000)]
drh [Thu, 11 Jan 2018 00:38:39 +0000 (00:38 +0000)]
Update the .help screen in the CLI. Make sure the temporary files for
".open" are not deleted too soon.
FossilOrigin-Name:
b8d92d8dc239597c6f01a6e572b047f98ce374a8f48257683fa839dde3ec993f
drh [Thu, 11 Jan 2018 00:04:00 +0000 (00:04 +0000)]
Add the built-in edit(VALUE) and edit(VALUE,EDITOR) function to the CLI.
FossilOrigin-Name:
ef823c47a0ac4f3b001e6c89c38354b45b5229d872cfc69a29c82e99414b89c8
drh [Wed, 10 Jan 2018 23:29:42 +0000 (23:29 +0000)]
Add the ".once -e" and ".once -x" commands to the CLI, and the ".excel" command
that is an alias for ".once -x".
FossilOrigin-Name:
a6ed5ab9bc9741267fd1207e63b4c49d074291085c7e3f25e9f62a82f916a656
drh [Wed, 10 Jan 2018 23:27:30 +0000 (23:27 +0000)]
Update test cases for the new "usage" for .output.
FossilOrigin-Name:
fbf5e43c07e7c012cb39b33a74b3fab9e46ba946c48497fbd990110692125f57
drh [Wed, 10 Jan 2018 22:27:21 +0000 (22:27 +0000)]
Save and restore the output mode when doing ".once -x" or ".excel".
FossilOrigin-Name:
f697c164518d36f2a63c87d9f2708d0f9481fad3ded2de61f3f48c393cf7a500
drh [Wed, 10 Jan 2018 22:15:37 +0000 (22:15 +0000)]
An attempt to get ".once -e" working reliably on Windows.
FossilOrigin-Name:
9b97f9d2c876162139dbd9485fcf68412d1572d9ddc179b08938b8a602e895d6
drh [Wed, 10 Jan 2018 21:50:08 +0000 (21:50 +0000)]
Fix a potential SQLITE_MISUSE in the .excel command when no database is open.
FossilOrigin-Name:
9b95ff1abfb8d49bbe5a727f5c917a455e4289b4d69196377dc9294409341d70
drh [Wed, 10 Jan 2018 21:41:55 +0000 (21:41 +0000)]
Add support for the ".excel" command (and ".once -e" and ".once -x") in
the CLI.
FossilOrigin-Name:
23fa7c57c2b204d1ddcc2a939b5271628cf26689ad4ede6976038113095a9801
drh [Wed, 10 Jan 2018 19:50:40 +0000 (19:50 +0000)]
Fix a harmless compiler warning in zipfile.c
FossilOrigin-Name:
60c694c1ab26a7a096f17ccea5a93ecda0f9f2113ab5fdc8b17dbffc787724fc
drh [Wed, 10 Jan 2018 19:15:21 +0000 (19:15 +0000)]
drh [Wed, 10 Jan 2018 18:09:20 +0000 (18:09 +0000)]
Modify the new "--append" option to the .archive so that it takes a filename
argument, the same as "--file".
FossilOrigin-Name:
58e3b07cc8cb5cc915f7d430483bd455b03f14120e0db23286d2e20dbb5391c5
drh [Wed, 10 Jan 2018 17:44:03 +0000 (17:44 +0000)]
Add the lsmode(MODE) function in the fileio.c extension and use that function
in the .archive implementation. Add the --append and --dryrun options to
the .archive command and remove the --zip option, making it automatic.
FossilOrigin-Name:
38f28029d16df8489772c27867de8888dd1c26b170861acdc977fd4023939dde
drh [Wed, 10 Jan 2018 17:39:54 +0000 (17:39 +0000)]
Fix minor problems with the new ".archive" command changes.
FossilOrigin-Name:
612b30c95f948438016bd11470e9dd114d7bb064418a57e5954a094d2ca77f69
dan [Wed, 10 Jan 2018 17:37:58 +0000 (17:37 +0000)]
Return an SQLITE_CONSTRAINT error if an attempt is made to insert duplicate
entries into a zip archive.
FossilOrigin-Name:
1f099b2b45074c89eeff8ff241aa49489c95c2221b25c305fcda670ebf63fb4e
drh [Wed, 10 Jan 2018 17:19:16 +0000 (17:19 +0000)]
In the fileio.c extension, change the filetype(MODE) function into lsmode(MODE).
Use the new lsmode(MODE) function in shell.c.
FossilOrigin-Name:
52d12ba9f33c1f2620776e189c81f3bf991759344ecdd167ea2a6107f0972b9d
drh [Wed, 10 Jan 2018 16:50:18 +0000 (16:50 +0000)]
Implement the ".ar --create" command using a single
"REPLACE INTO sqlar SELECT ... FROM fsdir();" statement. Add the
shell_putsnl() SQL function for providing --verbose output.
FossilOrigin-Name:
28ab930436fea33c79073e84f39d9e381fa60b4702a5dcbfaaed72baeeae8431
dan [Wed, 10 Jan 2018 16:30:40 +0000 (16:30 +0000)]
Have the zipfile module automatically append "/" to directory names that do
not already end with such a character. This is required for info-zip
compatibility.
FossilOrigin-Name:
94bc3c60e7d2ec849b90444b06e3057ed645edf3af334f2737252960602868e5
drh [Wed, 10 Jan 2018 15:53:06 +0000 (15:53 +0000)]
Add the "filetype()" SQL function for interpreting file modes to the
fileio.c extension.
FossilOrigin-Name:
58c0c74c407d93f48930a4964b6cc48f008b522d193a62a559de0e6a319a8bd0
drh [Wed, 10 Jan 2018 15:17:34 +0000 (15:17 +0000)]
The ".ar" command deduces whether or not the target file is
a ZIP or SQLAR and does the appropropriate thing. The "-z" option is omitted.
The "--append" option is added to open auxiliary databases using apndvfs.
FossilOrigin-Name:
430d1a7daa823ae53606b7a158af4e7c16f62ff9b072b90606524e7c3f6131df
drh [Wed, 10 Jan 2018 14:00:00 +0000 (14:00 +0000)]
Allow the use of ".ar -t" without specifying an archive file or the "-z"
option when the command-line shell is opened on a ZIP archive.
FossilOrigin-Name:
9340a2c145bcb4b38d19276a16264a37341c617f0554d66e1da653f1d9f85163
drh [Wed, 10 Jan 2018 13:58:23 +0000 (13:58 +0000)]
drh [Wed, 10 Jan 2018 13:11:51 +0000 (13:11 +0000)]
Work on the ".archive" command.
(1) Add the --dryrun option.
(2) Do not require --file when open on a ZIP archive.
(3) Miscellaneous code simplifications.
This is an incremental check-in of work in progress.
FossilOrigin-Name:
a2baada429e84dc4b7243173a056e3c8bc042682f7efb01fdf8d2cc452c97e04
dan [Wed, 10 Jan 2018 11:56:03 +0000 (11:56 +0000)]
Fix a problem in os_unix.c causing it to return SQLITE_CANTOPEN instead of
SQLITE_READONLY_RECOVERY.
FossilOrigin-Name:
6a16f554f027ba268276b728588b5eaea837cbed85358a06a2f6da3b70e834ad
drh [Wed, 10 Jan 2018 00:53:55 +0000 (00:53 +0000)]
Rearrange some routines in shell.c to avoid the need to forward reference a
static function.
FossilOrigin-Name:
fd7f51a107806666d5c3a3a7a62528ec3e1fb71c4256f49d57b4dcdac4bf8680
drh [Wed, 10 Jan 2018 00:40:06 +0000 (00:40 +0000)]
Compute the correct column name even if the column identifier is the
very last token in the SQL statement. This fixes a problem introduced
by check-in [
0fdf97efe5df745510c6b ] and reported by the community during
beta-testing.
FossilOrigin-Name:
36b89d728ff13d395fe0e1db8e7c01263f73dccb278b3ece27f6ef78e909b492
mistachkin [Tue, 9 Jan 2018 22:23:42 +0000 (22:23 +0000)]
When disconnecting from the 'swarmvtab' extension, close each database prior to invoking the 'openclose' function on it.
FossilOrigin-Name:
3e5647cb6c4553683e24b9cb62548f16c79c4e2ac9e39cf135ea52a623f7cc33
mistachkin [Tue, 9 Jan 2018 20:49:33 +0000 (20:49 +0000)]
dan [Tue, 9 Jan 2018 20:44:04 +0000 (20:44 +0000)]
Return SQLITE_CONSTRAINT if a user attempts to update a zipfile table.
FossilOrigin-Name:
64c9ccf6c5598a68135e78dad128ec070afa49416e1d1f35745a24276e7aeeea
dan [Tue, 9 Jan 2018 20:34:53 +0000 (20:34 +0000)]
In the os_unix.c implementation of xOpen(), do not return
SQLITE_READONLY_DIRECTORY in cases where the file cannot be opened for reasons
other than a readonly directory, such as the process running out of file
descriptors.
FossilOrigin-Name:
fa8b80bb967792de99808712ac03e37ace0f11eb8fbe444aacd3d19184c425ea
dan [Tue, 9 Jan 2018 18:31:11 +0000 (18:31 +0000)]
Fix a potential crash in sqlite3expert.c caused by a missing sqlite3_reset()
call.
FossilOrigin-Name:
f6355970f04a3c4d85801c806366788139d8d5ad29383ec7faa81e2176ffe987
dan [Tue, 9 Jan 2018 15:57:55 +0000 (15:57 +0000)]
Fix another -fsanitize issue in new shell code.
FossilOrigin-Name:
6ee7b54c580de0240e0f49a5fd2d11ddcdbcce8a2ae4b249618d0ab2d54b5e5b
drh [Tue, 9 Jan 2018 15:28:25 +0000 (15:28 +0000)]
Updates to the README.md file for the ext/misc directory. No code changes.
FossilOrigin-Name:
6b3f4349d7156501f05270d494d6002ee03a0860b6e77b46d17effcab027b753
dan [Tue, 9 Jan 2018 15:25:55 +0000 (15:25 +0000)]
Fix the shell so that it can be built with SQLITE_OMIT_VIRTUALTABLE.
FossilOrigin-Name:
931421a22507a5e1edb46e19cb5b3958ec3904807836ab5bcc7a90f37f476e6a
dan [Tue, 9 Jan 2018 14:30:49 +0000 (14:30 +0000)]
Do not attempt to build the code in ext/expert/sqlite3expert.c if
SQLITE_OMIT_VIRTUALTABLE is defined.
FossilOrigin-Name:
ba967ad2e38590fe2a51e814a087140089be5e6a06a795a958e70a8a47f6350f
drh [Tue, 9 Jan 2018 14:27:58 +0000 (14:27 +0000)]
Attempt to fix the fileio.c extension so that it builds on MinGW-64.
FossilOrigin-Name:
a7446d3217d39c96c884fbfb294dd320378255f3bfb34e35d15ba6d7c6698f53
dan [Tue, 9 Jan 2018 10:29:34 +0000 (10:29 +0000)]
Fix a zipfile problem with adding new directories to an archive.
FossilOrigin-Name:
5fed67033c9dd4492bf8cfcf98874284581f448d8cc84fa5470dde239f218375
dan [Tue, 9 Jan 2018 07:16:51 +0000 (07:16 +0000)]
Fix a problem in zipfile.c found by -fsanitize.
FossilOrigin-Name:
4fe697fa6c2b45aec60c33eff1ce2ea97b8a2ca124ef0c0059930269d25cdb2e
drh [Tue, 9 Jan 2018 02:27:13 +0000 (02:27 +0000)]
Avoid a compiler warning when building with newer versions of MinGW
FossilOrigin-Name:
cba0206a15f30313e16a08634995ebfd5d325d83affb859a215e72509f539b4e
mistachkin [Tue, 9 Jan 2018 00:28:24 +0000 (00:28 +0000)]
Improve portability of compile-time MinGW detection for the command line shell.
FossilOrigin-Name:
4a7236140cb0f40fa846da4673a0d56218def1929d58cf016909ce881a681140
mistachkin [Tue, 9 Jan 2018 00:26:39 +0000 (00:26 +0000)]
dan [Mon, 8 Jan 2018 19:59:59 +0000 (19:59 +0000)]
Update the zipfile module so that it matches the documentation.
FossilOrigin-Name:
7e7e472fa91a2bad2e521d4d67f176c8eb9edc1a07b283e425ea0fa2b6abba1f
dan [Mon, 8 Jan 2018 17:34:15 +0000 (17:34 +0000)]
Fix problems in the sqlite3expert.c code revealed by -fsanitize.
FossilOrigin-Name:
7a93dd784bfdbf01927979a61643796e0901d9ac285fe4214677838def93a9a4
dan [Mon, 8 Jan 2018 17:12:54 +0000 (17:12 +0000)]
Add an "ifcapable trace {}" block to a test in fkey1.test that uses SQL
tracing.
FossilOrigin-Name:
7182591d351dde22ed2f6a60521d1d7c10a610d702e79693412efc6938167be0
mistachkin [Mon, 8 Jan 2018 17:09:05 +0000 (17:09 +0000)]
Remove a superfluous define from the 'fileio' extension when compiled for Win32.
FossilOrigin-Name:
6dcba6693f064b0e21360c5eab18abe4a1534f6699b5d7b92e60eab6be14c347
dan [Mon, 8 Jan 2018 17:05:32 +0000 (17:05 +0000)]
Fix a malloc/sqlite3_free mismatch in the shell tool code.
FossilOrigin-Name:
fe053b2ecdc04b918367fa503bf10292fd7cd84a6929670857b2e9153df4d1f9
mistachkin [Mon, 8 Jan 2018 14:24:08 +0000 (14:24 +0000)]
drh [Sun, 7 Jan 2018 23:28:10 +0000 (23:28 +0000)]
Avoid the use of utimensat() on older unix platforms.
FossilOrigin-Name:
90cb01d8d6ac12d0b88f2952a75aeefa81ba66f5e4a5377fdd8b9f86aec8e927
drh [Sun, 7 Jan 2018 21:58:17 +0000 (21:58 +0000)]
Remove the dependency on test_windirent.h from the generated shell.c file.
FossilOrigin-Name:
0a50c9e3bb0dbdaaec819ac6453276ba287b475ea322918ddda1ab3a1ec4b58b
drh [Sun, 7 Jan 2018 20:38:10 +0000 (20:38 +0000)]
Modify the sqltclsh startup script to look for a properly formatted
SQLAR at the end of the executable. Fix the CLI so that it automatically
links against appendvfs and so that the --append command-line option works.
FossilOrigin-Name:
67c4a8c6881e33b830aa27c80e7e3d697a4222939edd77cd5ca77ece16471ea4
drh [Sun, 7 Jan 2018 19:52:28 +0000 (19:52 +0000)]
Improved comments on the sqlar.c and compress.c extensions that describe
the differences between the "zlib format" used by SQLAR, the raw deflate
format used by ZIP, and the custom format used by compress.c. No changes
to code.
FossilOrigin-Name:
c13415c5caf06eaa73086c500907451dfcdfd1354ac4a9ab63edb7255edbfa1b
drh [Sat, 6 Jan 2018 21:46:01 +0000 (21:46 +0000)]
The shell detects and opens ZIP archives using the zipfile extension.
FossilOrigin-Name:
05c99eb8cefbb3366b6d4ae91e10aa0c82bdf5ea361f4b3375413783af9167ac
drh [Sat, 6 Jan 2018 19:19:50 +0000 (19:19 +0000)]
In the shell, include the ".archive" command only if compiling with
SQLITE_HAVE_ZLIB. Add ".archive" to the ".help" output.
FossilOrigin-Name:
366469f5603367fabcadfc9ffe8cd1e23c649fea49a560178ca0858a16a7e4d1
drh [Sat, 6 Jan 2018 15:49:57 +0000 (15:49 +0000)]
Better whitespace in the "CREATE TABLE sqlar()" statement for the ".ar"
command.
FossilOrigin-Name:
252ee55a7fc0b068b707af27bd912e684c28320996e78f0675217046b8c2fb49
drh [Sat, 6 Jan 2018 15:46:20 +0000 (15:46 +0000)]
Improved output from ".schema --indent" when a column definition is followed
by a comment.
FossilOrigin-Name:
87da7efff07327278b1437f862ed8683c2d5d6ada7ea7461601a58f9762646b4
mistachkin [Sat, 6 Jan 2018 14:44:29 +0000 (14:44 +0000)]
Remove a trailing tab from the Makefile for MSVC.
FossilOrigin-Name:
00cc26e34d2b81f140b031aa2f9ae0e2a4835cdd261d68f94b3e18a1388ca73d
mistachkin [Sat, 6 Jan 2018 14:43:33 +0000 (14:43 +0000)]
drh [Sat, 6 Jan 2018 13:42:27 +0000 (13:42 +0000)]
Add the appendvfs extension and code for the sqltclsh.exe executable.
FossilOrigin-Name:
b0a43e325c53ec0df50fd41acffbbee65eac47b9318868e6959cd39da66fa8d6
drh [Sat, 6 Jan 2018 13:33:21 +0000 (13:33 +0000)]
Fix the appendvfs so that it leaves sqlite3_file->pMethods as NULL if it
fails to open.
FossilOrigin-Name:
46b341e3ad11b807ae50f001b970299de7ea0d523dbb639ee10f1d5aca5d958b
drh [Sat, 6 Jan 2018 04:34:05 +0000 (04:34 +0000)]
drh [Fri, 5 Jan 2018 21:01:37 +0000 (21:01 +0000)]
Make sure i64 and u64 typedefs are available throughout shell.c.
FossilOrigin-Name:
656fb5aab32f40412389e43de209867cedee1589533949cc8c01ba24218ea434
drh [Fri, 5 Jan 2018 20:30:54 +0000 (20:30 +0000)]
Fix the shell.c.in amalgamator script so that it avoids generating
redundant typedef statements.
FossilOrigin-Name:
6c53c740cb4f62305689ea0a73beca83e71ed86707094e850bed975965c8c9f2
mistachkin [Fri, 5 Jan 2018 20:26:06 +0000 (20:26 +0000)]
MinGW does not define the S_ISLNK macro; therefore, define it in the shell when needed.
FossilOrigin-Name:
73023febbe57495a22db05904bd6ddff439d6c25970cbe87e0ba4a923f3e8a29
mistachkin [Fri, 5 Jan 2018 20:13:33 +0000 (20:13 +0000)]
Skip running the 'zipfile' test if the necessary static package cannot be loaded.
FossilOrigin-Name:
5bc816ec4010c20407396a1051e9f9b0a360ca27c0a99dafa867225cf974e306
mistachkin [Fri, 5 Jan 2018 20:08:46 +0000 (20:08 +0000)]
Fix shell compilation with MinGW by including the 'dirent.h' header.
FossilOrigin-Name:
dfe510b51046a53c7f5c54fe73ec9de3364923eabd4b909c11984552e6bea406
drh [Fri, 5 Jan 2018 19:49:54 +0000 (19:49 +0000)]
Fix the autoconf makefile so that it builds testfixture correctly.
FossilOrigin-Name:
fbfe04c0b4f261789cbda3d2e98d12508181c283eab0bb757b081f0383e891bd
mistachkin [Fri, 5 Jan 2018 19:28:16 +0000 (19:28 +0000)]
mistachkin [Fri, 5 Jan 2018 19:27:19 +0000 (19:27 +0000)]
The 'releasetest' tool should pass the TCLDIR macro for MSVC to nmake.
FossilOrigin-Name:
eaa9c0dda73808f1458f9968be59947636fbd4781c9fc535eb50bcaf790093c1
mistachkin [Fri, 5 Jan 2018 19:25:52 +0000 (19:25 +0000)]
For the MSVC Makefile, the 'sqlite3_checker.exe' target requires the Tcl library.
FossilOrigin-Name:
38109a47ffa977f1f962af2e183285d4e5db6fac2344868c5f1de64779dd0839
drh [Fri, 5 Jan 2018 19:01:05 +0000 (19:01 +0000)]
Add the ".ar" command to the command-line shell.
FossilOrigin-Name:
148b8aee78e40cab9a758a920589bd3ca8fc1c45cc93598bc50d96b85cd17e6c
drh [Fri, 5 Jan 2018 18:51:25 +0000 (18:51 +0000)]
Fix a bug introduced by efforts to reduce compiler warnings in
check-in [
364ac333b030f0 ]
FossilOrigin-Name:
1d6cee9ad448b10e69f351ef9dbec09110c5b189cba8734e637f41abe8f35bf8
mistachkin [Fri, 5 Jan 2018 17:40:38 +0000 (17:40 +0000)]
In the Makefile for MSVC, the default target should not include binaries that link against the Tcl library.
FossilOrigin-Name:
5c6d0a1d58533feb4ea6926f4d3611664a275ad216492b424056276da38e84a2
mistachkin [Fri, 5 Jan 2018 17:12:13 +0000 (17:12 +0000)]
More adjustments to MSVC Makefile dependencies for zlib.
FossilOrigin-Name:
bb650e5d14642b925c5ea65ba7991b35c4e941405d2557d542b99c66ca4bc130
mistachkin [Fri, 5 Jan 2018 17:10:49 +0000 (17:10 +0000)]
drh [Fri, 5 Jan 2018 16:23:43 +0000 (16:23 +0000)]
Fix missing dependencies for shell.c in all makefiles.
FossilOrigin-Name:
45495d3e256fef4d0669754726878ed17248fc781397ebb0421149ee9492f977
mistachkin [Fri, 5 Jan 2018 16:05:51 +0000 (16:05 +0000)]
In the Makefile for MSVC, only attempt to link against Tcl when it is needed. Also, only compile 'zipfile.c' when use of zlib is enabled.
FossilOrigin-Name:
a33ad33cf031edee273afa4735c8564870465be22962a9c277e4ac43a307ff2c
mistachkin [Fri, 5 Jan 2018 16:03:52 +0000 (16:03 +0000)]
Add some missing #ifdefs for building without zlib.
FossilOrigin-Name:
c63fb1700c0f67d90857b1f3859c203880d0939f356a64d8ae7cafc814ea72bf
drh [Fri, 5 Jan 2018 14:55:43 +0000 (14:55 +0000)]
dan [Fri, 5 Jan 2018 11:34:18 +0000 (11:34 +0000)]
Fix an LSM problem causing the wrong amount of "auto-work" to be performed
under fairly obscure circumstances.
FossilOrigin-Name:
a4876672edea4e96103efd2463ce9a34a0b994a8744c941660940578aafbd454
dan [Fri, 5 Jan 2018 07:57:54 +0000 (07:57 +0000)]
Fix an LSM crash that could occur if LSM_CONFIG_AUTOFLUSH was set to 0.
FossilOrigin-Name:
05346f83d587e6049da0e8ec5f62c749daa9e80359cf48f8c37e333e6a1e7d2a
mistachkin [Fri, 5 Jan 2018 01:22:37 +0000 (01:22 +0000)]
Revise detection of 'tclsh.exe' in the Makefile for MSVC.
FossilOrigin-Name:
45fabd868dc690894f5a911d373a3d6410ba2d95d177307a42009afc8ae296cc
mistachkin [Fri, 5 Jan 2018 01:00:17 +0000 (01:00 +0000)]
mistachkin [Fri, 5 Jan 2018 00:53:03 +0000 (00:53 +0000)]
mistachkin [Thu, 4 Jan 2018 23:49:08 +0000 (23:49 +0000)]
In the 'fileio' extension code for Win32, use the FILE_FLAG_BACKUP_SEMANTICS flag when setting the file times, just in case the file is actually a directory.
FossilOrigin-Name:
4f3444060057127bce81787ed83cb5225cdbdd577596bc3fb06a40be2208f238
mistachkin [Thu, 4 Jan 2018 22:50:52 +0000 (22:50 +0000)]
Remove 'timespec' related code from the shell that has no effect and a (now) superfluous 'timespec' typedef from the Win32 dirent header file.
FossilOrigin-Name:
57dac995dd028e4b7c8ce6806f5769831715c1bb9b886318fceb3fa50563d537
mistachkin [Thu, 4 Jan 2018 22:46:08 +0000 (22:46 +0000)]
Get the shell enhancements compiling with MSVC.
FossilOrigin-Name:
335387f9e0d4569097d34cd99cd332b38a282e9b7ae25f088eb47df5c25837ef
drh [Thu, 4 Jan 2018 19:54:55 +0000 (19:54 +0000)]
drh [Thu, 4 Jan 2018 19:20:37 +0000 (19:20 +0000)]
Remove the snarky "_supported_" qualifier from the name of the
sqlite_offset() SQL function.
FossilOrigin-Name:
a6eee0fcd89d3958f8720ebdb5f0a8558b4795d747128091dae283eb81c4f74f
drh [Thu, 4 Jan 2018 16:40:44 +0000 (16:40 +0000)]
Fix a broken documentation hyperlink. No code changes.
FossilOrigin-Name:
d91e3f3d343d281af374dd23eea333e61228539023ad5c5aea622085e5863bc7
drh [Wed, 3 Jan 2018 01:47:30 +0000 (01:47 +0000)]
Add another test case (found by OSSFuzz) for the problem fixed in
check-in [
2846458a ] and described by ticket [
dc3f932f5a147771 ].
No changes to code.
FossilOrigin-Name:
4165fae920a1176c68bfaa1f2cfe17df7f8dd8793519d458b71e3e63670b5495
drh [Tue, 2 Jan 2018 21:29:42 +0000 (21:29 +0000)]
drh [Tue, 2 Jan 2018 18:11:11 +0000 (18:11 +0000)]
In the constraint resolution logic, be careful not to cache column values
in registers whose initialization might be bypassed by an OP_NoConflict opcode.
Fix for ticket [
dc3f932f5a147771 ] reported by OSSFuzz.
FossilOrigin-Name:
2846458af5d029a8e4fdcc8f50873a44e57897bbfe6aee8a23a01ffc34c5579f
drh [Tue, 2 Jan 2018 16:02:50 +0000 (16:02 +0000)]
Enhance the memvfs extension so that it can be read/write.
FossilOrigin-Name:
04c9197d589666299aef86ee6a56df63448c050274c9fba4af94f932752be237
drh [Tue, 2 Jan 2018 13:48:48 +0000 (13:48 +0000)]
Updates to the sqlite3_file_control() documentation. No changes to code.
FossilOrigin-Name:
240e32ab1f2a18e3c9b92f577b1cc8f8ecb4c68c44eac863d859491e042cb72a
drh [Tue, 2 Jan 2018 12:50:40 +0000 (12:50 +0000)]
Do not attempt to use pragma_module_list in the command-line shell unless
it has been compiled with -DSQLITE_INTROSPECTION_PRAGMAS.
FossilOrigin-Name:
39ca5fcd31c902cbade4da05125b0dbf2bc5e2b8901af1645f113c9d3dbc8209
drh [Tue, 2 Jan 2018 00:04:37 +0000 (00:04 +0000)]
The ".schema" command in the command-line shell now shows the structure of
table-valued functions and eponymous virtual tables if they are named on the
".schema" command line. Example: ".schema sql%" shows the structure of
the "sqlite_dbstat" and "sqlite_stmt" virtual tables.
FossilOrigin-Name:
f80f6651df0b2843c6c9619a8f3e05c56cd50363402800a2e166e6eb664f7768
drh [Mon, 1 Jan 2018 21:49:43 +0000 (21:49 +0000)]
Improved name quoting and escaping in the auxiliary column info section
of the ".schema" output for views and virtual tables.
FossilOrigin-Name:
d64b14e37d9624bf5d86059ddd091170d8e6d341a8043f84548b9b3dbb96a908
drh [Mon, 1 Jan 2018 21:28:25 +0000 (21:28 +0000)]
In the output of ".schema", show the column names of virtual tables and
views in a separate comment.
FossilOrigin-Name:
2234a87fa905312b23f46d52e06cff7cacbf23b187e16c4398a42e6bdae0ee9f