]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoReduce the stack usage of balance_quick(). (CVS 6715)
danielk1977 [Thu, 4 Jun 2009 14:46:08 +0000 (14:46 +0000)] 
Reduce the stack usage of balance_quick(). (CVS 6715)

FossilOrigin-Name: e7ad68e93b19b59cb16205c4b48fd9d6492dbb02

16 years agoMinor updates to comments in test scripts. (CVS 6714)
shane [Thu, 4 Jun 2009 02:47:03 +0000 (02:47 +0000)] 
Minor updates to comments in test scripts. (CVS 6714)

FossilOrigin-Name: 453ff88f73a01a54ff464563effdb63014b1972c

16 years agoMinor tweak to test script to ensure every byte in file touched at least once. (CVS...
shane [Thu, 4 Jun 2009 02:46:19 +0000 (02:46 +0000)] 
Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)

FossilOrigin-Name: bc6c2d894b711361808a19b673803186d3a28369

16 years agoFix two instances where a malformed header in a database file (in other words
drh [Thu, 4 Jun 2009 00:11:56 +0000 (00:11 +0000)] 
Fix two instances where a malformed header in a database file (in other words
a corrupt database file) can lead to an assertion fault. (CVS 6712)

FossilOrigin-Name: 4e92c7f20afa51849128aa1d784ab885b517a73d

16 years agoChange the pcache1.c implementation so that the "header" occurs at the end
drh [Wed, 3 Jun 2009 21:04:35 +0000 (21:04 +0000)] 
Change the pcache1.c implementation so that the "header" occurs at the end
of page buffer, not at the beginning.  This insures that the 20 bytes
immediately following the page buffer are mapped if a read of the page
buffer overruns due to a malformed cell. (CVS 6711)

FossilOrigin-Name: c54de1f54080de7e134d7b562498abb5337a0a46

16 years agoAdd corruptD.test, a container for testing the "cell overflow" problem. Also shuffle...
danielk1977 [Wed, 3 Jun 2009 17:26:17 +0000 (17:26 +0000)] 
Add corruptD.test, a container for testing the "cell overflow" problem. Also shuffle a small amount of code in BtreeInitPage() to check that the page header pointer to the start of the cell offset array is set to a sane value. (CVS 6710)

FossilOrigin-Name: 7fa5d3cb0fa05f7d901bcc139c2c037ce5944caa

16 years agoDefine a set of constants to use as the "index" argument to sqlite3BtreeGetMeta and...
danielk1977 [Wed, 3 Jun 2009 11:25:07 +0000 (11:25 +0000)] 
Define a set of constants to use as the "index" argument to sqlite3BtreeGetMeta and UpdateMeta. This makes some parts of the code easier to follow. (CVS 6709)

FossilOrigin-Name: 6dbf4eca00f845baa7200aba421d0bc158ba96aa

16 years agoAdditional changes to reduce stack usage. The SQLITE_SMALL_STACK compile-time
drh [Wed, 3 Jun 2009 01:24:54 +0000 (01:24 +0000)] 
Additional changes to reduce stack usage.  The SQLITE_SMALL_STACK compile-time
option is now available. (CVS 6708)

FossilOrigin-Name: baea79fd0cfeb860973846c3f2776776c87f0ae3

16 years agoFurther reductions in the amount of stack space required. (CVS 6707)
drh [Tue, 2 Jun 2009 21:31:38 +0000 (21:31 +0000)] 
Further reductions in the amount of stack space required. (CVS 6707)

FossilOrigin-Name: 04bad9eb6dd8bf7cafc9f3918b676e95d5b1c984

16 years agoTweaks to vdbe.c to further reduce stack space requirements. (CVS 6706)
drh [Tue, 2 Jun 2009 16:06:03 +0000 (16:06 +0000)] 
Tweaks to vdbe.c to further reduce stack space requirements. (CVS 6706)

FossilOrigin-Name: 6f2aab3f7be12710b703eda22b1d5c0e8f85f814

16 years agoAdd a test case for ticket #3893 and ticket #3894. (CVS 6705)
drh [Tue, 2 Jun 2009 15:47:37 +0000 (15:47 +0000)] 
Add a test case for ticket #3893 and ticket #3894. (CVS 6705)

FossilOrigin-Name: 2472f6db95cd537a908bdbbbbc41bad2bd987b2f

16 years agoAdd the vdbe-compress.tcl script which automatically refactors the
drh [Tue, 2 Jun 2009 15:21:42 +0000 (15:21 +0000)] 
Add the vdbe-compress.tcl script which automatically refactors the
sqlite3VdbeExec() routine to use less stack space.  Use this script
when constructing the amalgamation. (CVS 6704)

FossilOrigin-Name: 7f43391831b03e53d967acee6ae02089740aaedb

16 years agoAvoid allocating large objects on the stack in the incremental BLOB I/O
drh [Mon, 1 Jun 2009 19:53:30 +0000 (19:53 +0000)] 
Avoid allocating large objects on the stack in the incremental BLOB I/O
interface. (CVS 6703)

FossilOrigin-Name: ea7dfde700fb57ed0ecb5000a55abbf45aa1e09d

16 years agoMalloc for space to hold the Parse object in sqlite3_prepare() and friends.
drh [Mon, 1 Jun 2009 18:18:20 +0000 (18:18 +0000)] 
Malloc for space to hold the Parse object in sqlite3_prepare() and friends.
Or, if compiled with SQLITE_USE_ALLOCA, obtain space for the object from
alloca(). (CVS 6702)

FossilOrigin-Name: c7c0c58e472cd8277b2ad58bb60834190bace4fa

16 years agoAdded assert to verify winMutex system is inited before "static" mutexes are used...
shane [Mon, 1 Jun 2009 17:10:22 +0000 (17:10 +0000)] 
Added assert to verify winMutex system is inited before "static" mutexes are used. (CVS 6701)

FossilOrigin-Name: b126013b5a1d6526810139d19acbec7fd0ab8168

16 years agoEnsure that "static" mutexes are deleted on shutdown so that they are not leaked...
shane [Mon, 1 Jun 2009 17:06:07 +0000 (17:06 +0000)] 
Ensure that "static" mutexes are deleted on shutdown so that they are not leaked across restarts. (CVS 6700)

FossilOrigin-Name: 4e75897ee177bd24145f9dbfccd41a03c108440f

16 years agoFix compiler warnings with MSVC build. (CVS 6699)
shane [Mon, 1 Jun 2009 16:53:09 +0000 (16:53 +0000)] 
Fix compiler warnings with MSVC build. (CVS 6699)

FossilOrigin-Name: 0791588520603d106aa0b8ce24d68b740b7b80c8

16 years agoFix a couple of Windows only issues with test scripts. (CVS 6698)
shane [Mon, 1 Jun 2009 16:42:17 +0000 (16:42 +0000)] 
Fix a couple of Windows only issues with test scripts. (CVS 6698)

FossilOrigin-Name: 0f6bc5e1ba6937b36df08ed3b5903839389021bb

16 years agoCode simplifications to facilitate coverage testing following the recent
drh [Sun, 31 May 2009 21:21:40 +0000 (21:21 +0000)] 
Code simplifications to facilitate coverage testing following the recent
changes to the Expr object. (CVS 6697)

FossilOrigin-Name: ee9a144d448a76f29c3ca03851c1aeef539068e2

16 years agoFix the ".genfkey" command of the CLI so that it does not leak memory
drh [Sun, 31 May 2009 17:16:09 +0000 (17:16 +0000)] 
Fix the ".genfkey" command of the CLI so that it does not leak memory
if sqlite3_realloc() fails.  Ticket #3891. (CVS 6696)

FossilOrigin-Name: a028d69c70ae961f418052a91aa1518e80a8ddf5

16 years agoFix typo reported by ticket #3888. Other minor edits to facilitate
drh [Sat, 30 May 2009 23:35:43 +0000 (23:35 +0000)] 
Fix typo reported by ticket #3888.  Other minor edits to facilitate
coverage testing. (CVS 6695)

FossilOrigin-Name: 164adf261d2536f16c83e44f6482dfb3d04a45d5

16 years agoSimplifications to the expr.c source module resulting from structural
drh [Sat, 30 May 2009 20:49:20 +0000 (20:49 +0000)] 
Simplifications to the expr.c source module resulting from structural
testing. (CVS 6694)

FossilOrigin-Name: f760bb7a0372d11ac7e3287b8a56fc4261e6371c

16 years agoFix for ticket #3887. Other unrelated bits of code cleanup in the expr.c
drh [Sat, 30 May 2009 14:16:31 +0000 (14:16 +0000)] 
Fix for ticket #3887.  Other unrelated bits of code cleanup in the expr.c
source module. (CVS 6693)

FossilOrigin-Name: 00e7250f11e190cd915870438d172f574d110e6d

16 years agoIn vacuum.c use "PagerIsMemdb(X)" instead of "PagerFile(X)->pMethods==0". (CVS 6692)
danielk1977 [Sat, 30 May 2009 10:46:10 +0000 (10:46 +0000)] 
In vacuum.c use "PagerIsMemdb(X)" instead of "PagerFile(X)->pMethods==0". (CVS 6692)

FossilOrigin-Name: 874295ce71380da3f4c9296df0e0ce5ece136220

16 years agoEnhance the sqlite3VdbeGetOp() routine so that it always returns a pointer
drh [Fri, 29 May 2009 19:00:12 +0000 (19:00 +0000)] 
Enhance the sqlite3VdbeGetOp() routine so that it always returns a pointer
to VdbeOp, even following an OOM fault.  This simplifies error handling in
callers.  Cleanup to the column cache logic and the expr.c source module. (CVS 6691)

FossilOrigin-Name: ede06dacdf7acab23cd9666a0a0d092a637bcb78

16 years agoRefinements in expression handling logic that have resulted from recent
drh [Fri, 29 May 2009 14:39:07 +0000 (14:39 +0000)] 
Refinements in expression handling logic that have resulted from recent
structural testing. (CVS 6690)

FossilOrigin-Name: bd89f2c29b00e6b473f30c2e929d2f626721ad92

16 years agoStill more refinements to the hasHotJournal() fix of ticket #3883. (CVS 6689)
drh [Fri, 29 May 2009 11:57:38 +0000 (11:57 +0000)] 
Still more refinements to the hasHotJournal() fix of ticket #3883. (CVS 6689)

FossilOrigin-Name: 726b425e43e5d864e7e83853bdf134debc1ffb59

16 years agoThe hasHotJournal() fix of check-in (6687) causes some minor problems in
drh [Fri, 29 May 2009 10:55:29 +0000 (10:55 +0000)] 
The hasHotJournal() fix of check-in (6687) causes some minor problems in
various alternative operating modes, such as locking_mode=EXCLUSIVE.  This
additional patch attempts to fix those concerns.  Ticket #3883. (CVS 6688)

FossilOrigin-Name: a2ba61d927a06c390a9a818a013328092b802222

16 years agoModify the hasHotJournal() routine to return a false-positive if it is
drh [Fri, 29 May 2009 00:30:30 +0000 (00:30 +0000)] 
Modify the hasHotJournal() routine to return a false-positive if it is
unable to open the journal file to check its header due to a race
condition.  Processing downstream of hasHotJournal() already knows how to
deal with false-positives.  Ticket #3883. (CVS 6687)

FossilOrigin-Name: d6b5d8e1ab8e5d3348ace560230702718a2a8af9

16 years agoRemove references to deleted function sqlite3ExprRegister(). Changes to
drh [Thu, 28 May 2009 21:04:37 +0000 (21:04 +0000)] 
Remove references to deleted function sqlite3ExprRegister().  Changes to
the expr.c source module to promote better testing. (CVS 6686)

FossilOrigin-Name: 6ae4ad6ebee4db88c411df97bb1de574708dd53c

16 years agoFix a NULL pointer dereference following an OOM error in the column name
drh [Thu, 28 May 2009 14:34:49 +0000 (14:34 +0000)] 
Fix a NULL pointer dereference following an OOM error in the column name
resolver. (CVS 6685)

FossilOrigin-Name: 3b46142532934d17aa136c2e56e58e7828df0f54

16 years agoMake sure the column name resolver does not try to duplicate Expr.u.zToken
drh [Thu, 28 May 2009 12:49:53 +0000 (12:49 +0000)] 
Make sure the column name resolver does not try to duplicate Expr.u.zToken
when the Expr.u.iValue union member is the element being used. (CVS 6684)

FossilOrigin-Name: 376ecf0d87e4a2329f5861401f83ed9ceb35d528

16 years agoWorkaround the need for internal API sqlite3BtreeCursorDb(). It was only being used...
danielk1977 [Thu, 28 May 2009 11:05:57 +0000 (11:05 +0000)] 
Workaround the need for internal API sqlite3BtreeCursorDb(). It was only being used for an assert() statement, which can be done differently. (CVS 6683)

FossilOrigin-Name: 5904af6e6df3effdaaa30e7cf96ee316fc09b28d

16 years agoAdditional refinements to Expr handling. Restore compression of trigger
drh [Thu, 28 May 2009 01:00:55 +0000 (01:00 +0000)] 
Additional refinements to Expr handling.  Restore compression of trigger
expressions.  Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue.
Remove an unnecessary ExprDup from CHECK constraint processing.  And so forth. (CVS 6682)

FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb

16 years agoSimplifications to the Expr object: Remove Expr.span completely and convert
drh [Wed, 27 May 2009 10:31:29 +0000 (10:31 +0000)] 
Simplifications to the Expr object:  Remove Expr.span completely and convert
Expr.token into a char* Expr.zToken.  Also simplify the Token object by
removing the Token.dyn and Token.quoted fields. (CVS 6681)

FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3

16 years agoFix the rtree test module so that it works even if the ext/ subfolder is
drh [Mon, 25 May 2009 14:17:35 +0000 (14:17 +0000)] 
Fix the rtree test module so that it works even if the ext/ subfolder is
omitted from the tree. (CVS 6679)

FossilOrigin-Name: 086206e1f51e22ce7b9f45865b370088db126cd2

16 years agoWhen pinning a temp register after it is reused by the column cache, make
drh [Mon, 25 May 2009 11:46:29 +0000 (11:46 +0000)] 
When pinning a temp register after it is reused by the column cache, make
sure all instances of that register in the cache are pinned so that the
register is never reused for a different purpose.  Ticket #3879. (CVS 6676)

FossilOrigin-Name: 5f358e63712e8de93bd6fecc5131badeef0292be

16 years agoAdd a test case for ticket #3879. (CVS 6675)
danielk1977 [Mon, 25 May 2009 11:46:10 +0000 (11:46 +0000)] 
Add a test case for ticket #3879. (CVS 6675)

FossilOrigin-Name: 5b9b66f47b0b8178427806149958387d32b70dc2

16 years agoAdditional clarification of the 3rd parameter to sqlite3_create_function().
drh [Sun, 24 May 2009 21:59:27 +0000 (21:59 +0000)] 
Additional clarification of the 3rd parameter to sqlite3_create_function().
Documentation change only; no changes to code.  Ticket #3875. (CVS 6674)

FossilOrigin-Name: dd75e376e8fed4f2e347672d483ee7c1929007cf

16 years agoIn the previous, the upper bound on the number of function arguments is
drh [Sun, 24 May 2009 11:08:49 +0000 (11:08 +0000)] 
In the previous, the upper bound on the number of function arguments is
127, not 255.  Ticket #3876 (CVS 6673)

FossilOrigin-Name: 4fe4c5fac51c0a5b50f839a3f43d786e1ff4a4e0

16 years agoCorrect and clarify the documentation on the third parameter to
drh [Sun, 24 May 2009 11:07:49 +0000 (11:07 +0000)] 
Correct and clarify the documentation on the third parameter to
sqlite3_create_function(). (CVS 6672)

FossilOrigin-Name: 6b7929ed36fa14291b6cb09de5808100945ad7a0

16 years agoDo not transform a WHERE clause of the form "a = ? OR a = ?" to "a IN (?, ?)" if...
danielk1977 [Fri, 22 May 2009 15:43:26 +0000 (15:43 +0000)] 
Do not transform a WHERE clause of the form "a = ? OR a = ?" to "a IN (?, ?)" if "a" is a column of a virtual table. Ticket #3871. (CVS 6671)

FossilOrigin-Name: fad88e71cf195e703f7b56b13f0c1818fd0dac84

16 years agoAdd an assert() to pcache1.c to double-check that page cache buffer memory
drh [Fri, 22 May 2009 11:12:23 +0000 (11:12 +0000)] 
Add an assert() to pcache1.c to double-check that page cache buffer memory
is never allocated if pcache1 is not enabled.  Ticket #3872 (CVS 6670)

FossilOrigin-Name: 93369d91abe10975507ea9302c145e3ddd0c2c76

16 years agoAdditional changes to pcache1 to prevent the page buffer memory from being
drh [Fri, 22 May 2009 11:10:24 +0000 (11:10 +0000)] 
Additional changes to pcache1 to prevent the page buffer memory from being
configured if pcache1 is not enabled.  Ticket #3872. (CVS 6669)

FossilOrigin-Name: 5153ad19daf0f3b0334b2a06655142899203abbf

16 years agoMake sure sqlite3_shutdown() completely disables the default pager cache
drh [Fri, 22 May 2009 10:53:29 +0000 (10:53 +0000)] 
Make sure sqlite3_shutdown() completely disables the default pager cache
mechanism in pcache1.c.  Ticket #3872.  Also fix some comments associated
with configuring the page cache. (CVS 6668)

FossilOrigin-Name: 6240992cef5cb867d7a638f1906d05aa8efd0652

16 years agoAdd omitted word in the documentation for total_change_count().
drh [Fri, 22 May 2009 01:02:26 +0000 (01:02 +0000)] 
Add omitted word in the documentation for total_change_count().
ticket #3870. (CVS 6667)

FossilOrigin-Name: 3f6fd16f92a16445891142b0a7dc9f6d6dc06546

16 years agoFix an 8-byte alignment problem on HP/UX. Ticket #3869 (CVS 6666)
drh [Fri, 22 May 2009 01:00:12 +0000 (01:00 +0000)] 
Fix an 8-byte alignment problem on HP/UX.  Ticket #3869 (CVS 6666)

FossilOrigin-Name: fc64f8509299a398ac1513e1778f271083e3eabc

16 years agoSimplifications to expr.c in support of full coverage testing. (CVS 6665)
drh [Thu, 21 May 2009 20:41:32 +0000 (20:41 +0000)] 
Simplifications to expr.c in support of full coverage testing. (CVS 6665)

FossilOrigin-Name: 309adb5e22af2735b69460c164d870aea99c6da3

16 years agoIn the CLI in the ".dump" command, do not attempt to clear the sqlite_sequence
drh [Thu, 21 May 2009 15:15:00 +0000 (15:15 +0000)] 
In the CLI in the ".dump" command, do not attempt to clear the sqlite_sequence
table until the first row of content of that table is seen.  Ticket #3867 (CVS 6664)

FossilOrigin-Name: bedd5ad1942021ef2b3defde3ff3e8aead86137e

16 years agoIn the CLI, always "dump" the sqlite_sequence table last. Ticket #3867 (CVS 6663)
drh [Thu, 21 May 2009 14:51:03 +0000 (14:51 +0000)] 
In the CLI, always "dump" the sqlite_sequence table last.  Ticket #3867 (CVS 6663)

FossilOrigin-Name: a0028d4808275cb1d020d56344d90b2a04603f4d

16 years agoAdd conditional 'extern "C"' block to sqlite3async.h. Ticket #3866. (CVS 6662)
danielk1977 [Thu, 21 May 2009 04:42:19 +0000 (04:42 +0000)] 
Add conditional 'extern "C"' block to sqlite3async.h. Ticket #3866. (CVS 6662)

FossilOrigin-Name: e4d1b117c90dca341bfa74291c7dfc2afca38cc6

16 years agoFix a memory leak that occurs when an out-of-memory error occurs while
drh [Wed, 20 May 2009 20:10:47 +0000 (20:10 +0000)] 
Fix a memory leak that occurs when an out-of-memory error occurs while
preparing a statement that has multiple virtual table updates within
triggers.  Other virtual table changes to support full-coverage testing. (CVS 6661)

FossilOrigin-Name: 02b77a582c65e0eb45eb1a9abbdeef11f52d7ce6

16 years agoRemove unused, undocumented, and untested error reporting logic from the
drh [Wed, 20 May 2009 16:22:02 +0000 (16:22 +0000)] 
Remove unused, undocumented, and untested error reporting logic from the
xFindFunction interface in virtual tables. (CVS 6660)

FossilOrigin-Name: 55d6ced262f5281076e4a68097ed21e150a9c225

16 years agoUpdates to the extension loading logic to support full coverage testing. (CVS 6659)
drh [Wed, 20 May 2009 02:40:45 +0000 (02:40 +0000)] 
Updates to the extension loading logic to support full coverage testing. (CVS 6659)

FossilOrigin-Name: 929cfbc66f6e2ea6b44417305d0f4ae36567c9bf

16 years agoChanges to select.c to facilitate full coverage testing. (CVS 6658)
drh [Tue, 19 May 2009 19:04:58 +0000 (19:04 +0000)] 
Changes to select.c to facilitate full coverage testing. (CVS 6658)

FossilOrigin-Name: f678ed34faab88f4e126e553119773386c7c84fa

16 years agoImprovements to the SQLITE_INT_TO_PTR macro to reduce the number of
drh [Tue, 19 May 2009 14:21:28 +0000 (14:21 +0000)] 
Improvements to the SQLITE_INT_TO_PTR macro to reduce the number of
warnings.  For some platforms it might be necessary to compile with
the -DHAVE_STDINT_H flag.  Ticket #3860. (CVS 6657)

FossilOrigin-Name: 1b0ee9d188c000a2331caae2e9c8b89b0bcbc0b0

16 years agoUpdate the showdb.c utility so that it works with databases larger than 4GiB. (CVS...
drh [Tue, 19 May 2009 03:21:52 +0000 (03:21 +0000)] 
Update the showdb.c utility so that it works with databases larger than 4GiB. (CVS 6656)

FossilOrigin-Name: 9675b6223645fe01b202cbefae63f3209a50efcc

16 years agoFix memdb.test so that it works when OMIT_AUTOVACUUM is defined. (CVS 6649)
danielk1977 [Mon, 18 May 2009 16:04:38 +0000 (16:04 +0000)] 
Fix memdb.test so that it works when OMIT_AUTOVACUUM is defined. (CVS 6649)

FossilOrigin-Name: 8c3c0c24c82606df41653dbf7324bf9f166c933a

16 years agoChanges to select.c in support of full coverage testing. (CVS 6647)
drh [Mon, 18 May 2009 15:46:07 +0000 (15:46 +0000)] 
Changes to select.c in support of full coverage testing. (CVS 6647)

FossilOrigin-Name: e225f365bd9353f753161887e05fe1eccaf9be1d

16 years agoFix a typo on a comment associated with check-in (6641) and ticket #3860. (CVS 6646)
drh [Mon, 18 May 2009 13:34:37 +0000 (13:34 +0000)] 
Fix a typo on a comment associated with check-in (6641) and ticket #3860. (CVS 6646)

FossilOrigin-Name: 43051e0315246d734a81ccef2cf1a0cc159f239b

16 years agoRemove debugging code accidently left in check-in (6642). Ticket #3862. (CVS 6645)
drh [Sun, 17 May 2009 15:29:31 +0000 (15:29 +0000)] 
Remove debugging code accidently left in check-in (6642).  Ticket #3862. (CVS 6645)

FossilOrigin-Name: 0d974613473b9d2af71638248a57036f903ef387

16 years agoTake care to free the memory for the ORDER BY clause on SELECT statements
drh [Sun, 17 May 2009 15:26:20 +0000 (15:26 +0000)] 
Take care to free the memory for the ORDER BY clause on SELECT statements
containing errors and contained within triggers.  Ticket #3863. (CVS 6644)

FossilOrigin-Name: dd665eac8c04259e44a95827ebd1f037460fe1b2

16 years agoFix a typo in the sqlite3_blob_open() documentation. (CVS 6643)
drh [Sun, 17 May 2009 12:07:47 +0000 (12:07 +0000)] 
Fix a typo in the sqlite3_blob_open() documentation. (CVS 6643)

FossilOrigin-Name: 92866482ef7cc91b5ac7bebec7e6edf900aa64c6

16 years agoTweaks and simplifications to select.c to facility full coverage testing. (CVS 6642)
drh [Sun, 17 May 2009 02:06:14 +0000 (02:06 +0000)] 
Tweaks and simplifications to select.c to facility full coverage testing. (CVS 6642)

FossilOrigin-Name: e3ccbc69babd05d45db8065f6612751eda1aa645

16 years agoAttempt to provide a version of the SQLITE_INT_TO_PTR macro that works
drh [Sat, 16 May 2009 17:38:21 +0000 (17:38 +0000)] 
Attempt to provide a version of the SQLITE_INT_TO_PTR macro that works
on both llvm-gcc-4.2 and MSVC.  Ticket #3860. (CVS 6641)

FossilOrigin-Name: ddee7ff23e9a396cab89d20ff9fc4cf3dfd4561c

16 years agoRe-enable file locking in async4.test. (CVS 6640)
danielk1977 [Fri, 15 May 2009 14:41:40 +0000 (14:41 +0000)] 
Re-enable file locking in async4.test. (CVS 6640)

FossilOrigin-Name: f7098187280866a56563c7614513a40becd172e0

16 years agoDocumentation enhancements for sqlite3_update_hook(), sqlite3_commit_hook(),
drh [Thu, 14 May 2009 22:37:47 +0000 (22:37 +0000)] 
Documentation enhancements for sqlite3_update_hook(), sqlite3_commit_hook(),
and the various incremental blob I/O routines.  No changes to code. (CVS 6639)

FossilOrigin-Name: e8ca932d8c7e1753c159041499355724d3e78b35

16 years agoChange the sqlite3_backup_finish() interface so that calling it with
drh [Thu, 14 May 2009 19:26:51 +0000 (19:26 +0000)] 
Change the sqlite3_backup_finish() interface so that calling it with
a NULL pointer is a harmless no-op.  One other change to backup.c to facilitate
full coverage testing. (CVS 6638)

FossilOrigin-Name: 06bc89177b3af20751d9567a68551d2d31c3fe8b

16 years agoDocumentation updates to better explain the SQLITE_OPEN_EXCLUSIVE flag. Ticket ...
shane [Thu, 14 May 2009 03:21:28 +0000 (03:21 +0000)] 
Documentation updates to better explain the SQLITE_OPEN_EXCLUSIVE flag.  Ticket #3855. (CVS 6637)

FossilOrigin-Name: 6bd44f36f46810eb9ce30c7780de6bcfe4aadf5f

16 years agoAdditional simplifications to build.c in support full coverage testing. (CVS 6636)
drh [Wed, 13 May 2009 22:58:28 +0000 (22:58 +0000)] 
Additional simplifications to build.c in support full coverage testing. (CVS 6636)

FossilOrigin-Name: 913d11149396d3dc797f1efeb4f7e60865483399

16 years agoRemove incorrect NEVER() macro in the previous check-in (6634). (CVS 6635)
drh [Wed, 13 May 2009 17:35:23 +0000 (17:35 +0000)] 
Remove incorrect NEVER() macro in the previous check-in (6634). (CVS 6635)

FossilOrigin-Name: c684957991fe45cbcb188d2a419501c3f1fdc93f

16 years agoChanges to build.c to help facilitate full coverage testing. (CVS 6634)
drh [Wed, 13 May 2009 17:21:13 +0000 (17:21 +0000)] 
Changes to build.c to help facilitate full coverage testing. (CVS 6634)

FossilOrigin-Name: 264ace50bbaec3468de0e42b2b8cebf9ce1d6682

16 years agoDo not run async4.test as part of the "journaltest" permutation. It specifically...
danielk1977 [Wed, 13 May 2009 14:46:09 +0000 (14:46 +0000)] 
Do not run async4.test as part of the "journaltest" permutation. It specifically tests that the asynchronous IO backend can be configured to violate the assumptions made by journaltest. (CVS 6633)

FossilOrigin-Name: b19bf39bbae96aeb6e742fb9fb1c33d0e251ad7f

16 years agoWhen locking a database file, check if any backup objects need to be restarted even...
danielk1977 [Wed, 13 May 2009 07:52:06 +0000 (07:52 +0000)] 
When locking a database file, check if any backup objects need to be restarted even if the page cache is empty. Ticket #3858. (CVS 6632)

FossilOrigin-Name: 90309008c35494c7a075fe76f7eb96b09a01d01b

16 years agoRemove debugging comments left in the prior check-in by mistake. (CVS 6631)
drh [Tue, 12 May 2009 18:00:37 +0000 (18:00 +0000)] 
Remove debugging comments left in the prior check-in by mistake. (CVS 6631)

FossilOrigin-Name: 8207056036e17b99ab660edd650c5a6de1353299

16 years agoMove the sqlite3MinimumFileFormat() routine from build.c over to alter.c
drh [Tue, 12 May 2009 17:46:53 +0000 (17:46 +0000)] 
Move the sqlite3MinimumFileFormat() routine from build.c over to alter.c
since alter.c is the only code that uses it.  Additional changes and
cleanup to build.c to facility coverage testing. (CVS 6630)

FossilOrigin-Name: 6fe3750a30ab432ed476c2ae6b58972187abc624

16 years agoMake sure the SQLITE_OPEN_EXCLUSIVE flag is ignored by sqlite3_open_v2().
drh [Tue, 12 May 2009 13:35:11 +0000 (13:35 +0000)] 
Make sure the SQLITE_OPEN_EXCLUSIVE flag is ignored by sqlite3_open_v2().
That flag is to be used by the VFS interface only.  Ticket #3855. (CVS 6629)

FossilOrigin-Name: c37f0279ebfaf76b4086e6d16b6e12633424c27d

16 years agoTweaks to build.c to facilitate coverage testing. (CVS 6628)
drh [Tue, 12 May 2009 00:40:12 +0000 (00:40 +0000)] 
Tweaks to build.c to facilitate coverage testing. (CVS 6628)

FossilOrigin-Name: 6572b438a02cc44546174e132dfbdc1d141cd451

16 years agoIf a virtual table constructor returns SQLITE_NOMEM, set the mallocFailed
drh [Mon, 11 May 2009 23:37:59 +0000 (23:37 +0000)] 
If a virtual table constructor returns SQLITE_NOMEM, set the mallocFailed
flag in the corresponding database connection to insure that the error
is propagated back to the top layer. (CVS 6627)

FossilOrigin-Name: 5635666f20358e854a76d244768198734afd4299

16 years agoRework the logic that generates a schema for tables created using
drh [Mon, 11 May 2009 20:53:28 +0000 (20:53 +0000)] 
Rework the logic that generates a schema for tables created using
"CREATE TABLE ... AS SELECT ...".  Instead of trying to copy the raw
datatype string from the right-hand side, just make the type one
of TEXT, INT, REAL, NUM, or nothing.  This is much simpler than
trying to parse and quote datatype strings.  Other minor
implifications to build.c are bundled with this change. (CVS 6626)

FossilOrigin-Name: 33cf83591e6e13875ef6ada5b8ac8ab07619d8bc

16 years agoEnhance the parser to allow nested parentheses in the module argument of
drh [Mon, 11 May 2009 18:22:30 +0000 (18:22 +0000)] 
Enhance the parser to allow nested parentheses in the module argument of
a CREATE VIRTUAL TABLE statement. (CVS 6625)

FossilOrigin-Name: 93772bd7f56a5158eb46a992ba932f4695cb219f

16 years agoConvert an always-true condition in hash.c into an assert(). (CVS 6624)
drh [Sat, 9 May 2009 23:29:12 +0000 (23:29 +0000)] 
Convert an always-true condition in hash.c into an assert(). (CVS 6624)

FossilOrigin-Name: 4237299935b8bf8c346aacba021113224813bcb9

16 years agoAdd the SQLITE_TESTCTRL_ASSERT and SQLITE_TESTCTRL_ALWAYS codes for the
drh [Sat, 9 May 2009 18:59:42 +0000 (18:59 +0000)] 
Add the SQLITE_TESTCTRL_ASSERT and SQLITE_TESTCTRL_ALWAYS codes for the
sqlite3_test_control() interface. (CVS 6623)

FossilOrigin-Name: 38df91c2edebee22d02b5f84260ee9e5e14db48e

16 years agoChange sqlite_blob_open() so that it zeros the output pBlob pointer when
drh [Sat, 9 May 2009 15:17:47 +0000 (15:17 +0000)] 
Change sqlite_blob_open() so that it zeros the output pBlob pointer when
it fails.  The other sqlite3_blob interfaces accept a NULL pointer as
input. (CVS 6622)

FossilOrigin-Name: 999d507b4432b518cfc7e02e5b0a2473cf1980f6

16 years agoChanges to the trigger.c module that facilitate full coverage testing. (CVS 6621)
drh [Sat, 9 May 2009 00:18:38 +0000 (00:18 +0000)] 
Changes to the trigger.c module that facilitate full coverage testing. (CVS 6621)

FossilOrigin-Name: 567ccc68cc8c73b952a91c71a0e00b08bb25c689

16 years agoFix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620)
danielk1977 [Fri, 8 May 2009 11:34:37 +0000 (11:34 +0000)] 
Fix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620)

