Commit Graph

5827 Commits

Author SHA1 Message Date
danielk1977
00a696d6d1 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
2008-09-29 16:41:31 +00:00
danielk1977
bf93c56737 Remove the MemPage.idxShift variable. It is no longer required. (CVS 5750)
FossilOrigin-Name: 7354abd03be756b1d7d0a3d5b8958f5c0c985ff5
2008-09-29 15:53:25 +00:00
danielk1977
47dd228e60 Do not run vacuum.test as part of the "exclusive" permutation test. (CVS 5749)
FossilOrigin-Name: 2fb15ae9e9af716a5684a21826814bc4c332a596
2008-09-29 14:27:41 +00:00
danielk1977
7aad2983c9 Update shared_err.test to work with (5668) (return SQLITE_CORRUPT if rollback fails). (CVS 5748)
FossilOrigin-Name: 292acaf7c4e68b532cc8d1763e02aa79d90ea20c
2008-09-29 14:12:56 +00:00
danielk1977
71d5d2cd49 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
2008-09-29 11:49:47 +00:00
vapier
d0507d691e fix #3077: use full version in pkg-config files (CVS 5746)
FossilOrigin-Name: efe095e0cb8e0f8a11fd9cc321ec83b556458bf2
2008-09-29 00:11:22 +00:00
drh
04335886a1 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
2008-09-26 21:08:08 +00:00
drh
9e2d64b8d3 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
2008-09-26 20:02:50 +00:00
danielk1977
d326064e0d Performance enhancement: avoid calling reparentChildPages() from balance_nonroot(). (CVS 5743)
FossilOrigin-Name: 28fd0a50ca8529892f5b1ababd38d494889eed6d
2008-09-26 17:31:55 +00:00
danielk1977
e5dd389698 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
2008-09-24 14:03:43 +00:00
danielk1977
f9449d0e9c 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
2008-09-24 09:58:00 +00:00
danielk1977
0afae93fa4 Fix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399. (CVS 5740)
FossilOrigin-Name: 0fb98c35353d8c0a8d669bbe45fe84e3a5060621
2008-09-24 09:12:46 +00:00
danielk1977
45e60aabc6 Catch another case where SQLITE_IOERR could be returned instead of SQLITE_NOMEM following an out-of-memory error. (CVS 5739)
FossilOrigin-Name: 18d030da0c1755aab458e5aa0d3ad0a714706d67
2008-09-23 17:39:26 +00:00
danielk1977
98c21903bd Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738)
FossilOrigin-Name: 046ef07261d520c9399bd8cdfdfd5281956b7a27
2008-09-23 16:41:29 +00:00
drh
40bbb0a3e8 Enable the LOCKING_STYLE extensions by default on a Mac. Leave them
disabled on all other posix platforms. (CVS 5737)

FossilOrigin-Name: bae1d5b16948705b7dec7b139e3586b4b510cbfa
2008-09-23 10:23:26 +00:00
drh
c21658beaa Remove an unused variable from the test logic. (CVS 5736)
FossilOrigin-Name: 309ba380d985d77419a6e185373493e043823258
2008-09-23 10:16:04 +00:00
drh
3e59c01255 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
2008-09-23 10:12:13 +00:00
drh
e2c3a659a9 Add no-op Unload entry points to the TCL interface. Ticket #3397. (CVS 5734)
FossilOrigin-Name: b31dd1e3f1d927b9236b7ebeb331268cbd253083
2008-09-23 09:58:46 +00:00
drh
9606781667 Fix for ticket #3382 was mistakenly removed by (5712). Add an assert to
prevent it from being removed again. (CVS 5733)

FossilOrigin-Name: 01d26b3df7029f7fa09231c18a7b9f9a1a967916
2008-09-23 09:36:10 +00:00
drh
4d6618f9ed 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
2008-09-22 17:54:46 +00:00
danielk1977
77eb5bb6f7 Fix a memory leak that can follow a malloc failure in sqlite3_initialize. (CVS 5731)
FossilOrigin-Name: 118dc0ba082dd9abba5602dafc86bd56e756db86
2008-09-22 17:22:19 +00:00
danielk1977
cd3b3c8902 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
2008-09-22 11:46:32 +00:00
drh
a815fd64a7 Version 3.6.3 (CVS 5729)
FossilOrigin-Name: 1634fd223d65a6ad461f79ca922b5ef967ae763d
2008-09-22 10:44:32 +00:00
danielk1977
fb8f2e2eb1 Remove unused macro Release() from vdbe.c. (CVS 5728)
FossilOrigin-Name: 915679431a70c593a83cf5e8b1dcce1555e9518e
2008-09-22 06:13:31 +00:00
drh
0db8ac43b5 Give file scope to non-API routines in pcache. Ticket #3392. (CVS 5727)
FossilOrigin-Name: 6521f98ac3a5cd2d959a9672cd07b1d25b82d559
2008-09-21 15:14:04 +00:00
danielk1977
e972e031d1 Speed up releaseMemArray() a bit by handling the most common types of memory cells inline. (CVS 5726)
FossilOrigin-Name: ce07508550da858beb0bc0763c65e6d556bb0843
2008-09-19 18:32:26 +00:00
danielk1977
d9f6c53232 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
2008-09-19 16:39:38 +00:00
danielk1977
ea89730823 In sqlite3BtreeGetMeta(), if BtShared.pPage1 is available use it instead of requesting a new reference from the pager layer. (CVS 5724)
FossilOrigin-Name: 59be34cfa4fe74f7e5b547c55d273ecba9d7796c
2008-09-19 15:10:58 +00:00
danielk1977
65e0ff3217 Remove an obsolete layer of redirection in pager.c. (CVS 5723)
FossilOrigin-Name: 75deaa442f3a363c4ea5b6f0e510306feeaa8915
2008-09-19 09:14:43 +00:00
drh
695ba06f23 Do not run the async tests if the async module is not installed. (CVS 5722)
FossilOrigin-Name: 4de71a4e2f59d302156e10efcb288efa23e18598
2008-09-18 18:18:29 +00:00
danielk1977
e08a3c4f91 Fix a segfault introduced by (5720) that can follow an IO error. (CVS 5721)
FossilOrigin-Name: 05d3462688507b61710cbda27adf61d0b0514e27
2008-09-18 18:17:03 +00:00
danielk1977
eaa06f6970 Avoid parsing the structure of b-tree pages (in sqlite3BtreeInitPage) more than is necessary. (CVS 5720)
FossilOrigin-Name: 6b998f3066754e219c266501327e5578c9406b63
2008-09-18 17:34:44 +00:00
drh
a4d1f6a83f Update the version number to 3.6.3. (CVS 5719)
FossilOrigin-Name: 419764b35c96a1b08aefc0d6093c19fdf2aef517
2008-09-18 13:49:12 +00:00
danielk1977
b11bcfde08 Changes to test script nan.test to work on symbian. (CVS 5718)
FossilOrigin-Name: 0889b22a2949160c3f2d06beaa05a867b4c228b3
2008-09-18 11:30:12 +00:00
danielk1977
3e37f5df5b Changes to test script io.test to work on symbian. (CVS 5717)
FossilOrigin-Name: 2b41c4959da2ef5a882a658e85ee34d07d31f379
2008-09-18 11:18:41 +00:00
drh
897a820f46 Performance improvements in getAndInitPage(): omit the upper bound check on
page number if the page is already in cache. (CVS 5716)

