aboutsummaryrefslogtreecommitdiff
path: root/src/test1.c
AgeCommit message (Collapse)AuthorLines
7 daysAs demonstrated by multiple bug reports, the SQLITE_DBCONFIG_FP_DIGITSdrh-3/+18
setting from [3f16985dcc47a366] is unsafe if misused, and so it is here changed into a no-op. FossilOrigin-Name: 5b588b3e0ff81920514098dd98307cf64c37cef17c30df028e344cc0b8b0a267
10 daysFix temptrigfault.test expectations to not rely on values which vary across ↵stephan-1/+2
by builds. Fix an array mis-write in the test_carray_bind() handling of blobs. Clear the test_carray_bind() isMalloc flag when the input size is 0 to avoid passing a string literal to free(). FossilOrigin-Name: 8682901664d7411932ed6254fe4ac8fa6975e3a3a6dac3e4cedff5b6d5ba42d0
2026-10-31Expand the optimization disable mask from 32 to 64 bits. Add a newdrh-4/+2
bit to disable the having-to-where optimization, for testing purposes. FossilOrigin-Name: 89ea66267618dd0d2ac9a1aa56665c16e209a23e6eb66bc170cd8af6a16bfb86
2026-10-26New test cases for schema resets.drh-0/+2
FossilOrigin-Name: b694f96bf89937f8d81fe885b08bc0a9e84ec97d37cb27dda5cbd37719d9e358
2026-10-24Always report back the output flags from the xOpen method of the unix VFS.drh-0/+47
[bugs:/info/2026-10-24T04:49:19Z|Bug 2026-10-24T04:49:19Z] FossilOrigin-Name: 7bd441063bd8d9681aac38f0951108f9d6b814a3e192a9f7f5ffe4c95103317a
2026-10-20Fix the sqlite3_carray_bind() interface so that it works withdrh-1/+3
SQLITE_TRANSIENT and an array length of zero. [bugs:/info/2026-10-20T13:53:58Z|Enhancement request 2026-10-20T13:53:58Z] FossilOrigin-Name: 47228787b1459a35a12a499be90e249c555658bf4e393122041f474e8986b17d
2026-10-18Add the SQLITE_LIMIT_CTES option to sqlite3_limit(). The default is 50K.drh-1/+2
Setting to zero disables the limit. The limit is approximate - it does not actually count CTEs but rather simply refuses to process a CTE with cursor number that exceeds this limit. This is a re-do of the fix for [bugs:/info/2026-10-04T05:35:14Z|Bug 2026-10-04T05:35:14Z] that also avoids the regression reported by [forum:/info/2026-10-16T20:30:17Z|Forum post 2026-10-16T20:30:17Z]. FossilOrigin-Name: b32709ea065da2eb41a6eb0ca20381d2bd82a356bb5f8bc76fee063d1da93004
2026-10-16In test file test1.c, use a static SQLite mutex to protect the hash table ↵dan-5/+12
instead of a Tcl mutex. A Tcl mutex is a no-op on unix unless TCL_THREADS is defined at runtime, and SQLite test configurations do not define this, which was causing errors in multi-threaded tests like notify2.test. FossilOrigin-Name: 668541c592b89d32716420615450d55d9faf89da8a8e389c673973d8383cca98
2026-10-10New extension ext/misc/optname.c provides the canonical mapping betweendrh-40/+33
optimization bitmaps and optimization names. This gives a single point of edit when there are changes. Used by the CLI, by testfixture, and by TH3. FossilOrigin-Name: 135ed9e2cc9bd37c3e158a488e37f4ce14ffeca44ff12e31f25a6686a2622ca1
2026-10-05Allow windows clients to open and recover a wal mode database even if an old ↵dan-0/+158
client still has the *-shm file mapped. Forum post [forum:/info/2026-10-05T14:07:31Z | 2026-10-05T14:07:31Z]. FossilOrigin-Name: 7c103a0b7d509dce58aa87518e13213451e5f70938ff08aa55accd645e3b2ff3
2026-09-15Cygwin portability fixes contributed by Jan Nijtmans, including the ↵stephan-2/+0
un-exporting of some non-public-APIs which need to be reviewed closely. One test (delete_db.test) is failing but that specific failure has been a recurring theme in this environment. FossilOrigin-Name: fe484c8dbc4829508616a1db1bd38a8e451409bddcc20b593fbf51a6ab1a1b00
2026-08-22Remove some unnecessary sqlite3_test_control() optimization control flagsdrh-1/+0
for a small performance increase and size reduction. FossilOrigin-Name: 2a9cb1e12ab4b81875e2d08f6cdecfb08b57137a69f6eb4efd19a56347184c3b
2026-08-18Add SQLITE_LIMIT_TRIGGER_STEPS and -DSQLITE_MAX_TRIGGER_STEPS=n. Default ↵drh-1/+2
maximum is 65000. FossilOrigin-Name: 6fbed57b1447725ae9d923d69b509fd5932d8c6bae6cf6ac0d1248a943752a58
2026-08-13Disable misuse testing unless the ENABLE_MISUSE environment variabledrh-2/+6
is set. [bugs:/info/2026-08-13T13:27:50Z|Bug 2026-08-13T13:27:50Z] FossilOrigin-Name: 273e1bcc2c669bc9dc3de3752bdf9c0b6ce26a6a0937f35d2da47e687542d521
2026-07-28Further fixes for running [make devtest] with Fil-C.dan-0/+20
FossilOrigin-Name: 1ed5e5bed26e3d38dd09541ce73dc68188574e236ecb60142260a0c40bf8902a
2026-07-24Fix a problem in test1.c causing test script win32lock.test to fail.dan-1/+1
FossilOrigin-Name: 8f6d25b3f0171a40be8a5cb646739f54e496aaf9d4829c24c243ec4b71e0caa8
2026-07-24Fix some test cases on Windows.drh-1/+3
FossilOrigin-Name: d2d6363f31ecbae353a1e80810f42d9e2f0f8db0fe6294c7deadf0c58669b9d0
2026-07-23Change the way pointers are passed between C code and Tcl test scripts. This ↵dan-54/+105
allows tests to be run with Fil-C builds. FossilOrigin-Name: ba919ea1d4fe84526a4c844b3f901e5e8b1650dcdee647e4d46da2d33ced1710
2026-07-18Update tcl test command "optimization_control" to support the ↵dan-0/+1
"count-of-view" optimization. FossilOrigin-Name: b14c3f8fec5123b1faa6d88dee2740ee4acb10dd522207531567d46f4714e227
2026-07-10New compile-time option SQLITE_MAX_SCHEMA and runtime limit optiondrh-1/+2
SQLITE_LIMIT_SCHEMA that put an upper bound on the number of objects in a database schema. Current default is 10 million. FossilOrigin-Name: 4ff362a4c2897e2b438d3d8fc88a012264526fa617f058be5a2d596c42d2e8a4
2026-07-04Add the strdup() SQL function extension for use in testing.drh-0/+4
FossilOrigin-Name: 521a7cf8443d914ae0486aa8a91924ed35a1d5b88082acbe513cef216408c97e
2026-05-11Fix harmless bug in testing logic. No changes to deliverables.drh-1/+1
FossilOrigin-Name: c4a6e62b5f36f9df988d2ec12a92a614e9e813cdcd50198ec2827c33745a362a
2026-02-21New sqlite3_db_config(SQLITE_DBCONFIG_FP_DIGITS) that let's the applicationdrh-0/+1
specify the number of significant digits that double→text conversions will attempt to preserve. FossilOrigin-Name: 3f16985dcc47a366b54164c5024f920a79dddd76faeac5e36b4770732ed72c0a
2026-01-26Add alternative sqlite3_carray_bind_v2() interface.drh-2/+23
FossilOrigin-Name: 925384d7711867428644595c0903682e6e365eb974c57e6680b51d511c980054
2025-12-11Fix calls to sqlite3_wal_checkpoint_v2(SQLITE_CHECKPOINT_NOOP) so that they ↵dan-5/+9
do not return SQLITE_MISUSE. FossilOrigin-Name: 117f4093f08e0abbde2041f70898220e237e250664f6ede6d4eb2a8a44050466
2025-11-18Add the SQLITE_LIMIT_PARSER_DEPTH value for sqlite3_limit(). This isn'tdrh-1/+2
something that many applications will need, but it is useful for testing. FossilOrigin-Name: 8f0b07f36159225c476f756f8f9b35c75783bc8bed43b578f4d1055fa800ecc9
2025-11-13Fix a problem in the EXISTS-to-JOIN optimization ([e33da6d5dc964db8]) sodrh-0/+1
that it works with nested WHERE and EXISTS statements. [forum:/forumpost/0704c3c41e49631b|Forum post 0704c3c41e4] FossilOrigin-Name: d1e901eddc25175174d0706238ae0c33bfa5569e0c2ba4f1164b7a9600203442
2025-11-10Have sqlite3_set_errmsg() return SQLITE_MISUSE if a NULL db handle is passed ↵dan-0/+32
to it, as documented. FossilOrigin-Name: 5f5a736f88bc9bc6c9c83d2cbfd74c0b5357d7417d9993d34a78f0b7317ff796
2025-10-08Add ENABLE compile-time options to enable carray() and median(). Hencedrh-3/+31
there is no new code and no increase in library size without the ENABLE macros. FossilOrigin-Name: 7dec290b413ca1bc67694743d8b771e1634fd85251f1a23d60aaf36c63f0f366
2025-10-08This is how the percentile() family of functions might be integrated intodrh-2/+0
the amalgamation, should we elect to do such a thing. FossilOrigin-Name: c2cfc9c92e35105e26a4c0887b0401ace15a874fd18046135de4b375ba968795
2025-10-08Were we to choose to integrate the carray() table-valued function into thedrh-10/+0
amalgamation, that integration might look something like this. FossilOrigin-Name: 2b43d5d7dcc5aee14a050c824a5e09b6a38a9c78ddcc25a994eba5d4c5ad9ba2
2025-10-08Fix an uninitialized variable problem in test1.c.dan-1/+1
FossilOrigin-Name: 059203f658273712597d45d9b4a9cf1aea20368fe51224b38e28797b045fb6b8
2025-10-07Add test cases for the carray module.dan-12/+119
FossilOrigin-Name: dcfc0164a95eddb5e924c606850fe2015e8f2f516d36b380cbb79d6bdfe034fc
2025-08-12Fix a problem building testfixture on non SQLITE_OS_WIN platforms.dan-3/+3
FossilOrigin-Name: 9e6fa73467892eb2333c0a94ca38b66b7cc0432326de93ff131ecde4c165114e
2025-08-12On windows, when opening a UNC path, fall back to using a single file handle ↵dan-0/+3
shared between all connections for locking. FossilOrigin-Name: 5c0202d96c3a20a2cbcd38eba5e62371606894a0cbc2da4f60e10a1b5fa7bd04
2025-06-01Fix VACUUM so that it works even when ATTACH_WRITE is disabled.drh-0/+5
FossilOrigin-Name: 42494f85acb303919d3f1f2202f8b95fbd657652da4b8dc00451c10ea6c496e0
2025-04-04The win32lock and win32longpath tests don't work on Cygwinjan.nijtmans-1/+1
FossilOrigin-Name: 32ef3f26e7fb34dfdb23617a19bb9baa2e4c3dca564a88850b58a0fbe6446cf8
2025-03-10Patch an unnecessary size_t-to-int conversion which warns on some compilers.stephan-1/+1
FossilOrigin-Name: 8681dfdb59d3258663ec176daafd7a52446a207db21fbd1a4d151508092dcbc5
2025-03-08Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more ↵stephan-49/+49
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. FossilOrigin-Name: 84d8fcfca19cd183d05a702d0eb1742bfae462d3383a3db72741a48cefac1058
2025-03-06Cygwin-centric fixes from Jan Nijtmans.stephan-53/+53
FossilOrigin-Name: 205979813c7300debb5f1ba270583ef2f08e069d6d01865b5910702889a5c1ed
2025-02-11Merge latest changes from trunk into this branch.dan-5/+14
FossilOrigin-Name: e5ec5bb9f4dc3e02db7ab0e49686f47617af75d3f7d4ab23288a1aea4a693e59
2025-02-10Experimental change to allow clients to block when taking a SHARED lock to ↵dan-6/+17
connect to a wal mode database. FossilOrigin-Name: d2d6a000fb9bf8097e0ce9979685408d183be3ab785ceeb11ec1f97a81a83e41
2025-01-27Add the sqlite3_setlk_timeout() API. For setting the timeout used by ↵dan-0/+26
SQLITE_ENABLE_SETLK_TIMEOUT blocking locks without also setting the regular retry-based busy-timeout. FossilOrigin-Name: 4a7eb492797abb47b18b7dfc557aeae43a0dea5b861efc203398d5059b10d131
2025-01-13GCC 13 has become more quite pedantic about the signature of functions ↵drh-4/+8
matching the type of pointers through which the functions are called. Make adjustments to extension functions and test procedures to work around this. No changes to the core. FossilOrigin-Name: ed83b79100b4345235aec990303c4526874f0c2f8701160c4639a80633ebaf70
2025-01-07Fix a memory error in test logic introduced by [8704034254938662].drh-1/+5
FossilOrigin-Name: 8a56e98d257e280d308b9fdc26e17e202f00a70fb9a780e30924e87a189fc7f4
2025-01-06Fix a minor problem with the sqlite3_get_table_printf() test interface.drh-0/+1
No core changes. FossilOrigin-Name: a0df29c7a3eb4f558aba00598d827643830591def3101a4d5464543527b8d13c
2024-12-24Properly wait for asynchronous results for calls to LockFileEx() on ↵dan-1/+1
FILE_FLAG_OVERLAPPED files even if LOCKFILE_FAIL_IMMEDIATELY, which usually causes LockFileEx() to return synchronously, is specified. FossilOrigin-Name: 35b3e73c5a9efa12f9bb0dad1721fce128cd1e3bcbc87027ee4ea685a12a70d5
2024-12-12Fix a buffer overread in test code. Add test configurations for ↵dan-6/+6
ENABLE_SETLK=1 and FOR_WINRT=1 builds to release testing. FossilOrigin-Name: b558db5db7e7c9aced1d24d74dc5ee2fab7cd04ec6570247c9c45723eb6f8fc0
2024-12-11Ensure that all win32 API functions invocations in os_win.c are made via the ↵dan-4/+15
function table. Fix asan error in test code. FossilOrigin-Name: 2ffdc799c63ff8858f2aa9177ca9c74be2df5d7594cb10fb0a233537d83fd563
2024-12-03Fix the lock_win32_file test command so that it works with winrt builds.dan-17/+24
FossilOrigin-Name: 5994656074b2db2c172f4c690c3b40cadd12e91d737fb91a03268148f8b49421