FossilOrigin-Name: 254ca3273cfbd833de82296b4859e1ec5535e8be

16 years agoCorrectly update the cache page-count when discarding pages in the xTruncate() method...
danielk1977 [Fri, 8 May 2009 06:52:47 +0000 (06:52 +0000)] 
Correctly update the cache page-count when discarding pages in the xTruncate() method of the default pcache implementation. Otherwise the effective configured size of the cache shrinks each time xTruncate() is called. Fix for #3844. (CVS 6619)

FossilOrigin-Name: 88211ceeec01ee0d3e55231512be26dd672db099

16 years agoIf compiling FTS3 in the amalgamation, include the ctype.h header file.
drh [Thu, 7 May 2009 14:11:52 +0000 (14:11 +0000)] 
If compiling FTS3 in the amalgamation, include the ctype.h header file.
Ticket #3843. (CVS 6618)

FossilOrigin-Name: 660108ef7a3c45f735789ba1039be2c37a8b0d0e

16 years agoChange the sqlite3_create_function() family of routines to return
drh [Thu, 7 May 2009 13:43:49 +0000 (13:43 +0000)] 
Change the sqlite3_create_function() family of routines to return
SQLITE_MISUSE instead of SQLITE_ERROR if their parameters are incorrect. (CVS 6617)

