]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 6 Oct 2008 13:54:35 +0000 (13:54 +0000)]
Expression nodes of type TK_ROW mean the rowid of the first table in the
source list. (CVS 5769)
FossilOrigin-Name:
2f7db6c98f17e0b7110258093c283091a91d4e4f
drh [Mon, 6 Oct 2008 12:46:43 +0000 (12:46 +0000)]
In sqlite3_bind() interfaces, avoid acquiring the mutex until after the
statement handle has been validated. Ticket #3418. (CVS 5768)
FossilOrigin-Name:
693503e241001271512f4ce3e8cc932ba6a3106c
danielk1977 [Mon, 6 Oct 2008 11:29:49 +0000 (11:29 +0000)]
Add a test to indexedby.test to check that automatic indexes (sqlite_autoindex_xxx) can be used with the INDEXED BY syntax. (CVS 5767)
FossilOrigin-Name:
bb51c34506b3353506b6f3566fbe2a10d02e8ebc
danielk1977 [Mon, 6 Oct 2008 05:32:18 +0000 (05:32 +0000)]
Allow INDEXED BY and NOT INDEXED clauses in SELECT statements. (CVS 5766)
FossilOrigin-Name:
98ca5580f5acd2e7b3ce512520ec0527f221505e
danielk1977 [Fri, 3 Oct 2008 09:10:45 +0000 (09:10 +0000)]
Modifications to bind.test to account for different values of SQLITE_MAX_VARIABLE_NUMBER. Ticket #3409. (CVS 5765)
FossilOrigin-Name:
1a91f3fd58608e258b60305d1d18c3d07d2e9c46
danielk1977 [Fri, 3 Oct 2008 08:44:54 +0000 (08:44 +0000)]
Change one of the test cases in incrblob2.test to avoid allocating a 10MB block of heap memory. (CVS 5764)
FossilOrigin-Name:
83b7dd737a16555b9eb4ad9faacac3d705b0a90e
danielk1977 [Thu, 2 Oct 2008 16:42:06 +0000 (16:42 +0000)]
Change to reduce the number of OP_Null opcodes in "WHERE <rowid> IN (x,y,z)" queries. (CVS 5763)
FossilOrigin-Name:
33b59a3db0b1797663ae840ceaca1b23a9a9e3b0
danielk1977 [Thu, 2 Oct 2008 14:49:01 +0000 (14:49 +0000)]
Fix for sqlite3_blob_write(): If either 3rd or 4th argument is less than zero, return SQLITE_ERROR. H17879. (CVS 5762)
FossilOrigin-Name:
f6074c0b9b5ba51d131509dba2aec80d0fcf3b7e
drh [Thu, 2 Oct 2008 14:33:56 +0000 (14:33 +0000)]
Fix a typo that prevents the sqlite3_sql() interface from appearing
in the official documentation. (CVS 5761)
FossilOrigin-Name:
b46814b202f4cc355b925551c90ea811f3f9e44a
danielk1977 [Thu, 2 Oct 2008 13:50:55 +0000 (13:50 +0000)]
Optimize queries that contain "WHERE rowid IN (x, y, z...)" by using an intkey btree to store the (x, y, z...) set instead of an index btree. (CVS 5760)
FossilOrigin-Name:
803a1736d56b3c07b8ad38715fe0e39196ecc507
drh [Wed, 1 Oct 2008 13:55:50 +0000 (13:55 +0000)]
Adjust the memory usage bounds on the memsubsys1.test script so that
it works on amd64. (CVS 5759)
FossilOrigin-Name:
aabde23fe19bd95371fdebdde66ac553dfd53f8e
danielk1977 [Wed, 1 Oct 2008 08:43:03 +0000 (08:43 +0000)]
Fix a bug in where.c where a non-temp register was being incorrectly deallocated. Ticket #3408. (CVS 5758)
FossilOrigin-Name:
59d2e89e2181c26b18eac68ccc80ea3018f70a5e
drh [Tue, 30 Sep 2008 17:18:17 +0000 (17:18 +0000)]
Add some testcase() and assert() macros to btree.c to aid with testing
recent changes. (CVS 5757)
FossilOrigin-Name:
fb461b78dfc2501fafa8bce03da5487fdfdff959
danielk1977 [Tue, 30 Sep 2008 16:48:10 +0000 (16:48 +0000)]
Fix a comment in btree.c. No code changes. (CVS 5756)
FossilOrigin-Name:
0f3c56330b43fb7c9dc43a444ca38bace9397ede
drh [Tue, 30 Sep 2008 14:06:28 +0000 (14:06 +0000)]
Change leading tabs into spaces. (CVS 5755)
FossilOrigin-Name:
4e536463c1aa9991de85c7efc826c28896ca61d3
danielk1977 [Tue, 30 Sep 2008 09:31:45 +0000 (09:31 +0000)]
Fix a recently introduced problem with deleting entries from index tables. (CVS 5754)
FossilOrigin-Name:
83c064cae481ca95b7107e22e98fc599fe85a2da
shane [Tue, 30 Sep 2008 04:20:07 +0000 (04:20 +0000)]
Misc clean up. Wrapped a CE only variable in if-defs. Changed to only provide cache hint for CE builds (as this prevents CE from compressing the file.) Performance testing on XP and Vista showed caching hint had little effect when the DB size was much smaller than the O/S disk cache size, and provided only marginal benefit when the DB size was much larger than the cache. On Vista, overall system performance was hurt for very large DBs. Ticket #3387. (CVS 5753)
FossilOrigin-Name:
15dd0169a4c5e2ff9e3894eec10799cb89d462e5
drh [Tue, 30 Sep 2008 00:31:38 +0000 (00:31 +0000)]
A few minor changes to test scripts so that they work on linux-amd64. (CVS 5752)
FossilOrigin-Name:
78d075ff38d96cc58659a7097dec0e49402aa960
danielk1977 [Mon, 29 Sep 2008 16:41:31 +0000 (16:41 +0000)]
Remove the reparentPage() and reparentChildPages() functions from btree.c. All calls to these functions can now be replaced by a call to setChildPtrmaps(). (CVS 5751)
FossilOrigin-Name:
35e8e4dcd24b050b535ae005ca3b25e6a673eb89
danielk1977 [Mon, 29 Sep 2008 15:53:25 +0000 (15:53 +0000)]
Remove the MemPage.idxShift variable. It is no longer required. (CVS 5750)
FossilOrigin-Name:
7354abd03be756b1d7d0a3d5b8958f5c0c985ff5
danielk1977 [Mon, 29 Sep 2008 14:27:41 +0000 (14:27 +0000)]
Do not run vacuum.test as part of the "exclusive" permutation test. (CVS 5749)
FossilOrigin-Name:
2fb15ae9e9af716a5684a21826814bc4c332a596
danielk1977 [Mon, 29 Sep 2008 14:12:56 +0000 (14:12 +0000)]
Update shared_err.test to work with (5668) (return SQLITE_CORRUPT if rollback fails). (CVS 5748)
FossilOrigin-Name:
292acaf7c4e68b532cc8d1763e02aa79d90ea20c
danielk1977 [Mon, 29 Sep 2008 11:49:47 +0000 (11:49 +0000)]
Instead of storing a pointer to the parent page in the MemPage structure, have each B-Tree cursor keep track of the ancestry of the current page. (CVS 5747)
FossilOrigin-Name:
40425e93421286cca1965d7a5769084526210c7a
vapier [Mon, 29 Sep 2008 00:11:22 +0000 (00:11 +0000)]
fix #3077: use full version in pkg-config files (CVS 5746)
FossilOrigin-Name:
efe095e0cb8e0f8a11fd9cc321ec83b556458bf2
drh [Fri, 26 Sep 2008 21:08:08 +0000 (21:08 +0000)]
Add the "truncate" journal mode which commits transactions by truncating the
rollback journal file to zero length and not calling fsync(). (CVS 5745)
FossilOrigin-Name:
7c561f2e9264de676c1028943f6c3d06542fd802
drh [Fri, 26 Sep 2008 20:02:50 +0000 (20:02 +0000)]
Make sure the queueMutex is held prior to writing the pQueueLast field
of the write queue in the async demonstration code. Ticket #3405. (CVS 5744)
FossilOrigin-Name:
5622a1e285fc4d5720f7180a0eb551952f2df331
danielk1977 [Fri, 26 Sep 2008 17:31:55 +0000 (17:31 +0000)]
Performance enhancement: avoid calling reparentChildPages() from balance_nonroot(). (CVS 5743)
FossilOrigin-Name:
28fd0a50ca8529892f5b1ababd38d494889eed6d
danielk1977 [Wed, 24 Sep 2008 14:03:43 +0000 (14:03 +0000)]
On windows, avoid running those tests in exclusive.test that require the journal file to be externally accessed while SQLite is holding it open. This doesn't work on windows. (CVS 5742)
FossilOrigin-Name:
5debf12fa46520946ac5da44c03448fffbc9940c
danielk1977 [Wed, 24 Sep 2008 09:58:00 +0000 (09:58 +0000)]
Add file fts3_icu.c to the amalgamation. Because of the way header files are included into sqlite3.c, fts3_icu.c has to appear after all the other fts3 and icu extension files. Ticket #3398. (CVS 5741)
FossilOrigin-Name:
0acca5842f83943228d4225b60dc7e8a42bae577
danielk1977 [Wed, 24 Sep 2008 09:12:46 +0000 (09:12 +0000)]
Fix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399. (CVS 5740)
FossilOrigin-Name:
0fb98c35353d8c0a8d669bbe45fe84e3a5060621
danielk1977 [Tue, 23 Sep 2008 17:39:26 +0000 (17:39 +0000)]
Catch another case where SQLITE_IOERR could be returned instead of SQLITE_NOMEM following an out-of-memory error. (CVS 5739)
FossilOrigin-Name:
18d030da0c1755aab458e5aa0d3ad0a714706d67
danielk1977 [Tue, 23 Sep 2008 16:41:29 +0000 (16:41 +0000)]
Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738)
FossilOrigin-Name:
046ef07261d520c9399bd8cdfdfd5281956b7a27
drh [Tue, 23 Sep 2008 10:23:26 +0000 (10:23 +0000)]
Enable the LOCKING_STYLE extensions by default on a Mac. Leave them
disabled on all other posix platforms. (CVS 5737)
FossilOrigin-Name:
bae1d5b16948705b7dec7b139e3586b4b510cbfa
drh [Tue, 23 Sep 2008 10:16:04 +0000 (10:16 +0000)]
Remove an unused variable from the test logic. (CVS 5736)
FossilOrigin-Name:
309ba380d985d77419a6e185373493e043823258
drh [Tue, 23 Sep 2008 10:12:13 +0000 (10:12 +0000)]
Fix the TCL installer so that it omits the release number. Ticket #3396.
Use strcmp() instead of sqlite3StrICmp() in the "copy" method of the SQLite
object in the TCL interface. (CVS 5735)
FossilOrigin-Name:
a88606245760eaf8054d67773db7d8b795e8ca25
drh [Tue, 23 Sep 2008 09:58:46 +0000 (09:58 +0000)]
Add no-op Unload entry points to the TCL interface. Ticket #3397. (CVS 5734)
FossilOrigin-Name:
b31dd1e3f1d927b9236b7ebeb331268cbd253083
drh [Tue, 23 Sep 2008 09:36:10 +0000 (09:36 +0000)]
Fix for ticket #3382 was mistakenly removed by (5712). Add an assert to
prevent it from being removed again. (CVS 5733)
FossilOrigin-Name:
01d26b3df7029f7fa09231c18a7b9f9a1a967916
drh [Mon, 22 Sep 2008 17:54:46 +0000 (17:54 +0000)]
Get rid of all of the compiler magic associated with SQLITE_EXPERIMENTAL
and SQLITE_DEPRECATED. It was causing more problems than it was solving.
Ticket #3395 et al. (CVS 5732)
FossilOrigin-Name:
bc040073c7c059e91fddece27f99fa359cc1405d
danielk1977 [Mon, 22 Sep 2008 17:22:19 +0000 (17:22 +0000)]
Fix a memory leak that can follow a malloc failure in sqlite3_initialize. (CVS 5731)
FossilOrigin-Name:
118dc0ba082dd9abba5602dafc86bd56e756db86
danielk1977 [Mon, 22 Sep 2008 11:46:32 +0000 (11:46 +0000)]
Add instrumentation to os_unix.c to test that a return value of SQLITE_FULL from an xSync() callback is handled correctly. (CVS 5730)
FossilOrigin-Name:
7bd2da93c6cce52edbbe53fe26a82ad159dd6b6b
drh [Mon, 22 Sep 2008 10:44:32 +0000 (10:44 +0000)]
Version 3.6.3 (CVS 5729)
FossilOrigin-Name:
1634fd223d65a6ad461f79ca922b5ef967ae763d
danielk1977 [Mon, 22 Sep 2008 06:13:31 +0000 (06:13 +0000)]
Remove unused macro Release() from vdbe.c. (CVS 5728)
FossilOrigin-Name:
915679431a70c593a83cf5e8b1dcce1555e9518e
drh [Sun, 21 Sep 2008 15:14:04 +0000 (15:14 +0000)]
Give file scope to non-API routines in pcache. Ticket #3392. (CVS 5727)
FossilOrigin-Name:
6521f98ac3a5cd2d959a9672cd07b1d25b82d559
danielk1977 [Fri, 19 Sep 2008 18:32:26 +0000 (18:32 +0000)]
Speed up releaseMemArray() a bit by handling the most common types of memory cells inline. (CVS 5726)
FossilOrigin-Name:
ce07508550da858beb0bc0763c65e6d556bb0843
danielk1977 [Fri, 19 Sep 2008 16:39:38 +0000 (16:39 +0000)]
In function moveToRoot(), use the MemPage.pParent pointers to find the root page if they are valid. This is slightly faster than requesting a new reference to the root page from the pager layer. (CVS 5725)
FossilOrigin-Name:
0c8b74e668b7462c5439c04993d1d7cd74210075
danielk1977 [Fri, 19 Sep 2008 15:10:58 +0000 (15:10 +0000)]
In sqlite3BtreeGetMeta(), if BtShared.pPage1 is available use it instead of requesting a new reference from the pager layer. (CVS 5724)
FossilOrigin-Name:
59be34cfa4fe74f7e5b547c55d273ecba9d7796c
danielk1977 [Fri, 19 Sep 2008 09:14:43 +0000 (09:14 +0000)]
Remove an obsolete layer of redirection in pager.c. (CVS 5723)
FossilOrigin-Name:
75deaa442f3a363c4ea5b6f0e510306feeaa8915
drh [Thu, 18 Sep 2008 18:18:29 +0000 (18:18 +0000)]
Do not run the async tests if the async module is not installed. (CVS 5722)
FossilOrigin-Name:
4de71a4e2f59d302156e10efcb288efa23e18598
danielk1977 [Thu, 18 Sep 2008 18:17:03 +0000 (18:17 +0000)]
Fix a segfault introduced by (5720) that can follow an IO error. (CVS 5721)
FossilOrigin-Name:
05d3462688507b61710cbda27adf61d0b0514e27
danielk1977 [Thu, 18 Sep 2008 17:34:44 +0000 (17:34 +0000)]
Avoid parsing the structure of b-tree pages (in sqlite3BtreeInitPage) more than is necessary. (CVS 5720)
FossilOrigin-Name:
6b998f3066754e219c266501327e5578c9406b63
drh [Thu, 18 Sep 2008 13:49:12 +0000 (13:49 +0000)]
Update the version number to 3.6.3. (CVS 5719)
FossilOrigin-Name:
419764b35c96a1b08aefc0d6093c19fdf2aef517
danielk1977 [Thu, 18 Sep 2008 11:30:12 +0000 (11:30 +0000)]
Changes to test script nan.test to work on symbian. (CVS 5718)
FossilOrigin-Name:
0889b22a2949160c3f2d06beaa05a867b4c228b3
danielk1977 [Thu, 18 Sep 2008 11:18:41 +0000 (11:18 +0000)]
Changes to test script io.test to work on symbian. (CVS 5717)
FossilOrigin-Name:
2b41c4959da2ef5a882a658e85ee34d07d31f379
drh [Thu, 18 Sep 2008 01:08:15 +0000 (01:08 +0000)]
Performance improvements in getAndInitPage(): omit the upper bound check on
page number if the page is already in cache. (CVS 5716)
FossilOrigin-Name:
badd0873e6dffac9463b06a381b9f797a54d33e9
drh [Wed, 17 Sep 2008 20:06:26 +0000 (20:06 +0000)]
Speed improvements for in-memory databases by omitting flag clearing on pages
where it is impossible for the flag to be set and by avoiding assert()s on
non-debugging builds. Ticket #3384. (CVS 5715)
FossilOrigin-Name:
a7fd9e622bc1050e78f227ec42b6ba90c87c865a
danielk1977 [Wed, 17 Sep 2008 16:14:10 +0000 (16:14 +0000)]
Changes to test scripts to support running on symbian. (CVS 5714)
FossilOrigin-Name:
6ef34e9d3118965781c69011deaede1ebbb19b12
danielk1977 [Wed, 17 Sep 2008 11:02:57 +0000 (11:02 +0000)]
Add a type identifier to argument sz to sqlite3PageMalloc() in pcache.c. Ticket #3383. (CVS 5713)
FossilOrigin-Name:
94fde77b9a4efde5f7fb2a84fedaf38b0ebbac70
drh [Wed, 17 Sep 2008 00:13:12 +0000 (00:13 +0000)]
Fix for tickets #3378 and #3381 that preserves the aliasing optimization.
And yet, this fix feels uncomfortable. Seeking an alternative... (CVS 5712)
FossilOrigin-Name:
f8b759f1977915c314be874840ebf18e6bc69b57
drh [Tue, 16 Sep 2008 18:02:47 +0000 (18:02 +0000)]
Add test cases for ticket #3378 and #3381. Add a temporary hack to get those
to problems fixed. The hack causes failures in alias.test, but those are much
less serious than the aforementioned tickets. This is a stop-gap until we can
figure out a proper fix. (CVS 5711)
FossilOrigin-Name:
a67da9dd2ff6acc163de4ce2b836b03e3f159a88
danielk1977 [Tue, 16 Sep 2008 15:55:55 +0000 (15:55 +0000)]
Initialize variable pKeyDup in multiSelectOrderBy(). Technically it doesn't need to be initialized, but the reasoning required to come to that conclusion is too complicated for some automated systems. So it is initialized to keep some compilers happy. Ticket #3382. (CVS 5710)
FossilOrigin-Name:
bd58be6ecf0a22f3c8404bd7094ab5e13e19b1c4
danielk1977 [Tue, 16 Sep 2008 15:50:11 +0000 (15:50 +0000)]
Use (file nativename (pwd)) instead of just (pwd) to find the name of the current directory to pass to "PRAGMA temp_store_directory" in pragma.test. This helps the test pass on non-unix systems. (CVS 5709)
FossilOrigin-Name:
50feaa3707f4f61202bc855802ab2e405365d801
drh [Tue, 16 Sep 2008 15:09:53 +0000 (15:09 +0000)]
Add test script selectC.test which demonstrates ticket #3381. (CVS 5708)
FossilOrigin-Name:
3847faff55d4bd7574785c3b18d5c95e687c7598
danielk1977 [Tue, 16 Sep 2008 14:38:02 +0000 (14:38 +0000)]
If the xAccess() call used by "PRAGMA temp_store_directory = /new/path/" to determine if the supplied directory is writable returns an error, assume the directory is not writable. (CVS 5707)
FossilOrigin-Name:
e8418588f2c23487cefda702849d4546202fd8ec
danielk1977 [Tue, 16 Sep 2008 12:06:08 +0000 (12:06 +0000)]
Modify the sqlite3VdbeMemCompare() routine so that it does not modify any Mem.z values. Ticket #3376. (CVS 5706)
FossilOrigin-Name:
2d4505510032bf903a9c5d582edda442a0592c77
drh [Tue, 16 Sep 2008 11:58:20 +0000 (11:58 +0000)]
Add test case for ticket #3376. (CVS 5705)
FossilOrigin-Name:
c64260579d353df3eae8c355b082b8206bc6185b
danielk1977 [Tue, 16 Sep 2008 09:09:19 +0000 (09:09 +0000)]
Set the type of the "comment" field to SQLITE_TEXT when outputing the results of an EXPLAIN query. (CVS 5704)
FossilOrigin-Name:
5dff20f4bc8d98017e76d3a771ab49310bddda63
danielk1977 [Tue, 16 Sep 2008 05:12:24 +0000 (05:12 +0000)]
Do not attempt to change the page size after a pager has entered the error state (Pager.errCode!=SQLITE_OK). This prevents an assertion failure in vacuum3.test. (CVS 5703)
FossilOrigin-Name:
aa5c9455be961e712d5c56de8d699adabb186cdc
danielk1977 [Mon, 15 Sep 2008 15:49:34 +0000 (15:49 +0000)]
Minor comment change to test_async.c. No code changes. (CVS 5702)
FossilOrigin-Name:
b134106000e2e694cf5e1e5ae2f5b1e2956ee74a
drh [Mon, 15 Sep 2008 15:36:57 +0000 (15:36 +0000)]
Adjust the page recycling algorithm so that the number of pages allocated
to each connection does not exceed its cache_size limit. (CVS 5701)
FossilOrigin-Name:
3bc221b940565133ae8d95f59b3b120e57df0124
danielk1977 [Mon, 15 Sep 2008 14:47:21 +0000 (14:47 +0000)]
Fix the async.test test script so that it invokes (finish_test) even if the asynchronous backend is not included in the build (and no tests are run). (CVS 5700)
FossilOrigin-Name:
5c954b40ecb71203b1013c23cdac54ff83484b0a
danielk1977 [Mon, 15 Sep 2008 14:42:38 +0000 (14:42 +0000)]
Fix the shared_err.test script so that it works if the device supports SQLITE_IOCAP_SAFEAPPEND. (CVS 5699)
FossilOrigin-Name:
38e5ea070a38fe1656e0f5c3024f28ce67eae725
danielk1977 [Mon, 15 Sep 2008 14:08:04 +0000 (14:08 +0000)]
Modify test_async.c to avoid using internal SQLite APIs. There are still some comments that need updating. (CVS 5698)
FossilOrigin-Name:
1d4fcaafd058bf1b726378e9ec308ecd8130fe1b
danielk1977 [Mon, 15 Sep 2008 04:20:31 +0000 (04:20 +0000)]
Check if error code ENOTSUP is supported before using it. Ticket #3375. (CVS 5697)
FossilOrigin-Name:
c32cb106c5d68e98f51f1eaf9ae0e2a3c36d00d6
drh [Sat, 13 Sep 2008 01:20:14 +0000 (01:20 +0000)]
Fix issues with bizarrely quoted column names. Tickets #3370, #3371,
and #3372. (CVS 5696)
FossilOrigin-Name:
ced6bbd228b4a324ddb9c5ff15fd027811c8806a
drh [Fri, 12 Sep 2008 18:25:30 +0000 (18:25 +0000)]
Fix the NEAR connector in FTS3 so that it can take ranges in excess of 9.
The maximum range is now 32767. (CVS 5695)
FossilOrigin-Name:
8e9b9553115c42dae38cad0612d98d9a0c453a5c
drh [Fri, 12 Sep 2008 16:03:47 +0000 (16:03 +0000)]
Declare the isInterrupted field of the sqlite3 structure to be volatile.
Ticket #3369. (CVS 5694)
FossilOrigin-Name:
414da4ebcecbed37177aecf649ddd3d258af260d
danielk1977 [Fri, 12 Sep 2008 10:22:40 +0000 (10:22 +0000)]
Add a case to permutations.test to run tests with the IOCAP_SAFEAPPEND property set. (CVS 5693)
FossilOrigin-Name:
80bdaafa77ec5c967f633eaaf5ee6f493a6e5a56
danielk1977 [Thu, 11 Sep 2008 11:27:59 +0000 (11:27 +0000)]
Add a couple of (fconfigure) commands to configure the incremental blob channels used by test file incrblob.test. This is required so that the tests work on windows and other platforms that have a default -translation mode other than 'lf'. (CVS 5692)
FossilOrigin-Name:
753caa20ca50bc42d747d934ccc61438790e7f32
danielk1977 [Thu, 11 Sep 2008 10:29:15 +0000 (10:29 +0000)]
Fix a couple of problems with variable initializations picked up by stricter compilers. (CVS 5691)
FossilOrigin-Name:
f4293d148007515eaf8eb9738f62554a963abe8e
danielk1977 [Wed, 10 Sep 2008 17:53:35 +0000 (17:53 +0000)]
Fix some trivial cases where database corruption was causing an error code other than SQLITE_CORRUPT to be returned. (CVS 5690)
FossilOrigin-Name:
89fda074f6b4959c32f1083badba3c73cffb4995
danielk1977 [Wed, 10 Sep 2008 14:45:57 +0000 (14:45 +0000)]
Fix for handling database files corrupted in such a was as to make a b-tree page a direct or indirect descendant of itself. (CVS 5689)
FossilOrigin-Name:
93545861a70c190d67b0d1effdd8fe038d28811c
drh [Wed, 10 Sep 2008 13:09:23 +0000 (13:09 +0000)]
Documentation updates: Describe recursion capabilities for the various
callbacks. (CVS 5688)
FossilOrigin-Name:
edd80811d702bc0d7a25199d193c04ea057df4de
danielk1977 [Wed, 10 Sep 2008 11:28:37 +0000 (11:28 +0000)]
Avoid deleting a file while it is still open in corrupt2.test. Not all platforms support this. (CVS 5687)
FossilOrigin-Name:
099adfd31167a78d803e2992e5f50cf4e292dd43
danielk1977 [Wed, 10 Sep 2008 10:57:27 +0000 (10:57 +0000)]
Fix some test script details so that the test suite runs with an SQLITE_DEFAULT_AUTOVACUUM=2 build. (CVS 5686)
FossilOrigin-Name:
300a64b725a111ee66e38de099314f03b064c6eb
danielk1977 [Tue, 9 Sep 2008 18:28:06 +0000 (18:28 +0000)]
Add fuzz3.test. For testing the library's response to corrupted database files. (CVS 5685)
FossilOrigin-Name:
7fd4dd95791974b0ef6cf30a186b32df25ee2211
drh [Tue, 9 Sep 2008 12:31:33 +0000 (12:31 +0000)]
Calling sqlite3_create_function with nArg==(-1) does not override prior
calls on the same function name with nArg>=0. Ticket #3345. Add the
new -argcount option to the "function" method in the TCL interface. (CVS 5684)
FossilOrigin-Name:
5aa5b8044a14f59559c1839dc0799b0d2f990809
danielk1977 [Mon, 8 Sep 2008 15:35:06 +0000 (15:35 +0000)]
Fix a C++ism in pager.c (variable useAtomicWrite not declard at the top of its scope). (CVS 5683)
FossilOrigin-Name:
a6dee85b823355cb381163c93c8366aa4395ae6a
danielk1977 [Mon, 8 Sep 2008 11:07:03 +0000 (11:07 +0000)]
Fix a bug in r-tree related to internal nodes with one or more dimensions of size zero. Ticket #3363. (CVS 5682)
FossilOrigin-Name:
8b600ed083d48784df4b1da1320a01bebbf233d7
danielk1977 [Mon, 8 Sep 2008 09:06:18 +0000 (09:06 +0000)]
If the 'rootpage' column of the sqlite_master table contains a NULL value, return SQLITE_CORRUPT to the caller. (CVS 5681)
FossilOrigin-Name:
a7b7b126e9e9b0cd2d68643d8dff321cf41ce2ee
danielk1977 [Mon, 8 Sep 2008 08:08:09 +0000 (08:08 +0000)]
Add header file sqliteicu.h to the ICU extension. This is analogous to the rtree.h and fts3.h headers used by other extensions to declare their entry points. Fix for ticket #3361. (CVS 5680)
FossilOrigin-Name:
79364b963b348d5433da737b4e21e97952882389
danielk1977 [Sat, 6 Sep 2008 14:19:11 +0000 (14:19 +0000)]
Deallocate a temp register allocated by codeEqualityTerm() in where.c. If it is not deallocated, its value may be reused by the column-cache mechanism. However, by the time it is used, the value may have been clobbered by a sub-routine that also uses the same temp register. Fix for #3357. (CVS 5679)
FossilOrigin-Name:
7c0f638ef3d7ff9156f07d6fb01448453ffcf5ac
danielk1977 [Fri, 5 Sep 2008 05:29:08 +0000 (05:29 +0000)]
Change pcache.test so that it works if sqlite is configured to create auto-vacuum databases by default. (CVS 5678)
FossilOrigin-Name:
55e677569ec131c388841f6f453291f737738076
danielk1977 [Fri, 5 Sep 2008 05:02:46 +0000 (05:02 +0000)]
Fix a problem in btree.c preventing an OOM error from being propagated up to the caller. (CVS 5677)
FossilOrigin-Name:
0b8ee83f2ebadab099ccd6490f6995949dafdd6f
danielk1977 [Thu, 4 Sep 2008 17:17:38 +0000 (17:17 +0000)]
Add support for the SQLITE_THREADSAFE=2 and SQLITE_DEFAULT_MEMSTATUS compilation options. (CVS 5676)
FossilOrigin-Name:
85c2a58901338c1c4652c2cbee51e5f48d289191
shane [Thu, 4 Sep 2008 12:03:42 +0000 (12:03 +0000)]
Missing implementation for sqlite3TransferBindings(). (CVS 5675)
FossilOrigin-Name:
56d618957571f65e88375aad34a6e7dcf22508e1
danielk1977 [Thu, 4 Sep 2008 06:22:25 +0000 (06:22 +0000)]
If SQLITE_ENABLE_LOCKING_STYLE is defined, have the os_unix.c module offer the following extra VFS implementations for explicitly selecting a locking-style: "unix-none", "unix-afp", "unix-posix", "unix-flock" and "unix-dotfile". (CVS 5674)
FossilOrigin-Name:
6e8fb64639cc7451005d9f1dd2d0ef62576abbdd
danielk1977 [Thu, 4 Sep 2008 05:53:44 +0000 (05:53 +0000)]
Temporarily revert to using sqlite3_transfer_bindings() internally. (CVS 5673)
FossilOrigin-Name:
690ff3853b4e46ac7126992c84455237e265fd98
shane [Thu, 4 Sep 2008 04:32:49 +0000 (04:32 +0000)]
Modified core to not call deprecated functions sqlite3_memory_alarm() and sqlite3_transfer_bindings() by adding sqlite3MemoryAlarm() and sqlite3TransferBindings(). sqlite3_memory_alarm() and sqlite3_transfer_bindings() are now simple wrappers for the new functions. In prep for adding SQLITE_OMIT_DEPRECATED. (CVS 5672)
FossilOrigin-Name:
821c387d159fd86cedb56c1130f0416bf5c65e6c
drh [Wed, 3 Sep 2008 17:11:16 +0000 (17:11 +0000)]
Work around an issue with the WINSCW compiler. (CVS 5671)
FossilOrigin-Name:
e333c3f4c3629dba05b58318e2cd0514843e5394
drh [Wed, 3 Sep 2008 01:08:00 +0000 (01:08 +0000)]
Make the default threading mode multithread (-nomutex) in the TCL interface. (CVS 5670)
FossilOrigin-Name:
d9e826942673ad048d611c014bfbee39ab5535c8