SQLite

Timeline
Login

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

66 check-ins using file src/os_unix.c version 410185df

2025-03-14
09:34
Cherrypick the [2b582c0097e33] doc addition, which was initially committed to the wrong branch. (Leaf check-in: f786de8d user: stephan tags: trunk)
2025-03-13
18:51
Fix the generate_series extension for the case where the termination value is not an even multiple of the step from the start value and there is also a value=NNN constraint in the WHERE clause. Forum post bf2dc8e9 (check-in: 75e72e3b user: drh tags: trunk)
2025-03-12
15:17
The --echo flag on the CLI also echos dot-commands provided on the command-line. (check-in: 6ec0c03b user: drh tags: trunk)
11:41
Document that sqlite_update_hook() can unset the current hook by passing a NULL callback, to address forum post 652aef4747. (Leaf check-in: 2b582c00 user: stephan tags: cygwin-fixes)
2025-03-11
15:46
Avoid running test cases involving ANSI control characters or Unicode on Windows in a slave interpreter, as that combination does not work. (Leaf check-in: f6745a73 user: drh tags: windows-ansi)
12:19
The substitute "puts" command used by the Windows implementation of sqlite3_analyzer must invoke fflush() after each line of output. Otherwise the output can be truncated when redirected into a file. (check-in: ba058ce9 user: drh tags: trunk)
11:24
Teach testrunner.tcl to distinguish Cygwin from Windows. This gets it running but then all downstream tests fail, at least in part because of the build target name discrepancies between the platform which requires .exe and those which do not. (check-in: 2861788e user: stephan tags: cygwin-fixes)
2025-03-10
22:31
Ensure that the TEMP database has been initialized at the beginning of a call to sqlite3_open_blob() for the TEMP database. Fix for the issue reported by forum post 0a556d619b. (check-in: 2cfccdbe user: drh tags: trunk)
17:35
Merge trunk into the cygwin-fixes branch. (check-in: f3d14433 user: stephan tags: cygwin-fixes)
17:28
Add an explicit db close to test/walsetlk.test to work around an unjustified test failure on Windows when the walsetlk tests are run in the same invocation of testfixture.exe in Windows. (check-in: f418de10 user: stephan tags: trunk)
15:35
Patch an unnecessary size_t-to-int conversion which warns on some compilers. (check-in: 8681dfdb user: stephan tags: cygwin-fixes)
15:27
Ensure that the 'clean' target for Makefile.msc cleans up the testdir dir, analog to how the canonical makefile works, as stale files there have been leading to test failures. (check-in: a591c018 user: stephan tags: cygwin-fixes)
15:15
Reimplement pathname conversion on Cygwin. MSC test passes/failures are on par with trunk and 'make test' running on cygwin is down to a single failure. (check-in: 57a4de09 user: stephan tags: cygwin-fixes)
14:10
Tweak [6f24da264cf8d] so that it has no side-effects on autoconf/Makefile.msc. (check-in: d3d322f1 user: stephan tags: cygwin-fixes)
10:32
Disable the [d1ba200234f40b84|count-of-view optimization] if any subquery is DISTINCT, as the optimization does not work in that case. Bug reported by forum post a860f5fb2e. (check-in: d7013b63 user: drh tags: trunk)
09:54
Add tf.bat target to Makefile.msc to facilitate running of individual test scripts via testfixture.exe. (check-in: 6f24da26 user: stephan tags: cygwin-fixes)
2025-03-08
06:53
Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more sentinel arguments for TCL variadic functions which specifically need a NULL trailing argument. With this, 'make test' on cygwin runs to completion for me, with 134 of 329227 tests failing. MSC build fails the same 13 tests which fail for me in trunk. (check-in: 84d8fcfc user: stephan tags: cygwin-fixes)
2025-03-07
06:54
os_win.c patches for Cygwin (described in the cygwin-fixes branch wiki page). Makefile.msc's test target on trunk fails the same 13 tests as this branch. (check-in: 655c60d1 user: stephan tags: cygwin-fixes)
2025-03-06
14:40
Merge trunk into the cygwin-fixes branch (which was inadvertently branched too early). (check-in: a7863b2e user: stephan tags: cygwin-fixes)
13:49
Cygwin-centric test script tweaks from Jan Nijtmans. (check-in: 9868615b user: stephan tags: cygwin-fixes)
13:38
Cygwin-centric fixes from Jan Nijtmans. (check-in: 20597981 user: stephan tags: cygwin-fixes)
09:29
Back out the most significant part of [5c28a17253e2f], as Cygwin is a hybrid. With SQLITE_OS_UNIX it will use POSIX locking, which will misinteract with apps using Windows-style locking. (check-in: 44adf8f3 user: stephan tags: trunk)
09:08
Various typo fixes reported by Daniel Dumitriu. No functional changes. (check-in: 37e6ec77 user: stephan tags: trunk)
07:48
Additional 'array index is signed char' warning cleanups for the shell and its embedded extensions, analog to [44bd44532d]. (check-in: f3104259 user: stephan tags: trunk)
07:09
Fix a tcl typo in the previous checkin which triggers an error on one machine but not another. (check-in: 646c2821 user: stephan tags: trunk)
06:25
Have the configure script report cygwin as SQLITE_OS_UNIX instead of SQLITE_OS_WIN, per off-list discussion with Jan Nijtmans. (check-in: 5c28a172 user: stephan tags: trunk)
2025-03-05
19:39
Have the recover module add "PRAGMA foreign_keys = off" to SQL output. Have the shell tool add ".dbconfig defensive off". (check-in: dcfe3d32 user: dan tags: trunk)
18:18
Always ignore comments in the schema of a database, even if SQLITE_DBCONFIG_ENABLE_COMMENTS is turned off. (check-in: 373ae3f4 user: drh tags: trunk)
17:26
Update the recovery extension so that it works with encrypted databases. (check-in: b0b66f21 user: dan tags: trunk)
17:12
Use AtomicRead() and AtomicWrite() to access the pcache1_g.bUnderPressure global, to forestall unnecessary angst from thread analyzers. (check-in: 41ec8563 user: drh tags: trunk)
16:35
Improvement output for ".schema --indent" in the CLI when the schema contains partial indexes with long and complicated WHERE clauses. (check-in: defd7187 user: drh tags: trunk)
16:30
Improvement output for ".schema --indent" in the CLI when the schema contains partial indexes with long and complicated WHERE clauses. (Leaf check-in: 94c6e8d9 user: drh tags: wrong-branch)
13:39
Update Lemon so that it accepts filename arguments to directives like "%include". Ex: "%include <./subdir/file-to-include.txt>". This was capability needed by pikchr and backported here for safe keeping. SQLite does not need this capability, though it doesn't hurt to have it in tree. (Leaf check-in: 52b97a7a user: drh tags: reuse-schema)
2025-03-04
21:37
Minor configure script cleanups which started out as cygwin-specific fixes but ended up just being minor platform-agnostic cleanups. (check-in: 2cda9041 user: stephan tags: trunk)
21:31
Roll back part of [6d87a8efe]: the check for tclsh90.exe (as opposed to tclsh9.0.exe) is incorrect on these platforms (it's an msvc build). Also remove an unused function added in that checkin. (Closed-Leaf check-in: dc84976a user: stephan tags: cygwin-fixes)
21:25
tclsqlite3 patch from Christian Werner: replace FILE handles with TCL channels for the db copy command. (check-in: ea1f7f8d user: stephan tags: trunk)
19:38
Teach autosetup how to find tclsh v9.0 on cygwin. (check-in: 6d87a8ef user: stephan tags: cygwin-fixes)
17:06
Fix pointless comparison of an unsigned integer to less than zero in Lemon. (check-in: 559560da user: drh tags: reuse-schema)
07:29
Makefile doc updates. Remove a couple extraneous targets. No functional changes. (check-in: 5a3e2299 user: stephan tags: trunk)
06:29
Minor doc typo fixes via forum post 65bd941da8. (check-in: 6f6a03e9 user: stephan tags: trunk)
05:16
Document the EXTRA_SRC makefile var and add --amalgamation-extra-src=list to the canonical-build configure script as the formal way to pass that at configure-time. (check-in: 44de0ec2 user: stephan tags: trunk)
2025-03-03
16:53
Merge the latest trunk enhancements into the reuse-schema branch. (check-in: b51690e1 user: drh tags: reuse-schema)
15:57
Merge the latest trunk enhancements into the wal2 branch. (Leaf check-in: 6baea938 user: drh tags: wal2)
14:15
Internal configure script cleanups. Resolve an as-yet-hypothetical corner case involving the --dev flag mixed with custom CFLAGS containing SQLITE_ENABLE... or SQLITE_OMIT... flags. Fix an unrelated API doc typo reported in forum post 606ea661df. (check-in: 0554c00f user: stephan tags: trunk)
11:48
Minor configure script doc tweaks. This is also a note that the basic elements of the build run as-is on Haiku OS Beta 5 but the tcl bits do not (for lack of tclConfig.sh). (check-in: acf9babf user: stephan tags: trunk)
2025-03-02
20:29
Ensure that detection of control characters by comparison against 0x1f uses unsigned characters. Forum post 4c344ca61f. (check-in: b7c5ce84 user: drh tags: trunk)
2025-03-01
23:44
Use SQLITE_EXTRA_INIT_MUTEXED instead of SQLITE_EXTRA_INIT for the SQLITE_WASM_EXTRA_INIT feature, as suggested in forum post 14183b98fc0b1dea. This doesn't make a functional difference now - this is in the name of future-proofing against eventual threading support in wasm. (check-in: 46479c2e user: stephan tags: trunk)
11:47
Add an assert() in vdbesort.c to help both humans and static analyzer AIs understand why a particular array cannot overflow. (check-in: a14d4afd user: drh tags: trunk)
2025-02-28
15:54
In the CLI, ensure that all calls to ctype.h macros are cast to unsigned char. Apparently cygwin needs this. (check-in: 44bd4453 user: drh tags: trunk)
04:58
Latest upstream autosetup. Fixes two minor corner-case issues which we haven't yet seen in practice. (check-in: 5c2438a7 user: stephan tags: trunk)
2025-02-27
21:17
Approximately 100 typo corrections spanning the whole tree, submitted via forum post 0db9827f0464bc33 and individually audited and verified. Affects only code comments, innocuous test strings, error message text in tool (not library) code, and configure-level help text. (check-in: f50c2148 user: stephan tags: trunk)
19:40
Reimplement testrunner_data.tcl::trd_get_bin_name() to assume a .exe extension on all platforms not matching "unix", to avoid having to do file-exists checks. (check-in: ce551910 user: stephan tags: trunk)
16:07
Strive to make sorts stable in the mkpragmatab.tcl build script, so that we get consistent amalgamations regardless of platform. Forum thread c9914addebf3da51. (check-in: 3f575847 user: drh tags: trunk)
15:55
Merge back a sequence of three changes that were branched due to a build break. (check-in: 67809715 user: drh tags: trunk)
15:52
Fix build break in [e2bd23f251359e7a]. (Closed-Leaf check-in: 6ed84211 user: drh tags: build-break)
11:03
Add support for SQLITE_EXTRA_INIT_MUTEXED - like SQLITE_EXTRA_INIT, but is called from within sqlite3_initialize() when the SQLITE_MUTEX_STATIC_MAIN mutex is still held. (check-in: 3cf88d42 user: dan tags: build-break)
03:23
Internal doc typo fixes reported in forum post 01d15f21b6. (check-in: d6514c20 user: stephan tags: build-break)
2025-02-26
19:22
(Edit: Moved to a branch because this breaks "./configure && make devtest")
Teach testrunner how to run local binaries which have a .exe extension. Also teach it to recognized mingw environments (but actually building the test programs there currently doesn't work).
(check-in: e2bd23f2 user: stephan tags: build-break)
18:31
Teach testrunner.tcl to identify an msys environment. (check-in: e9f777ce user: stephan tags: trunk)
17:11
Undo part of [69e83ab859c], as that order of operations breaks the --prefix=... configure flag. Found a workaround for the library version and OS/environment info being emitted when --help. (check-in: cd2a84a7 user: stephan tags: trunk)
16:15
configure: extend the readline detection a bit so that it can find readline on termux environments without having to be told where it is. Fix a typo in a libedit-related message. (check-in: 52f528c4 user: stephan tags: trunk)
09:14
Shift some bootstrapping configure bits to avoid emitting extra output if --help is specified. (check-in: 69e83ab8 user: stephan tags: trunk)
03:32
Merge trunk into the sahpool-digest branch. (Leaf check-in: fc1eeb7d user: stephan tags: sahpool-digest)
03:20
Fix a bug in mkwasmbuilds.c, introduced in [e4539ebebd89], which caused sqlite3.wasm to get deleted directly after it was built. (check-in: 1a72d1d1 user: stephan tags: trunk)
2025-02-25
21:16
Disable some misuse tests that sometimes cause segfaults during "make releasetest". (check-in: 5856251a user: drh tags: trunk)
20:55
Approximately 50 typo fixes, spanning the whole tree, contributed via forum post 006c8fa165083ac3 and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app. (check-in: af928818 user: stephan tags: trunk)