FossilOrigin-Name: badd0873e6dffac9463b06a381b9f797a54d33e9
2008-09-18 01:08:15 +00:00
drh
b3df2e1cfe 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
2008-09-17 20:06:26 +00:00
danielk1977
89bae3ed7a Changes to test scripts to support running on symbian. (CVS 5714)
FossilOrigin-Name: 6ef34e9d3118965781c69011deaede1ebbb19b12
2008-09-17 16:14:10 +00:00
danielk1977
e598bb4639 Add a type identifier to argument sz to sqlite3PageMalloc() in pcache.c. Ticket #3383. (CVS 5713)
FossilOrigin-Name: 94fde77b9a4efde5f7fb2a84fedaf38b0ebbac70
2008-09-17 11:02:57 +00:00
drh
d176611b44 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
2008-09-17 00:13:12 +00:00
drh
f44ed02790 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
2008-09-16 18:02:47 +00:00
danielk1977
05edfb62d9 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
2008-09-16 15:55:55 +00:00
danielk1977
181ddaa184 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
2008-09-16 15:50:11 +00:00
drh
ec8d24279b Add test script selectC.test which demonstrates ticket #3381. (CVS 5708)
FossilOrigin-Name: 3847faff55d4bd7574785c3b18d5c95e687c7598
2008-09-16 15:09:53 +00:00
danielk1977
fab1127bd1 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
2008-09-16 14:38:02 +00:00
danielk1977
7eae4f52ee Modify the sqlite3VdbeMemCompare() routine so that it does not modify any Mem.z values. Ticket #3376. (CVS 5706)
FossilOrigin-Name: 2d4505510032bf903a9c5d582edda442a0592c77
2008-09-16 12:06:08 +00:00
drh
5a70d286f5 Add test case for ticket #3376. (CVS 5705)
FossilOrigin-Name: c64260579d353df3eae8c355b082b8206bc6185b
2008-09-16 11:58:20 +00:00
danielk1977
1e522b498b Set the type of the "comment" field to SQLITE_TEXT when outputing the results of an EXPLAIN query. (CVS 5704)
FossilOrigin-Name: 5dff20f4bc8d98017e76d3a771ab49310bddda63
2008-09-16 09:09:19 +00:00
danielk1977
1357d9f5f7 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
2008-09-16 05:12:24 +00:00
danielk1977
3d354708a7 Minor comment change to test_async.c. No code changes. (CVS 5702)
FossilOrigin-Name: b134106000e2e694cf5e1e5ae2f5b1e2956ee74a
2008-09-15 15:49:34 +00:00
drh
b5774cfa8f 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
2008-09-15 15:36:57 +00:00
danielk1977
4ff6202642 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
2008-09-15 14:47:21 +00:00
danielk1977
78a906552d Fix the shared_err.test script so that it works if the device supports SQLITE_IOCAP_SAFEAPPEND. (CVS 5699)
FossilOrigin-Name: 38e5ea070a38fe1656e0f5c3024f28ce67eae725
2008-09-15 14:42:38 +00:00
danielk1977
92c4b8a2ca Modify test_async.c to avoid using internal SQLite APIs. There are still some comments that need updating. (CVS 5698)
FossilOrigin-Name: 1d4fcaafd058bf1b726378e9ec308ecd8130fe1b
2008-09-15 14:08:04 +00:00
danielk1977
5ad6a88f59 Check if error code ENOTSUP is supported before using it. Ticket #3375. (CVS 5697)
FossilOrigin-Name: c32cb106c5d68e98f51f1eaf9ae0e2a3c36d00d6
2008-09-15 04:20:31 +00:00
drh
f018cc2ef0 Fix issues with bizarrely quoted column names. Tickets #3370, #3371,
and #3372. (CVS 5696)

FossilOrigin-Name: ced6bbd228b4a324ddb9c5ff15fd027811c8806a
2008-09-13 01:20:14 +00:00
drh
8578611b95 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
2008-09-12 18:25:30 +00:00
drh
39001e7525 Declare the isInterrupted field of the sqlite3 structure to be volatile.
Ticket #3369. (CVS 5694)

FossilOrigin-Name: 414da4ebcecbed37177aecf649ddd3d258af260d
2008-09-12 16:03:47 +00:00
danielk1977
755339ec0f Add a case to permutations.test to run tests with the IOCAP_SAFEAPPEND property set. (CVS 5693)
FossilOrigin-Name: 80bdaafa77ec5c967f633eaaf5ee6f493a6e5a56
2008-09-12 10:22:40 +00:00
danielk1977
540cf6a192 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
2008-09-11 11:27:59 +00:00
danielk1977
55a25a1201 Fix a couple of problems with variable initializations picked up by stricter compilers. (CVS 5691)
FossilOrigin-Name: f4293d148007515eaf8eb9738f62554a963abe8e
2008-09-11 10:29:15 +00:00
danielk1977
67fd7a9a98 Fix some trivial cases where database corruption was causing an error code other than SQLITE_CORRUPT to be returned. (CVS 5690)
FossilOrigin-Name: 89fda074f6b4959c32f1083badba3c73cffb4995
2008-09-10 17:53:35 +00:00
danielk1977
9f580ad886 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
2008-09-10 14:45:57 +00:00
drh
c807542bcf Documentation updates: Describe recursion capabilities for the various
callbacks. (CVS 5688)