FossilOrigin-Name: 866f13e28c6fdb98947e1c7a89b7855bb5bbdb96

16 years agoMake sure the iteration counter on aggregate functions is reset each
drh [Thu, 7 May 2009 12:17:33 +0000 (12:17 +0000)] 
Make sure the iteration counter on aggregate functions is reset each
time the aggregate is used in an correlated subquery.  Ticket #3841. (CVS 6616)

FossilOrigin-Name: 4a86de35d57a0c8720772c29431c86cd9be1fb9b

16 years agoVersion 3.6.14 (CVS 6615)
drh [Thu, 7 May 2009 02:26:07 +0000 (02:26 +0000)] 
Version 3.6.14 (CVS 6615)

FossilOrigin-Name: 469ad1ded35f5ff8ab2f6e8f776d73a9cea73527

16 years agoFix compiler warning found with gcc -Wextra. (CVS 6614)
drh [Wed, 6 May 2009 19:03:13 +0000 (19:03 +0000)] 
Fix compiler warning found with gcc -Wextra. (CVS 6614)

FossilOrigin-Name: 93bdbc5e2f9771a30358cde03f0d3cb708d73d48

16 years agoChanges to silence compiler warnings under MSVC. (CVS 6613)
shane [Wed, 6 May 2009 18:57:09 +0000 (18:57 +0000)] 
Changes to silence compiler warnings under MSVC. (CVS 6613)

