aboutsummaryrefslogtreecommitdiff
path: root/src/test3.c
AgeCommit message (Collapse)AuthorLines
2026-08-12Create a new varint decoder that does not need to return the size of thedrh-6/+6
varint, and use that in sqlite3BtreeTableMoveto(). Omit the pointless getVarint and putVarint macros and use the actual function names instead. FossilOrigin-Name: f845ede54c065ebd222f3f3488f655f2cbbf2c40bae782b3f4eac76cbb0525ad
2026-07-23Change the way pointers are passed between C code and Tcl test scripts. This ↵dan-9/+3
allows tests to be run with Fil-C builds. FossilOrigin-Name: ba919ea1d4fe84526a4c844b3f901e5e8b1650dcdee647e4d46da2d33ced1710
2025-03-08Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more ↵stephan-14/+15
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-20/+20
FossilOrigin-Name: 205979813c7300debb5f1ba270583ef2f08e069d6d01865b5910702889a5c1ed
2024-07-30First attempt at getting the build to work with Tcl 9.0.drh-8/+6
FossilOrigin-Name: 6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
2023-06-07Add a C-source spell-checking facility. make misspell (on Nix)larrybr-1/+1
FossilOrigin-Name: 26c1bb4bd9e9f56613c3aa87407a7f562fd4ebde5bfd6dece02078001d9a45f8
2018-06-06Change sqlite3BtreeBeginTrans() to return the BTREE_SCHEMA_COOKIE, for adrh-1/+1
small speed improvement when starting new transactions. FossilOrigin-Name: a10662aa915ae2b5a78b3e10920350d32255b2d6b1a8aac0aba1ad173b07ed2b
2017-05-30Change sqlite3BtreeNext() and sqlite3BtreePrevious() so that they returndrh-1/+5
SQLITE_DONE if they have already reached the end (or beginning) of the table. This gives a performance increase and size reduction. FossilOrigin-Name: e972a3860892022d57b26ec44ce0fbadc61c1ff54b7a10b7e82390db88d323a7
2016-09-10Changes to give a warning-free build with SQLITE_OMIT_INCRBLOB anddrh-6/+11
SQLITE_OMIT_SHARED_CACHE. FossilOrigin-Name: 711c59171b22df04224183a713e6c36e0bb3bba8
2016-07-28Make sure the SQLITE_TCLAPI macro is always defined.mistachkin-15/+15
FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d
2016-07-28Allow the 'testfixture.exe' target to be compiled with the __stdcall calling ↵mistachkin-1/+5
convention. FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15
2016-06-04Change the sqlite3BtreeKeySize() interface into sqlite3BtreeIntegerKey() anddrh-12/+3
make it only work for table btrees. Change sqlite3BtreeDataSize() into sqlite3BtreePayloadSize() and make it work for all btrees. Combine sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() into a single sqlite3BtreePayloadFetch() routine. These changes seem to make the b-tree interface more rational and they reduce both binary size and CPU usage. FossilOrigin-Name: bef35e18dd19732f7859287b097feeb593e5900f
2016-05-21Simplify the sqlite3BtreeInsert() interface by gathering the five argumentsdrh-8/+8
describing the content to be inserted into the new BtreePayload structure, and thus reducing the number of parameters from eight to four. FossilOrigin-Name: 55f348cdd24c7812ea4b63345514764b69f64dc8
2016-04-06For a pager backed by a temp file, store the main journal in memory until it ↵dan-2/+4
is at least sqlite3_config.nStmtSpill bytes in size. Prevent the backup API from being used to change the page-size of a temp file. FossilOrigin-Name: 84c557010c211595d2ec80b62c63af1c7f4714bd
2015-10-30Add mutex operations to test code in test3.c to avoid triggering assert() ↵dan-0/+6
failures in certain configurations. FossilOrigin-Name: 9f19420b0a79dff65fc3a9d548f4b3fc4955f9f9
2015-10-26Capture BTREE_FORDELETE test cases that were mistakenly omitted from thedrh-1/+45
previous merge. FossilOrigin-Name: de6972515f65c5cf5da7cfdf876a05718299e9b8
2015-10-26Fix an uninitialized variable problem in the test code added by the previous ↵dan-3/+1
commit. FossilOrigin-Name: 7849662ef94fa48fe53177db5623f46b3cb401e8
2015-10-26Test that the binary record "0x01 0x00" is interpreted by OP_Column as a ↵dan-1/+48
vector of NULL (or default) values. FossilOrigin-Name: 5bdc3c82bd10f924c12568eb0fa7a07393fc864f
2015-10-22Modifications to pass a flag to internal routine sqlite3BtreeCursor() when a ↵dan-0/+1
cursor that is used solely for deleting b-tree entries, or for obtaining the components of keys to delete from other b-trees, is opened. FossilOrigin-Name: cdc92919e600007cae5eb61223684f48a65babc0
2015-01-19Eliminate all use of sprintf(), strcpy() and strcat() from test logic becausedrh-5/+10
OpenBSD hates those functions. FossilOrigin-Name: 10321910990195878c0af1e94b34ae0cdc0cb31b
2013-04-29More refinements to Windows OSTRACE usage. Replace all usage of ↵mistachkin-8/+8
sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a
2013-04-10Add new primary error codes SQLITE_NOTICE and SQLITE_WARNING for use withdrh-32/+8
sqlite3_log(). Add new extended error codes SQLITE_NOTICE_RECOVER_WAL and SQLITE_NOTICE_RECOVER_ROLLBACK to use with sqlite3_log() messages that occur on each recovery. FossilOrigin-Name: be7d2c5482c41baf000d7fb5dccc31b974e91064
2012-04-19Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also indrh-1/+1
tclsqlite.c and in the FTS4 module. FossilOrigin-Name: 3281972eaa46cb57fd9f0387063f47430dc0a3b4
2012-03-30Fix MSVC compiler warnings in test code.drh-1/+1
FossilOrigin-Name: cb7a850439c9a4a7887650d6b81d95ab8025de5b
2012-01-10Only require double-zero terminators on database filenames, not any everydrh-1/+9
files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. FossilOrigin-Name: cb774b26e13745cfad0d76a71e47466d703e0007
2011-04-23Have the ATTACH command do URI interpretation in the same way as ↵dan-1/+1
sqlite3_open() and sqlite3_open_v2() do. FossilOrigin-Name: 68240e75e87a54cde93352b0ec364d34365a8170
2010-08-30Remove the sqlite3BtreeFactor() wrapper routine. All modules now calldrh-5/+4
sqlite3BtreeOpen() directly. FossilOrigin-Name: 0900e35348f4b9bf327d6ae2884c4ddbb6345d8d
2010-01-07Changes to test code so that testfixture compiles when OMIT_SHARED_CACHE and ↵dan-1/+3
OMIT_UTF16 are defined. FossilOrigin-Name: d6ee5ff6c815e3aadd92d331560b529394eae661
2009-11-10Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh-2/+0
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-07-09Restore (btree_set_cache_size) to test3.c. This is used on unix for the tcl ↵danielk1977-4/+38
"crash tests". Make some functions no longer used outside of btree.c static. (CVS 6869) FossilOrigin-Name: 1d96ce8c76e007ca29e7971a6c72b6387fe0fb93
2009-07-09removed the test function sqlite3BtreeFlags() (test code only); (CVS 6868)shane-2/+3
FossilOrigin-Name: 579ba6c83f52d26860e5152f06355aa4f49e568d
2009-07-09removed unused functions from test3.c (test code only); (CVS 6867)shane-1000/+2
FossilOrigin-Name: 0eb69e8dda13e2d52a06f66a71480f59fd766271
2009-07-06Make the sqlite3BtreeMoveto function static, since it is only used from ↵danielk1977-1/+3
within btree.c. Remove unused function lockBtreeWithRetry from btree.c. (CVS 6850) FossilOrigin-Name: 30d5ec62ab6a85ee60ee4128e20959842f8c7ad1
2009-07-03Remove an unused variable from the test code in test3.c. (CVS 6843)drh-2/+1
FossilOrigin-Name: 9e35bec9ef924ec44e87294a549238e0104bb27b
2009-07-02Cause opening a transaction on a sharable b-tree module automatically obtain ↵danielk1977-6/+2
a read-lock on page 1. This means there is no way for sqlite3BtreeGetMeta() to fail. (CVS 6836) FossilOrigin-Name: e3c055f167f895ae45858de9d9d8a264df2f36b6
2009-06-29Cause incremental-blob read/write operations lock shared-cache tables in the ↵danielk1977-2/+5
same way as normal SQL read/writes. Add complex assert statements to make sure tehe correct shared-cache locks are held when accessing the database. Eliminate some redundant checks from btree.c. (CVS 6830) FossilOrigin-Name: f17ef37897da9bcaf20b5acdce6840522c0a0b16
2009-05-04Speed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by ↵danielk1977-3/+3
rationalizing duplicate seek operations. (CVS 6599) FossilOrigin-Name: cac4f3d812f0a02ca5c1fa78d366f694403929a8
2009-03-18Fix some cases where executing SQL from within a user-function callback ↵danielk1977-4/+7
could cause problems related to statement-transactions. (CVS 6355) FossilOrigin-Name: a60f4191791dd7bb49d5c95b350a9924845b59a8
2008-10-27Make sqlite3_count_changes() and total_changes() work with "DELETE FROM ↵danielk1977-2/+2
<table-name>". (CVS 5844) FossilOrigin-Name: e68e4282adb9003aa297d033aeb5d9cadee215cd
2008-08-13Additional changes toward fixing ticket #3292. (CVS 5562)drh-3/+3
FossilOrigin-Name: 0b92cbf5255020d4fde382f81590ff0488936667
2008-07-12Remove leftover debugging commands (breakpoint and btree_breakpoint) fromdrh-40/+37
test scripts. (CVS 5400) FossilOrigin-Name: dcb160249fa2d592ad09b8b0052102dc44a93511
2008-07-10Remove unused code. Test coverage enhancements. Modify the algorithm useddrh-95/+1
to select column names for VIEWs of joins so that the constructed column names omits the underlying table names. (CVS 5386) FossilOrigin-Name: 636cd723296a8b1709011fdd99b236ffddf3f1b0
2008-06-18Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration ↵danielk1977-2/+2
modes. (CVS 5234) FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918
2008-06-06Remove the xGetTempname() method from the vfs structure. Temp files are now ↵danielk1977-1/+31
opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190) FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
2008-05-27In test3.c, use type 'u32' instead of 'unsigned int' to remove a ↵shane-2/+2
warning/error from native x86_64 compile. (CVS 5165) FossilOrigin-Name: 02447e4e47659d70f014529e9baa3bf8ff75844c
2008-04-24Consolidated varint macro usage from btreeInt.h, vdbe.c, and vdbeaux.c into ↵shane-11/+11
sqliteInt.h and made their use consistent. Slight improvements to varint32 macros. (CVS 5045) FossilOrigin-Name: 0d04ccd97841bbbda564cc6ae5da057ee3888fa3
2008-03-25Modify the {quote: IdxDelete} opcode so that it takes an array of registers ↵drh-3/+3
rather than a record formed using {quote: MakeRecord.} This avoids a needless packing and unpacking of the record to be deleted. (CVS 4916) FossilOrigin-Name: ee381b43563e1b0637ee74389d076dff77deddf9
2008-03-25Use a vdbe memory cell to allocate the space required for vdbe cursors. (CVS ↵danielk1977-2/+6
4912) FossilOrigin-Name: 047153648155654b0cd70b811935209d2e21776c
2008-03-25Removed the direct btree tests - part of the ongoing effort to test bydrh-2/+2
calling only public interfaces. Modify the sqlite3VdbeRecordCompare interface to used a pre-parsed second key - resulting in a 13% performance improvement on speed1p.test. (CVS 4911) FossilOrigin-Name: 0e1d84f2f456e7680bb667266745b629ddf3605f
2008-03-04Various renames & cleanups to limit exported symbols on amalgamation build ↵mlcreech-3/+3
(CVS 4819) FossilOrigin-Name: 9c6694bb61a8ecdbfb2d05e5e05a8cc97b792240