FossilOrigin-Name: edd80811d702bc0d7a25199d193c04ea057df4de
2008-09-10 13:09:23 +00:00
danielk1977
38816ecf99 Avoid deleting a file while it is still open in corrupt2.test. Not all platforms support this. (CVS 5687)
FossilOrigin-Name: 099adfd31167a78d803e2992e5f50cf4e292dd43
2008-09-10 11:28:37 +00:00
danielk1977
f8b10a855e Fix some test script details so that the test suite runs with an SQLITE_DEFAULT_AUTOVACUUM=2 build. (CVS 5686)
FossilOrigin-Name: 300a64b725a111ee66e38de099314f03b064c6eb
2008-09-10 10:57:27 +00:00
danielk1977
f2fb044bca Add fuzz3.test. For testing the library's response to corrupted database files. (CVS 5685)
FossilOrigin-Name: 7fd4dd95791974b0ef6cf30a186b32df25ee2211
2008-09-09 18:28:06 +00:00
drh
e3602be8fd 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
2008-09-09 12:31:33 +00:00
danielk1977
4d60af9b0b Fix a C++ism in pager.c (variable useAtomicWrite not declard at the top of its scope). (CVS 5683)
FossilOrigin-Name: a6dee85b823355cb381163c93c8366aa4395ae6a
2008-09-08 15:35:06 +00:00
danielk1977
b9134e3e84 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
2008-09-08 11:07:03 +00:00
danielk1977
ff9b2e75b4 If the 'rootpage' column of the sqlite_master table contains a NULL value, return SQLITE_CORRUPT to the caller. (CVS 5681)
FossilOrigin-Name: a7b7b126e9e9b0cd2d68643d8dff321cf41ce2ee
2008-09-08 09:06:18 +00:00
danielk1977
1c82665040 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
2008-09-08 08:08:09 +00:00
danielk1977
fdd8e5bab8 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
2008-09-06 14:19:11 +00:00
danielk1977
f7cbfae96a Change pcache.test so that it works if sqlite is configured to create auto-vacuum databases by default. (CVS 5678)
FossilOrigin-Name: 55e677569ec131c388841f6f453291f737738076
2008-09-05 05:29:08 +00:00
danielk1977
518002e4ba Fix a problem in btree.c preventing an OOM error from being propagated up to the caller. (CVS 5677)
FossilOrigin-Name: 0b8ee83f2ebadab099ccd6490f6995949dafdd6f
2008-09-05 05:02:46 +00:00
danielk1977
0a732f59b0 Add support for the SQLITE_THREADSAFE=2 and SQLITE_DEFAULT_MEMSTATUS compilation options. (CVS 5676)
FossilOrigin-Name: 85c2a58901338c1c4652c2cbee51e5f48d289191
2008-09-04 17:17:38 +00:00
shane
145834a44f Missing implementation for sqlite3TransferBindings(). (CVS 5675)
FossilOrigin-Name: 56d618957571f65e88375aad34a6e7dcf22508e1
2008-09-04 12:03:42 +00:00
danielk1977
73245a7818 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
2008-09-04 06:22:25 +00:00
danielk1977
c9e90daf62 Temporarily revert to using sqlite3_transfer_bindings() internally. (CVS 5673)
FossilOrigin-Name: 690ff3853b4e46ac7126992c84455237e265fd98
2008-09-04 05:53:44 +00:00
shane
4a27a28635 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
2008-09-04 04:32:49 +00:00
drh
106cee5498 Work around an issue with the WINSCW compiler. (CVS 5671)
FossilOrigin-Name: e333c3f4c3629dba05b58318e2cd0514843e5394
2008-09-03 17:11:16 +00:00
drh
cc91e7f83e Make the default threading mode multithread (-nomutex) in the TCL interface. (CVS 5670)
FossilOrigin-Name: d9e826942673ad048d611c014bfbee39ab5535c8
2008-09-03 01:08:00 +00:00
drh
039963ad33 Add support for SQLITE_OPEN_FULLMUTEX. (CVS 5669)
FossilOrigin-Name: f2f361a5e2fb81fb0f99e83ecf8bae9a750723b1
2008-09-03 00:43:15 +00:00
drh
a9625eaeb9 If a rollback fails, mark the database as corrupt. (CVS 5668)
FossilOrigin-Name: c8b24bd1be94b6d385e759a2f9e202be066578a0
2008-09-03 00:08:29 +00:00
drh
afacce0a4d API documentation updates for threading mode. (CVS 5667)
FossilOrigin-Name: fa237c14c8551315ea8f239e89a81b7725675c81
2008-09-02 21:35:03 +00:00
danielk1977
23bf0f41ea Explicitly initialize at least the first field of every struct. This is to work around compilers that don't like the syntax "struct XXX { ... } yyy = {};". (CVS 5666)
FossilOrigin-Name: 88bfdc87471e65ac5a262a794b8cdf3e563eb327
2008-09-02 17:52:51 +00:00
danielk1977
95e80d61af Fix the position of the SQLITE_WSD macro in the declaration of global variable vfsList. (CVS 5665)
FossilOrigin-Name: e869446119724b9b1568b1f8e56e9f29ff6d3816
2008-09-02 17:18:51 +00:00
danielk1977
a8f83bfc77 Fine tune the hard-coded values passed to sqlite3_init_wsd(). (CVS 5664)
FossilOrigin-Name: af5763eb65baa791a38f7e235624e4f63beac104
2008-09-02 16:22:28 +00:00
danielk1977
a4de4532dd Add an extra 'const' qualifier to two arrays (in func.c and pragma.c) to ensure that they do not consume space in the data segment of the compiled object files. (CVS 5663)
FossilOrigin-Name: 43f757c9f01ccc6e6c7a404fbeb74f825f7a29ca
2008-09-02 15:44:08 +00:00
danielk1977
502b4e00c6 Move the sqlite3SharedCacheEnabled global and the inProgress static variable (function sqlite3_initialize()) into the global sqlite3Config structure. This is required for the OMIT_WSD feature to work on some platforms. (CVS 5662)
FossilOrigin-Name: 88c82759946910b5ffdd5febc17356403f986c2e
2008-09-02 14:07:24 +00:00
danielk1977
263ac19474 Add a 'const' to the opcodeProperty array in vdbe.c. (CVS 5661)
FossilOrigin-Name: 29c9a80294398a349bc7cf0fb84cd4ef8a9e2f60
2008-09-02 11:05:01 +00:00
danielk1977
5c8f858790 Change some more global variables to work with OMIT_WSD. (CVS 5660)
FossilOrigin-Name: 46acaf58e11ebe69e4fb5f171d3ee29f056d8e68
2008-09-02 10:22:00 +00:00
danielk1977
5b775295f0 Modify pcache.c to work with OMIT_WSD. (CVS 5659)
FossilOrigin-Name: 44def90d1bd4e37ab162e16f83e23d32e86b78ab
2008-09-02 09:38:06 +00:00
drh
78f82d1e6c Continuing work on adding full support for the SQLITE_OMIT_WSD
compile-time option. (CVS 5658)