FossilOrigin-Name: df599237e1ca8b4f361477a712cf761aa1fac3df

16 years agoFix three variable initialization problems found by valgrind. (CVS 6612)
drh [Wed, 6 May 2009 18:42:21 +0000 (18:42 +0000)] 
Fix three variable initialization problems found by valgrind. (CVS 6612)

FossilOrigin-Name: 37428435978027f6baffa552306dd5dc29ce5cd5

16 years agoupdated vxworks makefile for 3.6.14 release (CVS 6611)
chw [Wed, 6 May 2009 15:24:04 +0000 (15:24 +0000)] 
updated vxworks makefile for 3.6.14 release (CVS 6611)

FossilOrigin-Name: 5d4bffaabbf6a809938f115de266b382183a0a96

16 years agoAdd a short pause to force a context swap while waiting for a separate process
drh [Wed, 6 May 2009 00:52:40 +0000 (00:52 +0000)] 
Add a short pause to force a context swap while waiting for a separate process
to clear its lock in the lock4.test script. (CVS 6610)

FossilOrigin-Name: 4357e76d53f692cb7495fbde61b4b7580560f816

16 years agoFix the test case misc3-6.11 so that it works correctly on UTF16 databases
drh [Wed, 6 May 2009 00:49:00 +0000 (00:49 +0000)] 
Fix the test case misc3-6.11 so that it works correctly on UTF16 databases
after the fix of for ticket #3838, check-in (6603) (CVS 6609)

FossilOrigin-Name: c1e739e39b1df205f3beb4088ce7760a0d56359f

16 years agoMinor changes to the sqlite3_exec() implementation in legacy.c
drh [Tue, 5 May 2009 20:02:47 +0000 (20:02 +0000)] 
Minor changes to the sqlite3_exec() implementation in legacy.c
to facility full coverage testing. (CVS 6608)

FossilOrigin-Name: 9e3016c1846174a64833394a00a09335e8446de8

16 years agoBump the version number up to 3.6.14. (CVS 6607)
drh [Tue, 5 May 2009 18:01:58 +0000 (18:01 +0000)] 
Bump the version number up to 3.6.14. (CVS 6607)

FossilOrigin-Name: f4549904b22ff2340a5830cd67ed001d1c4730a1

16 years agoChanges to vacuum.c to facilitate full coverage testing. (CVS 6606)
drh [Tue, 5 May 2009 17:37:22 +0000 (17:37 +0000)] 
Changes to vacuum.c to facilitate full coverage testing. (CVS 6606)

FossilOrigin-Name: 866284654c1f163af4164fe8c698d30af32e4eaa