SQLite

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

100 check-ins occurring around 24aba7ee58f3048d.

2024-11-06
19:19
Fix an FTS3 corruption test case that depends on the specific pseudo-random byte sequence generated by sqlite3_randomness(), which is different on big-endian platforms than it is on little-endian platforms. (check-in: 6216bfcb user: drh tags: trunk)
17:31
Merge latest trunk changes into this branch. (check-in: edb84234 user: dan tags: fts5-tokendata-prefix)
16:20
Add tests for xInstToken() and prefix queries with various fts5 configurations. (check-in: 9cc04331 user: dan tags: fts5-tokendata-prefix)
12:58
Re-phrase some (#if !SQLITE_CORE) to (#ifndef SQLITE_CORE), as discussed in forum post cea40371c5e34b09. (check-in: 5495b125 user: stephan tags: trunk)
12:13
Elaborate on how autosetup selects a tclsh to use. (check-in: d3887895 user: stephan tags: trunk)
10:09
Fix typo in the LICENSE.md file. (check-in: 0588cc5c user: drh tags: trunk)
08:29
Minor doc tweaks. (check-in: 2919a61b user: stephan tags: trunk)
07:20
When constructing the auto-reconfigure commands, only quote args which look like they need it. Minor doc updates. (check-in: d4fbd34f user: stephan tags: trunk)
06:44
Minor doc tweaks and typo fixes. (check-in: 406d9122 user: stephan tags: trunk)
06:06
Split the motivation of the makefile var naming convention into its doc own section. (check-in: bf42b93c user: stephan tags: trunk)
05:54
Add a section to autosetup/README.md describing the motivations for the more glaring design decisions. (check-in: c0940a82 user: stephan tags: trunk)
04:38
Add autosetup/README.md - maintenance-related docs for SQLite developers (e.g. how to update autosetup). Start marking up the proj.tcl APIs with autosetup's doc markup so that they appear in the ./configure --reference output. (check-in: aa621376 user: stephan tags: trunk)
02:59
Enhance the --with-emsdk flag to use a default value of 'auto', meaning to search the environment for it, and to fail fatally if --with-emsdk is explicitly provided but the SDK is not found. (check-in: 9724b747 user: stephan tags: trunk)
2024-11-05
23:26
Improve the ".mode json" output of the CLI so that it encodes U+007f using an escape sequence. (check-in: 8b58cf9b user: drh tags: trunk)
18:53
Have the xBestIndex method of the generate_series virtual table ignore contraints on the "value" column with usable=0. (check-in: 1333e544 user: dan tags: branch-3.47)
18:25
Have the xBestIndex method of the generate_series virtual table ignore contraints on the "value" column with usable=0. (check-in: f5113a2e user: dan tags: trunk)
13:34
Work around a TCL {list-quoting} quirk when escaped/deferred var derefs are passed in as values to the autotools-conventional --XYZdir flags (as seen in a downstream package build script). (check-in: 6adfca7e user: stephan tags: trunk)
13:03
Remove the --enable-rbu flag from the configure script, per /chat discussion, because it's a highly niche feature not in active use. (check-in: 77db0cd7 user: stephan tags: trunk)
11:59
Ensure that the one-line running status output from testrunner.tcl does not exceed the 80-char line width of a standard terminal. (check-in: 1eae0f9e user: drh tags: trunk)
09:49
auto.def: remove an extraneous global var, some dead tcl/makefile code/comments, and some extraneous output. Rename an internal-use proc. Disable the ext/wasm cleanup in the top-level (dist)clean because the noise from gmake is irritating. (check-in: ee9eb8b1 user: stephan tags: trunk)
08:21
Enhance the rpath configure check to honor --exec-prefix=... Remove some debugging code and move other debugging code around. (check-in: a8c1a82b user: stephan tags: trunk)
08:14
Roll back [47e50fa84dacf83c] for consistency with the legacy build. sqlite3.pc is now generated equivalently to prior versions. (check-in: af79d11e user: stephan tags: trunk)
07:55
Add the --enable-rbu configure flag and building of the commented-out rbu binary. (check-in: 6c6fa3ad user: stephan tags: trunk)
07:29
Remove some dead makefile code. (check-in: b69ce89d user: stephan tags: trunk)
02:38
Change a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in 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. (check-in: 9c46d84f user: stephan tags: trunk)
02:14
sqlite3_stdio.c now uses sqlite3_malloc()/sqlite3_free() instead of malloc()/free(). Reported in forum post 6b6cb3dd. (check-in: 1982471d user: stephan tags: trunk)
2024-11-04
20:16
Fix the percentile extension so that works as an independent extension. Forum post ab25469a350e0488 (check-in: 27b829c3 user: drh tags: trunk)
19:18
Fix harmless compiler warnings. (check-in: bc93e179 user: drh tags: trunk)
19:08
Ensure that the database encoding is detected before the code generator gets too far down into byte-code generation and execution, but not so early that it interferes with initialization. Forum thread bc75a4d20b756044. (check-in: af7173a1 user: drh tags: trunk)
17:33
Avoid loading the entire record into memory for an sqlite3_preupdate_old() call that retrieves an IPK value. (Leaf check-in: f9a90a0d user: dan tags: branch-3.46)
16:59
Avoid loading the entire record into memory for an sqlite3_preupdate_old() call that retrieves an IPK value. (check-in: 7f4de437 user: dan tags: trunk)
13:59
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reported in forum post 7dd7c70038. (check-in: 5238959d user: stephan tags: branch-3.47)
13:57
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reported in forum post 7dd7c70038. (check-in: af0a345b user: stephan tags: trunk)
12:11
Fix typo of --libexec ==> --libexecdir, discovered via audit of a downstream build script. Unrelated doc touchups. (check-in: a60e5d76 user: stephan tags: trunk)
10:16
Ensure that the ext/wasm fiddle build undefines certain shell feature flags which it cannot use but might be inherited from the top-level makefile. (check-in: 99bb5d9b user: stephan tags: trunk)
08:29
When installing the shared lib, re-activate the accommodation of legacy-style .so links (removed in [80584e165e4]) based on two reports that not having those will cause all clients linked against the legacy naming convention to fail to dynamically link (which would preclude an update of a system-level libsqlite3 package). Set up the infrastructure needed for adding an SONAME to the library but do not yet activate it. See discussion in/around forum post 046133a7da. (check-in: 1586eace user: stephan tags: trunk)
06:38
Minor internal doc additions. (check-in: 9edc8582 user: stephan tags: trunk)
05:27
Latest upstream autosetup to get handling of (==ignoring) autotools' x-includes and x-libraries flags and stop leakage of some autosetup-init-level vars into auto.def's global scope. (check-in: 307349bf user: stephan tags: trunk)
04:12
Latest upstream jimsh0.c, which accounts for the problem patched locally by [29b944959568]. (check-in: c7a5b7d2 user: stephan tags: trunk)
03:43
Minor doc correction and proj.tcl-internal API renaming. (check-in: c8b24c59 user: stephan tags: trunk)
2024-11-03
21:32
Move the .default-CFLAGS handling into a utility function, rename the corresponding file to .env-VAR, and apply that lookup to a couple more places. (check-in: f01b61f2 user: stephan tags: trunk)
20:15
Fix a CFLAGS.jimsh typo in Makefile.in. Change default jimsh flags to include -O1, which slows down its build but speeds up its runtime considerably. (check-in: a912c169 user: stephan tags: trunk)
19:42
If any autotools-conventional dir names are explicitly overridden via ./configure --dirname=X then export those names as-is to the makefile, otherwise derive them from $prefix. This is, at least in part, a compromise to provide package maintainers a way to specify a libdir which will be incorporated into the -rpath link flag (which we can only determine at configure-time). (check-in: 832abe8a user: stephan tags: trunk)
18:30
Workaround for a compiler-specific jimsh compilation error reported in forum post 18e420d0. Reported upstream as ticket #322. (check-in: 29b94495 user: stephan tags: trunk)
07:45
Minor doc updates. Remove two outdated todos. (check-in: ad192378 user: stephan tags: trunk)
05:33
Fix another T.exe typo and remove an outdated TODO. (check-in: 02208e6b user: stephan tags: trunk)
01:31
Fix T.exe typos in main.mk which break installation on platforms where that value is not empty. Also some unrelated doc tweaks. (check-in: ab97ff44 user: stephan tags: trunk)
2024-11-02
19:10
Allow an fts5 table or query to be configured to collect xInstToken data for any prefix terms as part of the first parse of the main index, if any. (check-in: 46929ae9 user: dan tags: fts5-tokendata-prefix)
05:50
An experiment in hybridizing overriding of autotools-conventional XYZdir vars, the goal being to be able to provide both overrriding of them at configure-time and make-time with sensible semantics. Based on notes from forum post 00d12a41f7. (Closed-Leaf check-in: cc259bf5 user: stephan tags: autosetup-dir-overrides)
03:34
Add autotools-compatible overridable dir name vars for the various installation targets, calculated at make-time instead of exported at configure-time for reasons explained at length in the accompanying comments. (check-in: 24aba7ee user: stephan tags: trunk)
2024-11-01
19:41
Merge latest trunk changes into this branch. (check-in: 790c56d4 user: dan tags: fts5-tokendata-prefix)
15:25
Update log messages to say "v=8" instead of "v=7". (check-in: 492a0a85 user: dan tags: cf8f1552-commit-instr)
15:20
Still more logging, this time focused on the sqlite3WalFrames() function. (check-in: 52d332f0 user: dan tags: cf8f1552-commit-instr)
09:50
Merge the readonly-ignore-wal-jrnl enhancement into the reuse-schema branch, so that it can be found there in all future releases. Other recent trunk enhancements are also part of that change and are merged as well. (check-in: 4e4885a0 user: drh tags: reuse-schema)
01:56
When configuring with --with-wasi-sdk, ensure that we use that SDK's 'ar' tool instead of whatever is in the PATH. When pushing/popping the define var scope for the jimsh compatility check, include more defines per consultation with autosetup's creator. (check-in: 2dcc465a user: stephan tags: trunk)
2024-10-31
18:29
In testrunner.tcl, only show the ETC on the status line if it will fit within the 80-character line limit. (check-in: 45a3213d user: drh tags: trunk)
17:38
Fix the clean-autosetup target in Makefile.in so that it does not fail even in cases where gmake is unavailable. (check-in: 207ca21b user: drh tags: trunk)
17:23
Extra defenses against UAF when failing to allocate a transient cursor. No known path to a UAF currently exists. This change just helps with the static analysis to prove it. (check-in: bae05811 user: drh tags: trunk)
15:59
Update this branch so that it works with ZipVFS. (Closed-Leaf check-in: 68eb7a64 user: drh tags: reuse-schema-ro-waljrnl)
15:40
Update this branch so that it works with ZipVFS. (Closed-Leaf check-in: bc71b0a0 user: dan tags: readonly-ignore-wal-jrnl)
11:53
When building a shared library on Mac, one must specify the original *.o files that go into that library. It does not work to specify a prior shared library containing a subset of the files to be included. (check-in: 5adc7d5d user: drh tags: trunk)
11:21
Omit unnecessary bold text in ./configure output. (check-in: d1368dc1 user: drh tags: trunk)
11:19
Improved differentiation between antirez and msteveb linenoise. (check-in: cfb4bfcf user: drh tags: trunk)
11:04
The presence or absence of the linenoise-ship.c source file is sufficient to differentiate Antirez linenoise from MSteveB linenoise. (Closed-Leaf check-in: 28cc77b9 user: drh tags: linenoise-detection)
09:25
Add a missing 'close' call to proj-file-content-list. (check-in: 005702f3 user: stephan tags: trunk)
08:12
Add -trim flag to proj-file-content. (check-in: babf66f5 user: stephan tags: trunk)
08:03
Remove some proj-assert checks which are not valid on OpenBSD. Ensure that queued up notices about TCL warnings are displayed before leaving sqlite-check-tcl. (check-in: 3447308f user: stephan tags: trunk)
07:30
When reading in .default-CFLAGS, trim it. (check-in: a62a5171 user: stephan tags: trunk)
07:20
Add the .POSIX special target to the main makefiles to hint to the make impl that it should behave POSIXly-correct. Fix the default file extension for static libs in main.mk. (check-in: 2c615d3a user: stephan tags: trunk)
07:01
Add more deps to T.tcl.env.sh so that it gets rebuilt if configure is run with a different --with-tcl value. Remove all references to the superfluous XYZdir makefile vars conventionally set by the autotools (they're just noise in this build). (check-in: 83166510 user: stephan tags: trunk)
06:52
If a file named .default-CFLAGS exists in the build dir, use its contents as the default value of the CFLAGS unless it's overridden by being passed in or in the environment. (check-in: 731d333c user: stephan tags: trunk)
06:38
When --with-wasi-sdk is active, temporarily swap CC and CC_FOR_BUILD for purposes of looking for APIs required by B.cc. (check-in: 435f2ee8 user: stephan tags: trunk)
05:47
Change default CFLAGS to {-g -O2} to match the legacy build. (check-in: 51177494 user: stephan tags: trunk)
01:51
Fix a corner case in automatic TCLLIBDIR detection: if the $auto_path list is not empty but none of them refer to an existing dir, the last dir in that list would have been accepted as the TCLLIBDIR. It will now error out instead. (check-in: 1d2ecae1 user: stephan tags: trunk)
00:56
Reimplement how the TCL-related environment vars are made available to make recipes which need them, reducing the console noise and consolidating it with the has_tclconfig flag file. It now uses a generated shell snippet which it sources, rather than inlining all of that shell code. (check-in: 0cdfd142 user: stephan tags: trunk)
2024-10-30
23:10
Minor cleanups to the linenoise flavor detection test. (check-in: 3be32de1 user: stephan tags: trunk)
22:49
Move the linenoise flavor check from auto.def to proj.tcl for re-use in downstream projects. (check-in: 84e503dc user: stephan tags: trunk)
22:41
Expand [c0048e4482e9] to determine the linenoise API flavor via a compile test rather than guessing based on the filename. (check-in: dbf00791 user: stephan tags: trunk)
22:09
proj.tcl/main.mk doc updates. No functional changes. (check-in: e06574c6 user: stephan tags: trunk)
19:13
Adjust Makefile.in to honor the CC environment variable. Add the "show-variables" target to main.mk, for debugging. (check-in: e5f1a01f user: drh tags: trunk)
18:24
Add extra logging to analyze COMMIT commands. (check-in: 7dbb43bd user: dan tags: cf8f1552-commit-instr)
14:24
Merge the readonly-ignore-wal-jrnl feature into a sub-branch of reuse-schema. (check-in: 67087fe4 user: drh tags: reuse-schema-ro-waljrnl)
14:03
Fix the CLI so that it can use either the canonical Antirez linenoise (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. (check-in: c0048e44 user: drh tags: trunk)
13:47
Require the SQLITE_ENABLE_READONLY_WALJOURNAL pre-processor macro to activate the new feature on this branch. (check-in: 21ed4e78 user: dan tags: readonly-ignore-wal-jrnl)
11:21
Merge latest trunk changes into this branch. (check-in: 403e01b0 user: dan tags: readonly-ignore-wal-jrnl)
11:21
Fix a problem that could occur if a read-only connection switches its journal mode from "persist" to "off" or "memory" when the file-system contains a hot-journal created by a "PRAGMA journal_mode = wal" command. (check-in: 85b5ed02 user: dan tags: readonly-ignore-wal-jrnl)
05:07
Clean up and add docs to the TCL vetting steps. Make warning and error messages bold if stdout isatty. (check-in: 47157dcf user: stephan tags: trunk)
04:07
Remove accommodation of the legacy-named shared libraries from the installation rules, per discussion. Rename install-includes to install-headers. Quote installation target dir names "just in case". (check-in: 80584e16 user: stephan tags: trunk)
03:51
Generic makefile cleanups. (check-in: 6f86ff2e user: stephan tags: trunk)
02:06
Re-enable exporting of TCLLIBDIR at configure-time so that clients can override it once there rather than having to override it on an arbitrary number of make invocations (which they can still do, but now need not). Based on feedback in forum post 38f6988e57b. (check-in: ee6e15f1 user: stephan tags: trunk)
01:47
When calculating the TCLLIBDIR in main.mk, allow the user to override it using an environment var or make var assignment, per feedback in forum post 38f6988e57b. (check-in: 83863318 user: stephan tags: trunk)
00:35
Replace 3 instances of the == 'test' shell command operator with =, as == is apparently not as portable across shells. Problem reported in forum post 14274389fb2. (check-in: 68199c40 user: stephan tags: branch-3.47)
2024-10-29
23:42
Split the core-most CFLAGS, which should not be overridable (like -fPIC), into CFLAGS.core, so that went CFLAGS=... is passed on in a make invocation the -fPIC flag is not lost (as reported in forum post 39f8c543). (check-in: f5899d22 user: stephan tags: trunk)
23:19
Try to detect if --with-readline-cflags is passed a non-cflags value, e.g. readline/readline.h, and fail loudly if it is. The legacy configure accepted that formulation but silently did nothing useful with it and that formulation now causes the auto-completion test to fail, as reported in forum post f13b8e8f38402367. (check-in: c97f34d0 user: stephan tags: trunk)
20:27
General auto.def cleanups and docs. (check-in: e2f41c25 user: stephan tags: trunk)
20:27
Add fault-injection tests for the new code on this branch. (check-in: 349b2d89 user: dan tags: readonly-ignore-wal-jrnl)
19:34
Allow read-only connections to ignore hot journals created by "PRAGMA journal_mode = wal". (check-in: d003480d user: dan tags: readonly-ignore-wal-jrnl)
19:03
Reformulate the readline completion signature compatibility test so that -Wunused-variable in the CFLAGS does not cause it to fail. Problem reported via email. (check-in: 3891669a user: stephan tags: trunk)
18:50
Rename an almost-name-colliding auto.def function. Fix a refactoring-induced change which broke implicit lookup of tclConfig.sh. Add msg-debug proc to enable toggling of developer-level debug messages via a configure argument. (check-in: 265ba15d user: stephan tags: trunk)
17:55
Remove some extraneous configure output. (check-in: 2234569e user: stephan tags: trunk)