FossilOrigin-Name: ef26ea5c46d3915d206f8ff7f82a24f4c8955f1f
2008-09-02 00:52:52 +00:00
shane
171fa295c3 Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657)
FossilOrigin-Name: e0461f8755daa9f57e056810de9ea347ff8dd986
2008-09-01 22:15:18 +00:00
shane
a8b34b5630 Added (_MSC_VER>1200) to SQLITE_DEPRECATED and SQLITE_EXPERIMENTAL defines since __declspec(deprecated) isn't supported by VC 6 or earlier. Ticket #3347. (CVS 5656)
FossilOrigin-Name: 4bcaed08a1b50aef9f4f8a447a35d8678df92050
2008-09-01 22:06:23 +00:00
shane
fa4e62f3d8 Omit prototype for and calls to sqlite3MaterializeView() if !defined(SQLITE_OMIT_VIEW) && !defined(SQLITE_OMIT_TRIGGER). (CVS 5655)
FossilOrigin-Name: 9cf484fc17944ffa14335e391112d82d2390d116
2008-09-01 21:59:42 +00:00
shane
689aa852cb Converted strcasecmp to sqlite3StrICmp. Test code only. (CVS 5654)
FossilOrigin-Name: bdeefe37602f8b0cd7c63a8c1e52de319cc51bea
2008-09-01 20:38:12 +00:00
danielk1977
93ce741ba5 Modify the aBuiltinFunc array in func.c to use the WSD macros. (CVS 5653)
FossilOrigin-Name: 846fff5f0902418cfce2915d2ccfe567481a1289
2008-09-01 19:14:02 +00:00
danielk1977
075c23af26 Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652)
FossilOrigin-Name: 573d92abb9adb1c321ebc2fcadcf14374213b093
2008-09-01 18:34:20 +00:00
drh
cb275be4b1 Remove an unused function declaration from a header file. Ticket #3349. (CVS 5651)
FossilOrigin-Name: 7a577428b22918c232815e7998a623dbc47a8d41
2008-09-01 17:23:29 +00:00
drh
588a9a1a1c Defer deleting Table objects associated with flattened subqueries until
all code has been generated, in case some expression node still references
the Table object.  Ticket #3346. (CVS 5650)

FossilOrigin-Name: d04d70336727a0db959c672e6c22cdaa0505dce5
2008-09-01 15:52:10 +00:00
danielk1977
865d4d4290 Have the rtree module set the estimatedCost output variable. Ticket #3312. (CVS 5649)
FossilOrigin-Name: 483932c4e08901a11b7ab671073fd0a048b10d66
2008-09-01 12:46:59 +00:00
shane
f5eccb6925 Changed to used sqlite3_snprintf instead of snprintf (test code only). (CVS 5648)
FossilOrigin-Name: d68791e35d13f5ae4befeb0bb5f8ccaf14fd3763
2008-08-31 00:29:08 +00:00
drh
22f1d5f952 Version 3.6.2 (CVS 5647)
FossilOrigin-Name: 88c51b9f1579707a8ec394eba61539fabd725e2a
2008-08-30 16:34:19 +00:00
drh
5393b651c6 Run permutation subtests in sorted order. (CVS 5646)
FossilOrigin-Name: 4cd1bdf3ce8077e10dcd8ae4fe2df0dd9bb0f56b
2008-08-30 16:07:03 +00:00
danielk1977
c1def3e0af Add some code to permutations.test to make sure no test file modifies the shared-cache setting. (CVS 5645)
FossilOrigin-Name: 8565b7c66525dc7808a2a266deb1a0d995c99917
2008-08-30 13:25:10 +00:00
danielk1977
3dbb0572d7 Make sure thread003.test waits for all spawned threads to finish before continuing. (CVS 5644)
FossilOrigin-Name: 87c7e82f54cd446721d553d5c48ca2571b063669
2008-08-30 09:10:16 +00:00
rse
4eb8e1b9f2 remove private declaration of sqlite3_snprintf() in sqliteInt.h as there is already a public declaration in sqlite3.h (CVS 5643)
FossilOrigin-Name: 4113e778be7a1e3e7a67583913e137c66d88a190
2008-08-29 18:42:30 +00:00
rse
d07bc4f58e remove a doubled function declaration (the second just is just two lines below) (CVS 5642)
FossilOrigin-Name: e5793110d5e3b8bc4d139fc21f0962ccd48cf10c
2008-08-29 18:40:15 +00:00
danielk1977
8183e339d0 Move a call to sqlite3_mutex_leave() to protect calls to sqlite3StatusAdd() related to scratch (SQLITE_CONFIG_SCRATCH) memory. (CVS 5641)
FossilOrigin-Name: 4e011ddf9e483e3f7c7427205e50f7c3e5616790
2008-08-29 17:56:12 +00:00
danielk1977
7a1d17f1d7 Modify tclsqlite.test so that it works reliably with tcl 8.5.4. (CVS 5640)
FossilOrigin-Name: 790d329f5d18d361a5d6d34f46c269f8b4057cd9
2008-08-29 15:54:56 +00:00
danielk1977
34c61e68ad In permutations.test, disable tests that depend on soft-heap-limit functionality when running the memsubsys2 variant. It disables the soft-heap-limit. (CVS 5639)
FossilOrigin-Name: 047c7bdb9f37462c462071334f1cb9d3400917db
2008-08-29 12:00:20 +00:00
danielk1977
062d4cb0ae If a page is made eligible for recycling when more than the configured maximum number of pages are allocated, free it immediately instead of adding it to the LRU list. (CVS 5638)
FossilOrigin-Name: 4b12922dcb4547bf3a7276d0542b2e1d12ad338d
2008-08-29 09:10:02 +00:00
drh
8b213899e8 Avoid reevaluating WHERE and ORDER BY expressions that alias terms in the
result set.  Ticket #3343.  Note that aliased GROUP BY expressions are still
evaluated twice. (CVS 5637)

