aboutsummaryrefslogtreecommitdiff
path: root/src/test8.c
AgeCommit message (Collapse)AuthorLines
2024-07-30First attempt at getting the build to work with Tcl 9.0.drh-5/+1
FossilOrigin-Name: 6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
2023-10-06Ensure that all fields of static sqlite3_module objects are explicitlydrh-2/+9
initialized, in order to hush-up nuisance compiler warnings. FossilOrigin-Name: f3b3d712d6e58b1cb8fdebd2b6b3125080b6b3ac8c7c849a8cc1e5e778d62fe7
2023-06-07Add a C-source spell-checking facility. make misspell (on Nix)larrybr-1/+1
FossilOrigin-Name: 26c1bb4bd9e9f56613c3aa87407a7f562fd4ebde5bfd6dece02078001d9a45f8
2021-05-17When deleting an SQL function that does not exist, return without doingdrh-0/+6
anything at all rather than creating a tombstone function. In this way, function deletes that happen inside virtual-table destructors that are run when a database connection is closing do not create new tombstones in the function table after the function table has already been purged. [forum:/forumpost/726219164b|forum post 726219164b]. FossilOrigin-Name: 391c73132c80df944fb49a17d8fe78203c54ac48f968ee9dd9dd8c769c0b4b10
2020-06-19Further refactoring of the schema table name.drh-1/+1
FossilOrigin-Name: 9536fa0ae0c1ae6e2e98d2fa11e5acda7f3c9b8ca5061b6f7f8cae63a11d936b
2017-09-09Enhance the vtab interface to handle IS, !=, IS NOT, IS NULL and IS NOT NULLdan-10/+11
constraints. FossilOrigin-Name: 34c8e952616013deb6fffec701ac5989afac9bef1bf92458a2e4ba92c7ee924f
2016-07-28Make sure the SQLITE_TCLAPI macro is always defined.mistachkin-2/+2
FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d
2016-07-28Allow the 'testfixture.exe' target to be compiled with the __stdcall calling ↵mistachkin-1/+5
convention. FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15
2015-12-16Fix some more harmless compiler warnings.mistachkin-5/+5
FossilOrigin-Name: 18f531e1cf3c8bb986d912c9c5e3f5698360c93e
2015-11-26Add the "colUsed" field to the sqlite3_index_info structure passed to ↵dan-4/+34
virtual table xBestIndex methods. To indicate the subset of the virtual table columns that may be required by the current scan. FossilOrigin-Name: 116b206494eb8ba963c7c5acfbf9e7b6db11c79c
2015-11-24Merge latest trunk changes with this branch.dan-0/+7
FossilOrigin-Name: 99222bb3e5f9b2a9a10d9561a9fd8c0f717baaff
2015-11-24Add a clarifying comment to the virtual table test module 'test8'.mistachkin-0/+7
FossilOrigin-Name: e92f97a6794440eb9d64e21218d39cb0e297a98e
2015-11-23Add experimental support for LIKE, GLOB and REGEXP to the virtual table ↵dan-0/+6
interface. FossilOrigin-Name: 277a5b4027d4c2caba8143228a4f7d6df899dbb4
2015-01-19Eliminate all use of sprintf(), strcpy() and strcat() from test logic becausedrh-2/+2
OpenBSD hates those functions. FossilOrigin-Name: 10321910990195878c0af1e94b34ae0cdc0cb31b
2015-01-12Harmless compiler warning fixes for 'testfixture' and the miscellaneous ↵mistachkin-3/+3
extensions when built with the MSVC makefile. FossilOrigin-Name: 923fd66031ed1876bc63c3a038f0b8e33678184e
2015-01-01Add logic to releasetest.tcl that detects -fsanitize=undefined errors.drh-2/+2
Fix a few false-positivies that come up when running the sanitize=undefined test. FossilOrigin-Name: 2835e79a0afec6e4d449ac9340afec068c2d4c11
2014-01-24Fixes for various clang warnings.drh-1/+1
FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8
2013-10-05Fix an issue in the test8.c test module that arises because of the changedrh-0/+1
to PRAGMA index_list(). Remove an unused local variable. FossilOrigin-Name: 029430c503f243a34439698779db7e591cfbe126
2013-04-29More refinements to Windows OSTRACE usage. Replace all usage of ↵mistachkin-2/+2
sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a
2013-04-25Move the test_spellfix.c module to ext/misc/spellfix.c.drh-24/+0
FossilOrigin-Name: de556add10150140981a2e34b3712e96a7c262e3
2013-01-25Fix the test_spellfix.c extension so that it can be made loadable at run-time.drh-1/+1
Add spellfix to the shell when building using the build-shell.sh script. FossilOrigin-Name: 7813b17d8b9fe48ddc841fe1c4bb75f7747073de
2012-07-16Fix compiler warnings about unused code in spellfix. Fix the editDist3Core()drh-2/+0
routine to return the matchlen in characters instead of bytes. FossilOrigin-Name: f96d4e7bd7d81b05b1490bf5d79c77ff583e444c
2012-07-13Update test_spellfix.c with latest changes.dan-2/+28
FossilOrigin-Name: cba2a65870481df213e006b07e74f0ca19d2d57c
2012-05-16Return SQLITE_MISUSE if an application attempts to register a virtual table ↵dan-6/+14
module with the same name as an existing module. FossilOrigin-Name: ea2cd55e098b21cd8997fd6c1978131d3ef2fab4
2012-04-19Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also indrh-2/+2
tclsqlite.c and in the FTS4 module. FossilOrigin-Name: 3281972eaa46cb57fd9f0387063f47430dc0a3b4
2012-03-20Fix out-of-bounds array references in the "echo" virtual table moduledrh-10/+6
used for testing. No changes to the SQLite core. FossilOrigin-Name: 7b449b301ea03295262b8d572b02625e4b39cfa5
2011-10-29Add a test for [48f29963] that does not depend on FTS.dan-1/+51
FossilOrigin-Name: fb15f5458eb3e17ce9795c09bffe1224fea0eecd
2010-07-24Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() anddrh-1/+1
all memory from sqlite3_malloc() is freed by sqlite3_free(). FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a
2009-11-10Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh-2/+0
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-04-29Fix a case in where.c where a crash can follow a malloc failure. Also modify ↵danielk1977-2/+2
test code in test8.c to check a return code that was being dropped (causing a test in vtab_err.test to fail). (CVS 6567) FossilOrigin-Name: 9664e2b6c69271a7ca55af7812a186773a7c6592
2009-04-21Attempt to optimize virtual table queries with 'OR' expressions in the WHERE ↵danielk1977-4/+4
clause. (CVS 6527) FossilOrigin-Name: f61e4cd93682fd98bea2a71d346f9eaa68454390
2009-04-08Remove a pair unnecessary conditions from printf.c. The "db" parameter isdrh-10/+10
now required for sqlite3MPrintf(). (CVS 6471) FossilOrigin-Name: 6fe8b5d70247d9c6b70dd482db3990986be97e69
2008-08-31Changed to used sqlite3_snprintf instead of snprintf (test code only). (CVS ↵shane-2/+2
5648) FossilOrigin-Name: d68791e35d13f5ae4befeb0bb5f8ccaf14fd3763
2008-08-20Add the pcache module from the experimental branch. Also change things so ↵danielk1977-3/+2
that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566) FossilOrigin-Name: cb494e10d71852024647aaa254203579ad438ea9
2008-08-12Fix warnings and a compilation error in test code. (CVS 5556)danielk1977-3/+3
FossilOrigin-Name: 80c129e63ec7dbed3de1e485dffea96fae40aa6d
2008-08-05Remove a reference to snprintf() in test8.c. (CVS 5538)drh-2/+3
FossilOrigin-Name: 32d32b743642c2f6d9e4f8845a9cd07e4f83f4cd
2008-08-01Also test that setting sqlite3_vtab.zErrMsg works from within the xRename ↵danielk1977-2/+6
method. (CVS 5520) FossilOrigin-Name: 4f4a9ccae7d25b9856d1203f6b289d552c2b425e
2008-08-01Test that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, ↵danielk1977-2/+70
xRowid, xUpdate, xSync and xBegin can all return error messages using the sqlite3_vtab.zErrMsg variable. (CVS 5519) FossilOrigin-Name: 007359b770f225877880b11f4c5d97bb548e38ca
2008-07-28Implement the "lookaside" memory allocation cache. Use of this cache makesdrh-2/+2
the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-23Read the sqlite3_vtab.zErrMsg after each call to a virtual table drh-1/+4
method and transfer any error into the database connection. Fix the fts2.test and fts3.test scripts to that they return silently rather than failing the test sequence if the appropriate FTS implementation is unavailable. (CVS 5463) FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1
2008-07-07Additional test cases added on the sqlite3_create_function() interface. (CVS ↵drh-5/+2
5349) FossilOrigin-Name: 4e941f3d43556d8a503bb96e8a74451de36d243e
2008-06-20Add a mode to the sqlite3_test_control() interface to register hooks called ↵danielk1977-3/+3
at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254) FossilOrigin-Name: 56c8af1452dfdc8da858a2411bd6f3663a8a9326
2008-06-16Fix a problem with the incremental blob API. sqlite3_blob_open() was always ↵danielk1977-2/+2
reading the data for the leftmost column of the row that the opened blob was stored in. If this column happened to contain a (the) large blob, sqlite would make a large memory allocation to read the data into. Which defeats the purpose of using incremental blobs. (CVS 5222) FossilOrigin-Name: 1b9478da2f421c1270e76297324fff8037d2f231
2008-05-13Make the benign-fault setting recursive. Make all malloc failuresdrh-3/+3
during a rollback benign since there is nothing we can do about them. (CVS 5128) FossilOrigin-Name: a9d1d931358637a6f039723a053098f65530de4b
2008-05-05Fix a couple of minor problems with transactions in virtual tables. (CVS 5081)drh-5/+4
FossilOrigin-Name: 2275fc6ee06b17da5808cecfa5570ac6439eaf74
2008-04-28Add test cases to verify that multiple virtual tables can be updateddrh-2/+40
within a trigger and that xSync, xCommit, and xRollback are never called except following xBegin or xCreate. Ticket #3083. (CVS 5064) FossilOrigin-Name: 76175199ac2fda57e616eb386ba0bad6aa9f74b4
2008-03-17Return an error when an xBestIndex() method indicates that it intends to use ↵danielk1977-1/+8
the value of an unusable constraint. Related to #2998. (CVS 4867) FossilOrigin-Name: ffd470279540b1b8e3fdce6eb14001bae489b16d
2008-02-13Where possible, avoid freeing buffers allocated for vdbe memory cells in ↵danielk1977-6/+15
case they can be reused. (CVS 4783) FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
2008-01-22Add the fault injector module in fault.c. Use it as a basis for memorydrh-3/+6
allocation failure testing. (CVS 4742) FossilOrigin-Name: 1a335e180183b414fcc3510ce28b98b21cd134a6
2007-12-13Change all instances of "it's" in comments to either "its" or "it is",drh-2/+2
as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) FossilOrigin-Name: 4e91a267febda572e7239f0f1cc66b3102558c36