aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | | Fix a memory leak in the ".dump" command of the CLI that can occur if andrh2024-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | error other than database corruption is seen while trying to query the database. FossilOrigin-Name: 2560cc7072c923f534a5de1e15d2b0dd4ac5faf0a8876d9e3bf9804345585444
* | | | | Add the SQLITE_FCNTL_NULL_IO file-control.drh2024-11-13
| | | | | | | | | | | | | | | FossilOrigin-Name: f0e917fcf51b59f8ccfe5b9341937341d0e6016eb275d6c33dcb10b0b301a9da
* | | | | Clarify the documentation to make it clear that rows inserted by adrh2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CREATE TABLE AS SELECT statement are not counted by sqlite3_count64(). [forum:/forumpost/1e6cde5648|Forum post 1e6cde5648]. FossilOrigin-Name: 5c5982e3937acdcda43d6c5b46a95b82bc1839c3558a4b9ae9022384e0f13f04
* | | | | Add the ".dbtotxt" command to the CLI.drh2024-11-11
| | | | | | | | | | | | | | | FossilOrigin-Name: b43acf5a8cd4a5efbb90b71af7710084f49bb90ffe4f56de168e8c3a6b679124
* | | | | Increase the minimum SQLITE_LENGTH_LIMIT from 1 to 30 to avoid problems doingdrh2024-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simple things like converting strings into integers. See also [8fd5b8ec4ab9b555]. FossilOrigin-Name: 6aa01707af4bd96f0f173f9e87f2398be7e6f246f59baa117092849a626b2d61
* | | | | Further improvements to the ".mode json" output in the CLI.drh2024-11-07
| | | | | | | | | | | | | | | FossilOrigin-Name: 6201b5707f8c895028f9c08cb4f83d33a16a91bf04ed3830ac51aa763d6b7205
* | | | | Improve the ".mode json" output of the CLI so that it encodes U+007f usingdrh2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | an escape sequence. FossilOrigin-Name: 8b58cf9bbd3090c60f1ee7468cdeeb0b0fa4560d1e51a5fd0bef43692d10fe04
* | | | | Change a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request ↵stephan2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | in [forum:24cf6020c6|forum post 24cf6020c6]. There's no semantic change for this tree, but this is consistent with how auto-config tools would define it and the empty #define interferes with some downstream code. FossilOrigin-Name: 9c46d84f3bf2f5876211b498104067d32a4000979fad1345deb1000c23716d75
* | | | | Fix harmless compiler warnings.drh2024-11-04
| | | | | | | | | | | | | | | FossilOrigin-Name: bc93e17924f732468282c5e7a483811d27af573a47aec8ba806f4fe3c5919893
* | | | | Ensure that the database encoding is detected before the code generator getsdrh2024-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | too far down into byte-code generation and execution, but not so early that it interferes with initialization. [forum:/forumpost/bc75a4d20b756044|Forum thread bc75a4d20b756044]. FossilOrigin-Name: af7173a10ec6a4ab465207c1ee20393e8b5f06604c0f3b2fdc19e52c2fc013d5
* | | | | Avoid loading the entire record into memory for an sqlite3_preupdate_old() ↵dan2024-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | call that retrieves an IPK value. FossilOrigin-Name: 7f4de43733200beeb3ff0a70d51bbc68f5331895698ea95a82741cfd7bb66834
* | | | | Extra defenses against UAF when failing to allocate a transient cursor. Nodrh2024-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | known path to a UAF currently exists. This change just helps with the static analysis to prove it. FossilOrigin-Name: bae05811116dae0d05bcc001655416d0316ca1c16cbde2bd49f691c832261b89
* | | | | Fix the CLI so that it can use either the canonical Antirez linenoisedrh2024-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (with HAVE_LINENOISE=1) or Steve Bennett's enhanced linenoise that works on the Win32 console as well as on Unix (with HAVE_LINENOISE=2). The ./configure script detects which one to use and sets HAVE_LINENOISE accordingly. FossilOrigin-Name: c0048e4482e9cb9662637899922af9609e7c8fb002a37b71e6181074df7a0dd1
* | | | | Enclose the generated "sqlite3.c" and "sqlite3.h" in a single big #ifdef sodrh2024-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that if they get truncated by more than a little whitespace, they will not compile and the truncation can be easily detected. FossilOrigin-Name: c3b624e2a903f0c975bc8b7288b98616a4a22b2a574738d1f578bfad1d6d8b91
* | | | | Remove the never-used and never-documented and long-ago deprecateddrh2024-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | user-authentication feature option. FossilOrigin-Name: 3a3f7bf4307c27e56546e51da06ecc9a262cdf155fda2dd359aa2326d207a147
* | | | | Omit the antiquated and long-unsupport async extension since it has beendrh2024-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | superseded by WAL mode for over a decade. FossilOrigin-Name: 10b1b86821bfc21377e7ccceb31146ab01aa6eaf418b85a204abcab5b793958e
* | | | | When readline is enabled, attempt to determine whether the completion API is ↵stephan2024-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | compatible and, if it's not, disable it in the shell app. FossilOrigin-Name: 4564dbe4ac0040803b5d139c9fff22a60a45b4769d80ad7c824456cc6b9f1722
* | | | | Help systems still using Tcl8.6 to compile tclsqlite.c by changing adrh2024-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | typedef into a #define. FossilOrigin-Name: 82ab8ff399aafa3a1faec9c85e9d6bdd26636f28f3ea22287999a868bb78db57
* | | | | Fix harmless compiler warnings. One of the warnings was code thatdrh2024-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deliberately committed memory errors to test the systems ability to cope. But compilers don't allow that any more, so we'll have to leave that capability untested. FossilOrigin-Name: 7e7b3b2edbb580c9ac14f21e5caa8f2f6b171d9a7ce6cb336dc0c8db76da7e8c
* | | | | Reorder conditions in sqlite3PagerDirectReadOk() for coverage.drh2024-10-23
| | | | | | | | | | | | | | | FossilOrigin-Name: da9124fee28c155c4d1cc0d3949eb7b588a7236c12883a010af7909ad8e534ef
* | | | | Fix harmless compiler warnings in wherecode.c. One such warning wasdrh2024-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identified by [forum:/forumpost/721675f007|forum post 721675f007] and the other was found by tool/warnings.sh. FossilOrigin-Name: 987b96aa636c1801f87d3e1c75d34d45c5b6f437bcc6d150298675447ed16b5d
* | | | | Changes to EXPLAIN QUERY PLAN to identify covering index plan that use ↵dan2024-10-22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | indexes on expressions. FossilOrigin-Name: 29fb4919b6118b3b9ae411ec2ed5b59db7fae281909501c5fa238221ba635db5
| * | | | | Experimental change to explain query plan to identify covering indexes on ↵dan2024-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expressions. FossilOrigin-Name: 3bb03a2891e30c58b66e3665a8877a8eab4a8bac57ee153d8d31358caeaf4b7c
* | | | | | Rename to SQLITE_IOCAP_SUBPAGE_READ.drh2024-10-22
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: dd446ef1816f4e95ce29de0b3841dd0a6c983646fd2dd271c2db8f3263478164
* | | | | | Add the SQLITE_IOCAP_BYPASS device characteristic. Do not allow thedrh2024-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLITE_DIRECT_OVERFLOW_READ optimization if that capability is missing. FossilOrigin-Name: f50ae00ce9ff572e6bd5e2788602ba356383526ab7289622a32fbf52926c6df0
* | | | | | Do not typedef Tcl_Size if it is already #defined.drh2024-10-22
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 53491688cf622ca317b3ff56156e601c2bdfffc94e4fe471ca82d5ba1d9e875f
* | | | | | Move the #include of hwtime.h from the bottom of util.c to the top ofdrh2024-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vdbe.c so that it will be available when needed, even for non-amalgamation builds. FossilOrigin-Name: 5f23036a87f443c82fa7fd48fdac16a31128bb9288b71f97228c29bcfeb632fb
* | | | | | An assortment of comment typo fixes discovered by aspell. Add several new ↵stephan2024-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | words to tool/custom.txt. No code changes. FossilOrigin-Name: 59b76a99e4a28f4cc8c4f9f39ff6e039c4d29cb7b44183f1902b5792638656d2
* | | | | | New assert() statements to validate OP_OpenEphemeral logic.drh2024-10-18
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 6d55c3e238e06c6727f3e816a9268b6222ebfc90ec745bbbd48430bf7b16664c
* | | | | | Fixes from code inspection:drh2024-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Extra paranoid defense against integer overflow. (2) Remove a stray blank line in an FTS5 comment. FossilOrigin-Name: 8563728deeb1d3ead9ff99a3ad2c7819b2223ead44e7374ecc7bbeda2d955ade
* | | | | | Change the name of the new utility program from sqlite3-rsync todrh2024-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sqlite3_rsync - dash changed to underscore - for consistency with the preexisting sqlite3_analyzer. FossilOrigin-Name: 86e794cbaa5ae600635c933b46298a39f2465daf4c5cd1570f2a03e19ac08d9d
* | | | | | Fix harmless compiler warning in flockCheckReservedLock().drh2024-10-15
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64
* | | | | | Fix a typo in a comment used to generate document. No code changes.drh2024-10-15
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 9b4bc5c4c1dc7c4ba359babc71c07ac3a6719971766951a8d2cb1df9e2396a83
* | | | | | Cross-reference the sqlite3_backup_init() function to the documentation fordrh2024-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VACUUM INTO and sqlite3-rsync. Comment changes only. No changes to code. FossilOrigin-Name: 405c23ce02cc7f970e732afc26e01d0267b8fa89d8edc3d53fae2b3bc8405cbb
* | | | | | Avoid the possibility of buffer overrun in the READ_UTF8 macro by usingdrh2024-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an less-than operator rather than not-equal-to. FossilOrigin-Name: 20e60bf058c54bc818ea1b8ce54ace8bcd50699734713cef622bf79e49a9a279
* | | | | | There is no need to DELETE the content of sqlite_sequence in the output ofdrh2024-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the CLI ".dump" command because that table will initially be empty if it exists at all. [forum:/forumpost/2e31f49d00472cec|Forum post 2e31f49d004] FossilOrigin-Name: 8d7fe903d09a2a7961f506b2c8e93765e4feb7cd48aac436d75c7ec7838e856a
* | | | | | The CLI now default to ".crlf ON" in Windows. CSV output always uses CRLF ondrh2024-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all platforms. FossilOrigin-Name: 84d19f03b1989d665547745defcd95fc927f8389ed65c76195a39206435791ba
* | | | | | Be consistent about using "CRLF" instead of "CRNL".drh2024-10-14
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: ec4f4cfd5f8ca83fad4f08cf6566251d9c63e50a3a4284baca299bd94b047951
* | | | | | Fix a harmless compiler warning in the CLI.drh2024-10-14
|/ / / / / | | | | | | | | | | FossilOrigin-Name: 31c46e84fffe29c45fc63ae8cd1f96f42196f0ab56e72cd07b4eedbd9058e85b
* | | | | An improved method for statically linking sqlite3_analyzer.exe using Tcl9.drh2024-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | Enable wildcard expansion of arguments to testfiture on Windows. FossilOrigin-Name: 9b87ea219bce5689a69efac31063b9b11928e59124c0d36194715ff7faa5129d
* | | | | Fix the CSV output mode in the CLI such that the line ending is NL by defaultdrh2024-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but goes to CRLF if ".crnl on" is set. Make the .crnl command available on non-Windows builds. Update the .crnl command such that if it has no arguments it shows the current setting. FossilOrigin-Name: da750e39df7bf42330d8c8b266300da07247c9619895861b4cff4be7c94db7cf
* | | | | Avoid undesirable NL to CRLF translation when doing binary output to thedrh2024-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | Windows console. FossilOrigin-Name: d25bdce36abed95524ad058a277aba7bb17270e7ff1476474713dbc29742c762
* | | | | Improvements to TCL9 support. Fixes to the Makefiles so that the "install"drh2024-10-10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | targets are consistent and so that they work better with TCL9. FossilOrigin-Name: bcfae7183e92ce37717852bae5b1dd526903fa8429fb6f738c2147d4e5231642
| * | | | | For compatibility, allow the TCL interfact to continue working with TCL 8.5.drh2024-10-10
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 69346e9d4704e8fd82cbb3359913191e05cb38ee591baf97dcfe321db0ea085e
| * | | | | Changes to the TCL extension and how it is built, suggested by Jan Nijtmans.drh2024-10-09
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 9c0690193200551a3218c576b19eaf40e330dc252d67b430204ff44495e4793e
* | | | | | Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the ↵dan2024-10-09
|/ / / / / | | | | | | | | | | | | | | | | | | | | file-lock. FossilOrigin-Name: 8ffaf85249ff38ceea037a6e96b3484c912f1c1aa55b8642297d592768661344
* | | | | Improved handling of unicode characters in the LIKE optimization.drh2024-10-09
| | | | | | | | | | | | | | | | | | | | | | | | | Follow-up to [bce52ce2a6e7f3d3]. FossilOrigin-Name: 9d0eb3980409115f2f6fd1720a03f34e3968c93be55feafdfef20bf5f711c17f
* | | | | Enable the ".crnl" command on Windows builds of the CLI even if thedrh2024-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | SQLITE_U8TEXT_ONLY or SQLITE_U8TEST_STDIO compile-time options are used. FossilOrigin-Name: 6364a2f0449794b0c089ba9fbc099f5558b88ac91c459caf7fae3a43dfcd192e
* | | | | Additional improvements to the behavior of ".crnl" in the CLI. The defaultdrh2024-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | output mode is O_BINARY so that results are identical on Windows and non-Windows systems. On Windows you can optionally do ".crnl on" to enable NL-to-CRLF conversion on output. Output to Windows console is always O_U8TEXT and so is unaffected by the .crnl setting. FossilOrigin-Name: dbfc10b8981bcce4f875c4adef43f398871b41551074445087e343ded50253c5
* | | | | Fix the .crnl command in the shell so that it does not get undone bydrh2024-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | calls to print a quoted string or CSV output. FossilOrigin-Name: 6b932337c8dee3e52b472a38984e91b5091f3d90c41ac1cc171fa4149cc491c5