FossilOrigin-Name: ab0292caa5887cc1bdc0e8c9d3f3502b83975440
2008-08-29 02:14:02 +00:00
danielk1977
3fb120cb9d Fix ioerr5.test so that it works with the new pcache module. (CVS 5636)
FossilOrigin-Name: 83e6a75e7d70b4b01f0892924d7a8a49d5ef6bf2
2008-08-28 18:35:34 +00:00
drh
570f5c7d70 Partial fix for a bug in recovery from xStress failures in pcache. (CVS 5635)
FossilOrigin-Name: 44193b92770062271711570d8532fa5af5f5da54
2008-08-28 17:46:18 +00:00
danielk1977
81fa193a66 Avoid using (clock seconds) in thread003.test. It is not available if testfixture is linked to tcl 8.5. (CVS 5634)
FossilOrigin-Name: b606263d0868aed267bcec623b9fe4d142099145
2008-08-28 13:55:10 +00:00
danielk1977
3725c3ffa2 Use ckfree() instead of sqlite3_free() to free an allocation made by ckalloc() in test_thread.c (test code only). (CVS 5633)
FossilOrigin-Name: 677ac144c8f7e2722fdf05da1431919d6a8bb45f
2008-08-28 13:15:49 +00:00
danielk1977
29e2d6a5e6 Fix mutex related bug in pcache.c to do with handling IO errors. (CVS 5632)
FossilOrigin-Name: 5e304fed275137f98be56f475504422d1f5113a4
2008-08-28 11:12:09 +00:00
danielk1977
f599a1994c Enable the disabled asserts added by (5629). Add extra tests to thread003.test. And the required modifications to pcache.c. (CVS 5631)
FossilOrigin-Name: 473c09fac22ed2f56ea86150a60b9f0f2263c889
2008-08-28 10:21:16 +00:00
danielk1977
51d2d03636 Fix a threads/mutex problem in pcache.c. (CVS 5630)
FossilOrigin-Name: 1928f15b78eee0fbf0a8ecdbbdd38dbbde2942b8
2008-08-28 08:31:48 +00:00
drh
a85f7e36e8 Miscellaneous cleanup in the new pcache code. (CVS 5629)
FossilOrigin-Name: da1777259f53c2e20c7ced06bf6f2a550f0ea0fc
2008-08-28 02:26:07 +00:00
danielk1977
59633aeec2 If any error occurs during sqlite3_open(), move the database handle into "sick" state. When in the sick state the user can use sqlite3_errcode() and sqlite3_errmsg(), but not much else. (CVS 5628)
FossilOrigin-Name: ce9c74eaab459ddde213c828e821940f5d6cb354
2008-08-27 19:01:57 +00:00
drh
255538e947 Add the trans2.test script designed to stress statement rollback and
no-write optimizations on large transactions with a small cache. (CVS 5627)

FossilOrigin-Name: 39c34e2238c27b2a2f4f0b896126ccbd299114c5
2008-08-27 18:56:36 +00:00
drh
c13148ffc0 Do not mark pages as clean when doing a statement journal rollback. (CVS 5626)
FossilOrigin-Name: 9d7722f4f357b96c37f950024f1e7e160e2c1252
2008-08-27 18:03:20 +00:00
danielk1977
468c82bc50 Modifications to malloc5.test to account for the fact that sqlite3_release_memory() no longer reclaims dirty pages. (CVS 5625)
FossilOrigin-Name: b01c65b065c62e3dd71e88866a953668b5e2f25f
2008-08-27 16:38:56 +00:00
drh
8af6906348 Clear the $result variable prior to using it in corrupt2.test. (CVS 5624)
FossilOrigin-Name: 12f2d24f88e55d170dd7750e7904ff14e84e820e
2008-08-27 16:14:20 +00:00
drh
65aa957a88 In the test logic: load the md5sum() SQL function as a separate
autoloaded extension. (CVS 5623)

FossilOrigin-Name: d4438251dd66c4168e09eb421a8c2081228357dd
2008-08-27 15:21:33 +00:00
danielk1977
a1fa00d95f Use a bitvec object to store the set of pages with the 'always-rollback' property for a transaction. (CVS 5622)
FossilOrigin-Name: 9e9325997e11a0368721ed7860f4c37de3502a9b
2008-08-27 15:16:33 +00:00
drh
e5767a33e5 Remove obsolete file: md5.c. This file had been removed years ago. It is
unclear how it got back into the repository. (CVS 5621)

FossilOrigin-Name: 45fc70bd9264d5bcd72c97017079ced4aac7729f
2008-08-27 13:31:09 +00:00
danielk1977
4abdfa45db Remove unreachable branches from pcache.c. (CVS 5620)
FossilOrigin-Name: 7de32498b349e046c5c886de255bbdefd6a7e8f7
2008-08-27 09:44:39 +00:00
drh
426c854102 Fix an issue with the permutation test script. (CVS 5619)
FossilOrigin-Name: 2e12aa3e078c0da9e418ff1f25a08f05cd03c07d
2008-08-26 23:08:04 +00:00
drh
1f1549f8f3 In the TCL interface, disable the authorizer when during a BEGIN, COMMIT,
or ROLLBACK associated with the transaction method. Ticket #3336. (CVS 5618)

