Commit Graph

3962 Commits

Author SHA1 Message Date
drh a33cb5f776 Improved clarity of presentation in the tokenizer. (CVS 5545)
FossilOrigin-Name: 732657c6a639bdf71a3341f6747d19298d442ddb
2008-08-07 13:05:34 +00:00
danielk1977 1857693df8 Fix compilation with SQLITE_OMIT_FOREIGN_KEY defined. Ticket #3273. (CVS 5544)
FossilOrigin-Name: ce8cbeea51442ea963bcdf5ddc71f021fb996a37
2008-08-06 13:47:40 +00:00
danielk1977 eaed356dc2 Fix typo in comments in sqlite.h.in. Ticket #3271. (CVS 5543)
FossilOrigin-Name: 18030631e82c70e0d4d6093cd43fb0c0fa6d53c8
2008-08-06 13:40:13 +00:00
drh b36d88abd3 Remove a reference to snprintf() in test8.c. (CVS 5538)
FossilOrigin-Name: 32d32b743642c2f6d9e4f8845a9cd07e4f83f4cd
2008-08-05 21:36:06 +00:00
drh e50135e26d Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537)
FossilOrigin-Name: c4e9b824062ba82a8db01cd82e3e681de1940208
2008-08-05 17:53:22 +00:00
drh e9d1c720ee Separate verbs of sqlite3_config() and sqlite3_db_config() into their
own namespaces.  Allow SQLITE3_DBCONFIG_LOOKASIDE to specific an external
memory buffer. (CVS 5536)

FossilOrigin-Name: 5dd865da5e787c10ef4c9e96647724bfab9dea01
2008-08-04 20:13:26 +00:00
drh d5a68d3dc8 Enhanced markings for experimental and deprecated interfaces. (CVS 5534)
FossilOrigin-Name: 7e6ec5d53d9e002848fa437ec21bf009798a9a3b
2008-08-04 13:44:57 +00:00
danielk1977 df206b0b6b Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532)
FossilOrigin-Name: 34208f0ba420ca6bef16991eba200d5ed68d5430
2008-08-04 04:39:48 +00:00
danielk1977 de3e41e304 Fix (make test) with SQLITE_OMIT_COMPOUND_SELECT. Ticket #3235. (CVS 5530)
FossilOrigin-Name: 9ca975c8fdeaae7d5af8fe62e097d8d251362cfe
2008-08-04 03:51:24 +00:00
danielk1977 a68468f5b1 Fix a reference count leak introduced by (5526). (CVS 5527)
FossilOrigin-Name: f653995c32197cacbcd14ea9e876ba5b2fde94df
2008-08-02 17:36:45 +00:00
danielk1977 f328bea9da Avoid doing IO purely to check assert() constraints. (CVS 5526)
FossilOrigin-Name: fb26ae723959390a716f221af93c6c29eec16955
2008-08-02 17:03:31 +00:00
danielk1977 9dbee7dc1c Fix a bug introduced by (5519) causing builds with SQLITE_OMIT_VIRTUALTABLE to malfunction. (CVS 5525)
FossilOrigin-Name: 761e73ceab77f965d58546ecf493f65cf52456fc
2008-08-02 15:32:39 +00:00
danielk1977 5a114caddf Increase the ref-count on the sqlite3_vtab structure before calling either the xNext or xFilter methods. (CVS 5524)
FossilOrigin-Name: 6e41455f2c7ee57c60578541040631b899e1481f
2008-08-02 15:10:08 +00:00
drh 701bb3b4f0 Additional coverage testing. Fix a segfault following OOM in
sqltie3_load_extension(). (CVS 5523)