FossilOrigin-Name: 7e1032ab0031ba535f37b6338a3ac81cb1449d76
2008-08-26 21:33:34 +00:00
drh
7426f864ae All the page_size pragma to change the page size on a new :memory: database,
but not a vacuumed :memory: database.  Ticket #3335 (CVS 5617)

FossilOrigin-Name: 226a9056783247679fcf442e10807a1f2707f463
2008-08-26 21:07:26 +00:00
danielk1977
29f55ae1e4 Disable some very expensive asserts in pcache.c that are too slow for all.test. (CVS 5616)
FossilOrigin-Name: 555dad900fad874099556d44c464ea9f64687ca0
2008-08-26 19:07:59 +00:00
danielk1977
d491e1bfd1 Simplify the pcache module by only recycling clean pages from 'other' caches. This commit causes errors in test files ioerr5.test and malloc5.test because they test recycling dirty pages from other caches. (CVS 5615)
FossilOrigin-Name: 9e511e161bcb077450d31fca5dd20c2557f103b3
2008-08-26 18:05:48 +00:00
drh
1a4e3162d9 Implement a "counter" SQL function that can be used to insert a sequence
number each row of a result set.  Currently in the test harness only, but
a candidate to move into the core. (CVS 5614)

FossilOrigin-Name: c84d46c71233bbf869513f433b1d18cbd7f2a35e
2008-08-26 14:42:14 +00:00
drh
229cf702f0 Do not flatten subqueries where the subquery has a LIMIT and the outer
query has a WHERE clause.  Ticket #3334. (CVS 5613)

FossilOrigin-Name: 4995a1d1c9530be9ce647d338169620cd95a72eb
2008-08-26 12:56:14 +00:00
drh
c178ba88a4 Add the SQLITE_OPEN_FULLMUTEX definition to sqlite3.h. It currently is not
valid for anything.  This is merely to reserve the number. (CVS 5612)

FossilOrigin-Name: 3b6ffb4492b6c43897692c49dcccbfb55963a46c
2008-08-25 21:23:01 +00:00
drh
df81a25abe Fix obscure permutation test problems. (CVS 5611)
FossilOrigin-Name: aa92a1bec3d6bbcc59680ba13fed51ada9249d4c
2008-08-25 19:09:01 +00:00
drh
0a846f96ef Fix bug in the premutation testing that was causing many permutations from
begin skipped.  There are now 16 errors reported by the permutation test. (CVS 5610)

FossilOrigin-Name: 4ad096bda1fc5c7b66f71ff5b32a4085c9a40574
2008-08-25 17:23:29 +00:00
danielk1977
502b74309a Pick up a small performance increase by eliminating the pcacheRef() function. (CVS 5609)
FossilOrigin-Name: e3840fbf0adf824941a4b9b3cac3a869f195d6f8
2008-08-25 14:49:42 +00:00
drh
f436620e3f Additional coverage testing in the new name resolver module. (CVS 5608)
FossilOrigin-Name: 0d61960afd35721d6d07acd75288c20d2cd6fda1
2008-08-25 12:14:08 +00:00
drh
4d9f9e64c9 Two if statements should be asserts. GCC was silently ignoring them,
hence the problem did not show up in coverage testing.
Ticket #3333. (CVS 5607)

FossilOrigin-Name: 635933b1cae6c43656260555089952e2925c3292
2008-08-25 12:08:22 +00:00
danielk1977
daca5433a0 Fix a segfault that can occur when running integrity_check on a corrupt db. (CVS 5606)
FossilOrigin-Name: eae959ede1b2b50190c60de9249cf141c3031ce2
2008-08-25 11:57:16 +00:00
danielk1977
8c20014a0a If the sector size is greater than the database page size, SQLite journals all pages that lie within a sector before writing to any of them. This change ensure that a journal sync does not occur halfway through journalling the set of pages that belong to a single sector. (CVS 5605)
FossilOrigin-Name: 16f612d61e00938f29ecae4ebfe598be7a8709a8
2008-08-25 07:12:28 +00:00
danielk1977
33e3216a3d Instead of marking a page as clean when sqlite3PagerDontWrite() is called, set a dedictated flag - PGHDR_DONT_WRITE. (CVS 5604)
FossilOrigin-Name: a323bd29a600abddbcc2cc9961ab84d82cccc5e5
2008-08-23 18:53:08 +00:00
danielk1977
06249db141 Do not incorrectly detect corruption when an auto-vacuum database is converted to a non-auto-vacuum database within a vacuum. Ticket #3332. (CVS 5603)
FossilOrigin-Name: cb869946d68f2abbd1322fababbe4aa74a4e08aa
2008-08-23 16:17:55 +00:00
aswift
f54b1b341b quieting compiler warning about pointer/int conversion size mismatch (CVS 5602)
FossilOrigin-Name: f8a70501c234545b3030144ac6bcbfaa0d2b0069
2008-08-22 18:41:37 +00:00
drh
ee76c61657 Remove dead code. (CVS 5601)
FossilOrigin-Name: 6de9c084fc533fbb22af6a4cd3e4e9a461b13876
2008-08-22 17:34:45 +00:00
pweilbacher
87a03282b1 add legacy.lo back (in alphabetical order) (CVS 5600)
FossilOrigin-Name: a861aa73c4913c468315e6b5c5a2706150082280
2008-08-22 17:28:45 +00:00
danielk1977
ed2781e3c8 Relinquish the pcache mutex before calling an xStress callback. This ensures that the pcache mutex is never held while IO is performed. (CVS 5599)
FossilOrigin-Name: 8fe234b2ca1292955162d38922a45c93004fb6ae
2008-08-22 17:09:49 +00:00
drh
9d8b3072ce Enhanced test coverage. (CVS 5598)
FossilOrigin-Name: cc36b4e016a1f519ca81d591de3a551ee8aa6813
2008-08-22 16:29:51 +00:00
danielk1977
a858aa2e8c When recycling a page, try to find one that does not require a call to xSync() on the journal file. Also simplify some of the mutex related things in pcache. (CVS 5597)
FossilOrigin-Name: 93dbc5427bebaa0b3d726731027caad3f70611c7
2008-08-22 16:22:17 +00:00
drh
709b8cb434 Make sure the function context is fully initialized before invoking the
function finalizer.  Ticket #3326. (CVS 5596)

FossilOrigin-Name: 8496f4a00a7e62006956e58f3d50c6c4de5347e4
2008-08-22 14:41:00 +00:00
drh
9bc467267b Remove unused variable from printf.c. Ticket #3331. (CVS 5595)
FossilOrigin-Name: 7fd11f4ad8774e68f0a053eb2e1dd962a024da48
2008-08-22 14:08:35 +00:00
pweilbacher
dac8e249af remove OS/2 compiler flags that aren't really necessary (CVS 5594)
FossilOrigin-Name: b688c68c3d70dc69adc2d1a08ddcf5899a115646
2008-08-22 13:58:55 +00:00
pweilbacher
e7c8a5c75d fix some tests to take the right branch on OS/2 (hope I got the Tcl syntax right) (CVS 5593)
FossilOrigin-Name: 10e62d4700c99faf07140a8204d3cd81481206ac
2008-08-22 13:57:39 +00:00
pweilbacher
7fc76d8c5a Hide (for non-debugging builds) and remove DELETEONCLOSE files on OS/2, following the Windows example. Ticket #3328. (CVS 5592)
FossilOrigin-Name: 8aaa77000fb86fe512405a0ad40cb08678a12198
2008-08-22 13:47:56 +00:00
drh
281b21daa6 Fix nuisance compiler warnings. Ticket #3309. (CVS 5591)
FossilOrigin-Name: 2a365e29944f9fd45ca2903875a8c2e2759c9492
2008-08-22 12:57:08 +00:00
drh
f388dc19e6 Add test case to verify that Ticket #3301 was fixed by (5569) (CVS 5590)
FossilOrigin-Name: 73b260686264a31f43211efb235e4e0121115a50
2008-08-22 12:46:45 +00:00
drh
2a5d825ea2 Allow the WHERE clause in an UPDATE or DELETE against a view with an
INSTEAD OF trigger to refer to the view by name.  Ticket #3298. (CVS 5589)

FossilOrigin-Name: 7360e5d1f37ed6672f336b625b3c90d060e0a020
2008-08-22 12:30:52 +00:00
drh
f489c45a63 Fix os_unix.c so that it will compile on Linux again. (CVS 5588)
FossilOrigin-Name: 2416708208357304904e38b2d36081a1adf5e44b
2008-08-22 00:47:53 +00:00
aswift
831045dd33 Deferring file descriptor closing to avoid trashing locks when directly manipulating sqlite db file contents (causes errors on AFP testing) (CVS 5587)
FossilOrigin-Name: e28a2870b49509502529892ff8ddb9fcf3a27173
2008-08-22 00:25:52 +00:00
aswift
5b1a256663 Added SQLITE_IOERR_LOCK extended error code and support for detecting and returning errors in the os_unix lock, unlock and check reserved lock variants, also added support for populating and returning system error codes so that they can be accessed via xGetLastError, unfortunately xGetLastError can't seem to access the unixFile structure where the lastErrno is recorded. (CVS 5586)
FossilOrigin-Name: c1af14e2b6bf5af0aff3df3adbe8cb9aabe1c4a3
2008-08-22 00:22:35 +00:00
drh
777c5386c3 Move date+time functions to start-time initialization. Additional
start-time function cleanup. (CVS 5585)

FossilOrigin-Name: 80d6a31cb3851704c09ac9d99fe4bc241df3c180
2008-08-21 20:21:34 +00:00
drh
cb6d50e100 Remove references to OP_MoveTo in comments of vdbe.c - that opcode no
longer exists.  Ticket #3327. (CVS 5584)

FossilOrigin-Name: 30077ece459b515338723ca0dab11c18b9f09d21
2008-08-21 19:28:30 +00:00
drh
70a8ca3c1e Initialize the global built-in function table at start-time
instead of at compile-time.  This is less prone to malfunction when
compile-time parameters very. (CVS 5583)

FossilOrigin-Name: ef6936e50adb9ebea39c890167403fff01bbb5ed
2008-08-21 18:49:27 +00:00
danielk1977
801880f66c Fix soft-heap-limit related test suite failures. (CVS 5582)
FossilOrigin-Name: 2091d9a5260b1d7e27ff5ca93e60dae1e3b12081
2008-08-21 15:54:01 +00:00
drh
e0ae6978a1 Increase the version number in preparation for the next release. (CVS 5581)
FossilOrigin-Name: d68dad73d0a85c6213a96982d0366c790871b693
2008-08-21 15:13:43 +00:00
drh
f0209f7410 Make sure "rowid" columns in views are named correctly. Ticket #3308. (CVS 5580)
FossilOrigin-Name: 8593218c7c8016fbdbcc223db951751eaba9c0dd
2008-08-21 14:54:28 +00:00
drh
74073b6da8 Add test cases to verify that ticket #3314 has been fixed. (CVS 5579)
FossilOrigin-Name: b46267ff07f9b967bb7aee16b6d9dd8d0bd23f0c
2008-08-21 14:24:29 +00:00
drh
6a012f04d5 Reinsert an SCopy operation that was removed in (5523) because coverage
testing indicated that it was dead code.  Ticket #3324 shows that the
code was not as dead as we thought it was. (CVS 5578)

FossilOrigin-Name: 6855711595b58d4b6fbaf9480720b788904d0e2d
2008-08-21 14:15:59 +00:00
drh
69556698e0 Patch to mkfunction to try and detect miscompiles. Add an unimportant
assert back to pcache.c. (CVS 5577)

FossilOrigin-Name: a2f375fffb49b6f6adbfd59d24e9c6a170fd5ebb
2008-08-21 12:32:11 +00:00
danielk1977
67e3da7ad4 Fix the functionality associated with sqlite3_release_memory() and sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576)
FossilOrigin-Name: d025866b09352b32a6d35b97144eaad2fafb7165
2008-08-21 12:19:44 +00:00
danielk1977
0d3c5d3239 Move an assert() in sqlite3PcacheDirtyPage() so that it does not occur before local variable declarations. Ticket #3325. (CVS 5575)
FossilOrigin-Name: 899fa19d1ab9c40a2ffc1c5170476292d0509e33
2008-08-21 04:41:01 +00:00
danielk1977
3084952a6d Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574)
FossilOrigin-Name: 5e9559c0490b9e0395e1da4d36bd33942350978c
2008-08-21 04:35:18 +00:00
drh
23f79d061f Modify the sqlite3VdbeUnpackRecord() interface to force the temporary
space to be 8-byte aligned.  This might be important for Sparc.
Ticket #3318. (CVS 5573)