FossilOrigin-Name: f1e44eb323f05495cbae25113aebcc50d16b40df
2008-08-02 03:50:39 +00:00
drh c890fec362 Bring test coverage up to 99%. (CVS 5522)
FossilOrigin-Name: 2cd6bae80984126023bcf479e5f3db5eaa5c4134
2008-08-01 20:10:08 +00:00
drh 4cfb22f798 Fix problems in test scripts. Add new test cases to improve test coverage. (CVS 5521)
FossilOrigin-Name: b65f493c7519e8a5ee632a395b57d45269741dda
2008-08-01 18:47:01 +00:00
danielk1977 987a00e8b5 Also test that setting sqlite3_vtab.zErrMsg works from within the xRename method. (CVS 5520)
FossilOrigin-Name: 4f4a9ccae7d25b9856d1203f6b289d552c2b425e
2008-08-01 17:51:47 +00:00
danielk1977 3e3a84d32a Test that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, xRowid, xUpdate, xSync and xBegin can all return error messages using the sqlite3_vtab.zErrMsg variable. (CVS 5519)
FossilOrigin-Name: 007359b770f225877880b11f4c5d97bb548e38ca
2008-08-01 17:37:40 +00:00
drh 6480aad473 Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)
FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9
2008-08-01 16:31:14 +00:00
shane 5cd89cfe71 Applied patch to fix failure with build on gcc-powerpc (provide sqlite3Hwtime). Ticket #3256. (CVS 5516)
FossilOrigin-Name: c9ecd88e273aee56b4af5b69fae94e1f98d3e43d
2008-08-01 14:33:15 +00:00
danielk1977 d300b8a30b If xAccess() fails while attempting to detect a hot-journal file, do not assume that the error was an out-of-memory condition. (CVS 5515)
FossilOrigin-Name: 70f20425e8197bce74b412f65050d954acb5bde4
2008-08-01 10:50:23 +00:00
drh 603234181e Define _GNU_SOURCE only if it is not already defined. Ticket #3263. (CVS 5514)
FossilOrigin-Name: bc5abd31a7b5bc656edbb54c1c4523549d888056
2008-07-31 17:35:45 +00:00
drh 0a60a384e7 Change the definition of SQLITE_CONFIG_PAGECACHE and
SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size
calculation. (CVS 5512)

FossilOrigin-Name: e7ed0fe640a39053009eac52a7f055b121750e57
2008-07-31 17:16:05 +00:00
drh 2462e32246 Documentation updates. (CVS 5511)
FossilOrigin-Name: e7fdd813ccdefab33aedbcf7f44e13b935dd3299
2008-07-31 14:47:54 +00:00
shane 8225f5ac55 Omit calls to test_get_table_printf() if SQLITE_OMIT_GET_TABLE defined. (CVS 5509)
FossilOrigin-Name: 524a4075ddaecb07469da717e8afebc91240616e
2008-07-31 02:05:04 +00:00
shane 2a5fc4d6f5 Omit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)
FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff
2008-07-31 01:47:11 +00:00
shane 9200309ef6 Fixed comment to use right function names for sqlite3VdbeSerialPut() and sqlite3VdbeSerialGet(). (CVS 5507)
FossilOrigin-Name: 820c37ec5290d7f0030438da29b30c33400fd4e3
2008-07-31 01:43:13 +00:00
shane 04e86f4d99 Omit calls to sqlite3Pragma() if SQLITE_OMIT_PARSER defined. Not technically needed, as the entire generated parse.c file should not be included. (CVS 5506)
FossilOrigin-Name: 10e0450896a8b92b160f2e670e8d5a909c1c67ba
2008-07-31 01:40:42 +00:00
shane 3582c5a98c Improved retry logic for winDelete() when in "pending delete" state. (CVS 5505)
FossilOrigin-Name: 03a7973477b419d21c3b2925aa90efb05ff64ef9
2008-07-31 01:34:34 +00:00
drh 5462624dc4 When opening a zero-size database on unix, write one byte into the file before
interrogating the inode number.  This works around issues with msdos
filesystems mounted on OS-X.  Ticket #3260. (CVS 5504)

FossilOrigin-Name: a480a8845fb3b49967de0790b30e6250c824b9be
2008-07-30 17:28:04 +00:00
drh da0e768be2 In the unix OS implementation, replace inode hash tables with linked lists. (CVS 5503)
FossilOrigin-Name: db4022db64dc5864e6f1d0a20672183879ad43aa
2008-07-30 15:27:54 +00:00
drh 61669b3824 Implicit string->numeric conversion should go to an integer value when
possible.  Ticket #3257. (CVS 5502)

FossilOrigin-Name: da0e4bff30a77f72ae283406b547401c2ebb42c5
2008-07-30 13:27:10 +00:00
drh dab898f8e4 Remove unused sqlite3VdbeMemDynamicify() function from the VDBE. (CVS 5500)
FossilOrigin-Name: aee63308312bcebb79e15cfdf942ee23694444b0
2008-07-30 13:14:55 +00:00
pweilbacher d6a75f8160 finally make temporary and journal files hidden in release builds on OS/2 (CVS 5497)
FossilOrigin-Name: c449a95c4f7abd2bfb92bed0e3a9ae874350ce79
2008-07-29 18:49:28 +00:00
pweilbacher af3cc1821d recursively call os2Open() with the incoming VFS pointer, in case it gets used in the future (CVS 5496)
FossilOrigin-Name: 6eac49f046d089dac90c0bf72e8c3fc583694dcd
2008-07-29 18:38:47 +00:00
pweilbacher 6d2a4b057d move os2FullPathname() so that it can be used in os2Open() directly (CVS 5495)
FossilOrigin-Name: 2455e45484eff85bf9fd78dadd1e934f2bbe210a
2008-07-29 18:35:53 +00:00
drh 5f4bcf15d1 Enhancements to the pagecache malloc test configuration. Changes to the
speed test scripts to use the new test enhancements. (CVS 5494)

FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e
2008-07-29 14:29:06 +00:00
danielk1977 ad76a81ed5 Use a macro to make sure that the calls to sqlite3Utf8Read() from MemTranslate() are inlined. This speeds up converting from utf8 to utf16. (CVS 5492)
FossilOrigin-Name: 78a623bbb17e35bcb902d3ea1d0b963570588d2d
2008-07-29 11:25:14 +00:00
danielk1977 808ec7c0c7 Speed up OP_Column by eliminating some double handling. (CVS 5490)
FossilOrigin-Name: 9ebee8401b68a2bcd49dc750ac394258d554b499
2008-07-29 10:18:57 +00:00
drh 633e6d57d9 Implement the "lookaside" memory allocation cache. Use of this cache makes
the speed1.test script run about 15% faster.  Added new interfaces to
control the cache. (CVS 5488)

FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +00:00
danielk1977 95c232dc0c In the documentation for SQLITE_CONFIG_MEMSTATUS, make it clear that the 'boolean' argument passed to sqlite3_config() is actually of type int. Ticket #3252. (CVS 5486)
FossilOrigin-Name: 1ffdd46f0bf5c82c652dedf74660e913b5699b18
2008-07-28 05:22:35 +00:00
danielk1977 ced38bdfbb Remove a branch that could not be taken from OP_IsUnique. (CVS 5485)
FossilOrigin-Name: 75c2a532f4dfd7eee5136fbb79f8e20dbc666fad
2008-07-26 18:47:27 +00:00
danielk1977 161546c7e5 Fix a case where database corruption was causing an invalid reference. (CVS 5484)
FossilOrigin-Name: 7aecabacf924ad8c1f9f4e707d0c56e433e3a434
2008-07-26 18:26:10 +00:00
drh 66cccd9b24 Add an SQLITE_OMIT_LOCALTIME around the "utc" modifier in date/time functions. (CVS 5483)
FossilOrigin-Name: 71486e93b274b7ca954314dd3e4146192a8b6d79
2008-07-25 16:39:24 +00:00
danielk1977 7c4185e2f1 Further performance improvements to mem6.c. (CVS 5482)
FossilOrigin-Name: 4528f7b1cce2d009f1bf32bfb8eeaf3ce5531f41
2008-07-25 16:07:00 +00:00
drh ec424a5be6 Add the capability to track the maximum depth of the LALR(1) parser stack
so that critical applications can check to see if they are getting close
to limits. (CVS 5481)

FossilOrigin-Name: ef0250f3dc769a4acd534f31fa06d90922d4145b
2008-07-25 15:39:03 +00:00
drh 40f2c76720 Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture
with sqlite3_instvfs enabled.  This allows fulltest to run on platforms
for which we do not have a working hwtime.h (ex: ppc, s390).  Change
requested from the SuSE team. (CVS 5478)

FossilOrigin-Name: 16c164e79c2033347a36d6f7150eb8d2e0497c78
2008-07-25 13:32:44 +00:00
danielk1977 da17af08fd Speed up the xFree() method of the mem6.c allocator by storing the offset from the pointer to the start of its chunk in a header field. (CVS 5475)
FossilOrigin-Name: 0de54891d4901dec929459d27004efe87106ffa2
2008-07-25 10:40:18 +00:00
danielk1977 9dc0d68241 Change mem6.c to use the malloc() and free() functions directly, instead of going via another sqlite3_mem_methods structure. (CVS 5474)
FossilOrigin-Name: cfa65e23df8b6f33884f533492b84dd1985db4d4
2008-07-25 09:24:13 +00:00
danielk1977 31fab4f30b Updates to mem6.c allocator. (CVS 5473)
FossilOrigin-Name: 43a4cae2acea33d1a17c0037516e9c27fb7e8e91
2008-07-25 08:48:59 +00:00