FossilOrigin-Name: 00b177985ee08f13a7781d095936da3beaf0408c
2008-08-20 22:06:47 +00:00
drh
41d3027ce8 Comment and function naming tweaks to pcache. No functionality changes. (CVS 5572)
FossilOrigin-Name: 4b0e67d397236c740bea88ad3a5912abe896322a
2008-08-20 21:47:45 +00:00
drh
7a4dde7165 Modify the lemon parser template to avoid using zero-initialized constants
when compiled with C++.  Ticket #3288. (CVS 5571)

FossilOrigin-Name: 71992f4a3723418df5f16093aec92f1f95f0b604
2008-08-20 17:48:21 +00:00
danielk1977
2da91a33cc Fix a problem in Makefile.in causing the static function hash-table to be constructed incorrectly (segfault). (CVS 5570)
FossilOrigin-Name: aef5b909e960c31527c795bc09a1de846f8afcbb
2008-08-20 17:19:09 +00:00
drh
7d10d5a6e1 Refactor the name resolution procedures in the code generator. (CVS 5569)
FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
2008-08-20 16:35:10 +00:00
danielk1977
260d8a6aec When a "pragma main.table_info(...)" is issued, consider only tables from the main database, not the temp db. Ticket #3320. (CVS 5568)
FossilOrigin-Name: d0cfbbbaeef7b8ce9f73c6cd58888989a2df5b1f
2008-08-20 16:34:24 +00:00
danielk1977
7b7e23bf65 Fix typo in main.c: SQLITE_MAX_ATTACH -> SQLITE_MAX_ATTACHED. Ticket #3319. (CVS 5567)
FossilOrigin-Name: 66ff55efd688703fe99143e4c17e8d5f119d0690
2008-08-20 16:21:12 +00:00
danielk1977
8c0a791a58 Add the pcache module from the experimental branch. Also change things so 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-20 14:49:23 +00:00
drh
2b300d5d6f Do not flatten the right term of a LEFT join. Ticket #3300. (CVS 5565)
FossilOrigin-Name: 8947c72f93d0b79c8061a3bfd5ab595edfb155a5
2008-08-14 00:19:48 +00:00
drh
87cf137735 Explicit casts of the return from strlen() to int in lemon. This has
no effect on SQLite.  It has no effect on any lemon-generated parser
with a grammar that is less than 2GB in size.  Ticket #3293. (CVS 5564)

FossilOrigin-Name: a519cdb2f46fffe16e666f161479a22463616cb3
2008-08-13 20:09:06 +00:00
drh
639efd0451 Fix token destructors in lemon generated parsers. Does not effect SQLite.
Ticket #3299. (CVS 5563)

FossilOrigin-Name: 4887e8fc4af9e2963b3eff3187dee5b0d6297eb5
2008-08-13 20:04:29 +00:00
drh
e63d999189 Additional changes toward fixing ticket #3292. (CVS 5562)
FossilOrigin-Name: 0b92cbf5255020d4fde382f81590ff0488936667
2008-08-13 19:11:48 +00:00
drh
ec1fc80ca3 A partial fix for ticket #3292. This fixes the original problem but there
are other similar problems lurking in the code still. (CVS 5561)

FossilOrigin-Name: 055f173ab1b6fb657bf817faa3a37335d8fa60d5
2008-08-13 14:07:40 +00:00
drh
ec444fc163 Make sure the lookaside test script saturates the lookaside buffer even
when SQLITE_DEBUG is off.  Ticket #3289 (CVS 5560)

FossilOrigin-Name: d6aacc5dc7c06f97fb5faa3d85a8f2d8ab0dd554
2008-08-12 15:48:25 +00:00
drh
93ed56d9ea Revise the initialization and shutdown logic so that it no longer keeps
a recursive mutex allocated for the whole interval but instead releases
the mutex as soon as possible.  Do not reset status values upon initialization. (CVS 5559)

FossilOrigin-Name: 697fe7a3167c22a3232ce154e9d47cf75af613c4
2008-08-12 15:21:11 +00:00
danielk1977
44a376f6b4 Fix further warnings/compilation errors in test code. (CVS 5558)
FossilOrigin-Name: 42247b917ae5a5c0d81b934200810755d0040282
2008-08-12 15:04:58 +00:00
drh
7b37c5d818 Documentation updates and clarifications in sqlite.h.in. (CVS 5557)
FossilOrigin-Name: e3935502fdca486613c8116b6057bfdd37545e58
2008-08-12 14:51:29 +00:00
danielk1977
6e89162dd1 Fix warnings and a compilation error in test code. (CVS 5556)
FossilOrigin-Name: 80c129e63ec7dbed3de1e485dffea96fae40aa6d
2008-08-12 14:48:40 +00:00
shane
20698d5cbc GCC attribute warning first appears in the 4.3.0 docs, so updated #if to specify at least that version. (CVS 5555)
FossilOrigin-Name: 46defad516bccb9921326bb4750251a3f7b5a869
2008-08-11 20:07:47 +00:00
drh
93f41e591b Make the CLI more tolerant of malformed schemas by setting the
writable_schema pragma prior to running the ".dump" command. (CVS 5554)

FossilOrigin-Name: 860babd841a7744eb8ba0e4f325fc10b348ed78b
2008-08-11 19:12:34 +00:00
drh
c456e57af7 Do not allow indexing of any table whose name begins with "sqlite_".
Ticket #3284.  Improve handling of databases with malformed schemas -
just in case somebody has actually indexed a system table. (CVS 5553)

FossilOrigin-Name: 0e1d8d14a153483e65bd0246d23db2b823a122d1
2008-08-11 18:44:58 +00:00
drh
ec0a0c8c35 The GCC magic to warn about experimental interfaces does not work
on gcc version 4.1.0.  Add #ifdefs to work around this. (CVS 5552)

FossilOrigin-Name: 90cae83169de980c6548ca6b57f4c65419e8eb13
2008-08-11 18:29:38 +00:00