]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoMake sure variable declarations occur first in code blocks. (CVS 5836)
shane [Wed, 22 Oct 2008 16:26:47 +0000 (16:26 +0000)] 
Make sure variable declarations occur first in code blocks. (CVS 5836)

FossilOrigin-Name: b78f44c91fcf3920e69c11a6f72e8f032905a3c7

16 years agoTest cases for ticket #3442. (CVS 5835)
shane [Wed, 22 Oct 2008 16:04:42 +0000 (16:04 +0000)] 
Test cases for ticket #3442. (CVS 5835)

FossilOrigin-Name: a8bb5acf708c8f7e52d3f67b85094116386f10fa

16 years agoFix an assert() failure that can occur following a malloc() failure. Ticket #3455...
danielk1977 [Wed, 22 Oct 2008 10:45:37 +0000 (10:45 +0000)] 
Fix an assert() failure that can occur following a malloc() failure. Ticket #3455. (CVS 5834)

FossilOrigin-Name: e0d3aa75b4fa0e706185a3058b5962916e30d066

16 years agoUpdate the autoconf build system to include memjournal.c. (CVS 5833)
danielk1977 [Tue, 21 Oct 2008 04:30:31 +0000 (04:30 +0000)] 
Update the autoconf build system to include memjournal.c. (CVS 5833)

FossilOrigin-Name: a3c810f0c80e3e9dfe60a0ffd8688d7c76a30d50

16 years agoWhen a name in double quotes falls back to being a string literal,
drh [Sun, 19 Oct 2008 21:03:27 +0000 (21:03 +0000)] 
When a name in double quotes falls back to being a string literal,
make sure it has no affinity.  Ticket #3442. (CVS 5832)

FossilOrigin-Name: 81cfee5c14f241f5ae7f607d73b0b5cb821cda24

16 years agoAdd the memjournal.c file that should have been with the previous checkin. (CVS 5831)
danielk1977 [Fri, 17 Oct 2008 19:13:04 +0000 (19:13 +0000)] 
Add the memjournal.c file that should have been with the previous checkin. (CVS 5831)

FossilOrigin-Name: 0509eff0e6b5cdeeb52c12c0574ea63e9715bcb5

16 years agoAdd "pragma journal_mode=memory". Change the way rollback works for in-memory databas...
danielk1977 [Fri, 17 Oct 2008 18:51:52 +0000 (18:51 +0000)] 
Add "pragma journal_mode=memory". Change the way rollback works for in-memory databases so that it reuses the journal_mode=memory code. (CVS 5830)

FossilOrigin-Name: 39ebf01addf9d0867daafd06a38719e725128f9c

16 years agoFix a typo in documentation. Ticket #3447. (CVS 5829)
drh [Fri, 17 Oct 2008 15:10:37 +0000 (15:10 +0000)] 
Fix a typo in documentation.  Ticket #3447. (CVS 5829)

FossilOrigin-Name: 5ce2ddffea807d45318619cc9e259a99dfa14346

16 years agoFix an error in (5826). (CVS 5828)
danielk1977 [Thu, 16 Oct 2008 13:27:40 +0000 (13:27 +0000)] 
Fix an error in (5826). (CVS 5828)

FossilOrigin-Name: 8065a92f705dfa04863ba4a828f5bd2803901be8

16 years agoFix a naming problem when SQLITE_MUTEX_NOOP is used. (CVS 5827)
drh [Wed, 15 Oct 2008 19:03:02 +0000 (19:03 +0000)] 
Fix a naming problem when SQLITE_MUTEX_NOOP is used. (CVS 5827)

FossilOrigin-Name: 35ce71c6f19953a17aa37abe1c0c97685070e2f6

16 years agoDo not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC...
danielk1977 [Wed, 15 Oct 2008 16:02:48 +0000 (16:02 +0000)] 
Do not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826)

FossilOrigin-Name: 8ef141644edc5182785c6a554222c2ffbe92fef5

16 years agoVersion 3.6.4 (CVS 5825)
drh [Wed, 15 Oct 2008 11:59:23 +0000 (11:59 +0000)] 
Version 3.6.4 (CVS 5825)

FossilOrigin-Name: cd73cffab39d80393f26a20c90aa97cb73d595ea

16 years agoAfter running speed1.test and speed1p.test, reset the size of the lookaside buffer...
danielk1977 [Wed, 15 Oct 2008 11:43:55 +0000 (11:43 +0000)] 
After running speed1.test and speed1p.test, reset the size of the lookaside buffer. Otherwise, subsequent runs of malloc5.test may report an error. Changes to test code only. (CVS 5824)

FossilOrigin-Name: 9283478e69d84aa99b2d4636587c8c0b34e7c4da

16 years agoDisable the page-cache at the end of pcache2.test. (CVS 5823)
danielk1977 [Tue, 14 Oct 2008 19:21:51 +0000 (19:21 +0000)] 
Disable the page-cache at the end of pcache2.test. (CVS 5823)

FossilOrigin-Name: 3d2d05b6286e2a22a711e02f37748065b3b7f86e

16 years agoFix the amalgamation generator to recognize indented #include directives.
drh [Tue, 14 Oct 2008 18:21:11 +0000 (18:21 +0000)] 
Fix the amalgamation generator to recognize indented #include directives.
Ticket #3438. (CVS 5822)

FossilOrigin-Name: 494510d8f25c69f5a5f5937b92f505849def6745

16 years agoFix the xRandomness() method on the unix VFS to return the number of bytes
drh [Tue, 14 Oct 2008 17:58:38 +0000 (17:58 +0000)] 
Fix the xRandomness() method on the unix VFS to return the number of bytes
of randomness obtained. (CVS 5821)

FossilOrigin-Name: b7687e2f2dfa5b0a01ba87ae0bf13684cda50499

16 years agoMake sure malloc3.test runs even if a CREATE TABLE transaction commits
drh [Tue, 14 Oct 2008 15:54:08 +0000 (15:54 +0000)] 
Make sure malloc3.test runs even if a CREATE TABLE transaction commits
prior to the last OOM error. (CVS 5820)

FossilOrigin-Name: 603c40e5b47e4798136af5420a1fa1511791a934

16 years agoUpdate main.mk so that a couple of fts3 files are compiled with SQLITE_TEST when...
danielk1977 [Tue, 14 Oct 2008 14:56:01 +0000 (14:56 +0000)] 
Update main.mk so that a couple of fts3 files are compiled with SQLITE_TEST when building testfixture. (CVS 5819)

FossilOrigin-Name: 8eb315ee5c2a15919171b7d495ac4f1c851b2da9

16 years agoModifications to main.mk so that -DSQLITE_ENABLE_FTS3 works. (CVS 5818)
danielk1977 [Tue, 14 Oct 2008 14:28:35 +0000 (14:28 +0000)] 
Modifications to main.mk so that -DSQLITE_ENABLE_FTS3 works. (CVS 5818)

FossilOrigin-Name: a06d226dee0df0df1aedb9c17353332c6a6e712f

16 years agofix a few return codes in the OS/2 VFS (CVS 5817)
pweilbacher [Mon, 13 Oct 2008 21:46:46 +0000 (21:46 +0000)] 
fix a few return codes in the OS/2 VFS (CVS 5817)

FossilOrigin-Name: 4e978a40f7ee93b09093e82173edc74a992aadeb

16 years agoGet the load extension tests working on amd64. Needed for test coverage. (CVS 5816)
drh [Mon, 13 Oct 2008 17:09:11 +0000 (17:09 +0000)] 
Get the load extension tests working on amd64.  Needed for test coverage. (CVS 5816)

FossilOrigin-Name: 119b69fba0c27c4c479749360176b6eb69d2e70f

16 years agoFix the SQLITE_OMIT_DATETIME_FUNCS compile-time option so that it builds
drh [Mon, 13 Oct 2008 15:35:08 +0000 (15:35 +0000)] 
Fix the SQLITE_OMIT_DATETIME_FUNCS compile-time option so that it builds
successfully. (CVS 5815)

FossilOrigin-Name: c3f91645159511250c9f86c2a97d819f0253d182

16 years agoIn rollback.test, do not check for journal deletion if the journal mode
drh [Mon, 13 Oct 2008 14:16:11 +0000 (14:16 +0000)] 
In rollback.test, do not check for journal deletion if the journal mode
is not DELETE.  Call show_memstats after each test module in all.test
and quick.test. (CVS 5814)

FossilOrigin-Name: df2c28dc7310510bada292a2e8c1be073803858c

16 years agoUse one less temporary table in genfkey.c. The retired table was being used to workar...
danielk1977 [Mon, 13 Oct 2008 10:56:48 +0000 (10:56 +0000)] 
Use one less temporary table in genfkey.c. The retired table was being used to workaround the bug fixed by (5812). (CVS 5813)

FossilOrigin-Name: 73efca985a05930df761b42886a3ba1c5199f32a

16 years agoIf sqlite3_column_value() is called to obtain a value with the MEM_Static flag set...
danielk1977 [Mon, 13 Oct 2008 10:37:49 +0000 (10:37 +0000)] 
If sqlite3_column_value() is called to obtain a value with the MEM_Static flag set, clear it and set the MEM_Ephem flag before returning. Otherwise, if the value is passed to sqlite3_bind_value() or sqlite3_result_value(), sqlite may attempt to use the buffer after the statement has been finalized. This is not always valid, as MEM_Static only guarantees that a MEM.z buffer will be valid for the lifetime of the owner statement, not that it is actually a static buffer. (CVS 5812)

FossilOrigin-Name: b055bfc4e5268d8a66d6a4f5e8aec1285fe4b8e7

16 years agoCheck for failures in winTruncate. Ticket #3415. (CVS 5811)
shane [Sun, 12 Oct 2008 02:27:38 +0000 (02:27 +0000)] 
Check for failures in winTruncate.  Ticket #3415. (CVS 5811)

FossilOrigin-Name: 500c50561fba88948aad21d1aef1e1e96ab8c3aa

16 years agoAdded -DSQLITE_ENABLE_RTREE=1 to the mkdll.sh script. Ticket #3427. (CVS 5810)
shane [Sun, 12 Oct 2008 02:03:37 +0000 (02:03 +0000)] 
Added -DSQLITE_ENABLE_RTREE=1 to the mkdll.sh script. Ticket #3427. (CVS 5810)

FossilOrigin-Name: 66f57ecb1626f3c5292070c1b9a9c1a9a9164d4f

16 years agoAdd gcov compile options to link line when GCOV option enabled. (CVS 5809)
shane [Sun, 12 Oct 2008 01:49:41 +0000 (01:49 +0000)] 
Add gcov compile options to link line when GCOV option enabled. (CVS 5809)

FossilOrigin-Name: 3ddda111867f64d9dfd729c50c4d0555cac1499d

16 years agoAdded SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated functions...
shane [Sun, 12 Oct 2008 00:27:53 +0000 (00:27 +0000)] 
Added SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated functions.  Updated test scripts to skip tests of deprecated functions if they are compiled out. (CVS 5808)

FossilOrigin-Name: ba3711acee6f4659bbf133a23d8f9f37e14d0f38

16 years agoAdd macros tests so that the compiler always recognizes that x86_64 is little endian...
drh [Sat, 11 Oct 2008 18:11:21 +0000 (18:11 +0000)] 
Add macros tests so that the compiler always recognizes that x86_64 is little endian. (CVS 5807)

FossilOrigin-Name: b201e7093c7c47b23b0f17a0890a344f3792d6d3

16 years agoWhen transfering an error message from a statement handle to the database handle...
danielk1977 [Sat, 11 Oct 2008 17:51:38 +0000 (17:51 +0000)] 
When transfering an error message from a statement handle to the database handle so that it can be accessed by sqlite3_errmsg(), a malloc may fail. If this malloc fails, it is considered benign. (CVS 5806)

FossilOrigin-Name: 311003aff85e6b6c47e854d33f46eee31da6f30c

16 years agoConditionally omit prototypes in pcache.h when the corresponding routines
drh [Sat, 11 Oct 2008 17:42:28 +0000 (17:42 +0000)] 
Conditionally omit prototypes in pcache.h when the corresponding routines
are not used.  Ticket #3430. (CVS 5805)

FossilOrigin-Name: 977ae12c365846e1bc582fd17146151953b5ed68

16 years agoFix to sqlite3DbMallocRaw() when SQLITE_OMIT_LOOKASIDE is defined so that
drh [Sat, 11 Oct 2008 17:35:16 +0000 (17:35 +0000)] 
Fix to sqlite3DbMallocRaw() when SQLITE_OMIT_LOOKASIDE is defined so that
once it fails it continues to fail.  Add a comment explaining why this is
important. (CVS 5804)

FossilOrigin-Name: 63dd8be70d333c56171dfd254406abb1af685b0f

16 years agoFix a OOM segfault in the BETWEEN operator parsing - discovered while
drh [Sat, 11 Oct 2008 17:06:04 +0000 (17:06 +0000)] 
Fix a OOM segfault in the BETWEEN operator parsing - discovered while
using SQLITE_OMIT_LOOKASIDE. Add SQLITE_OMIT_LOOKASIDE to test_config.c and
bypass lookaside.test when defined. (CVS 5803)

FossilOrigin-Name: 2a21d52c651ba113c472b6686dcf8ba009924305

16 years agoAdd "nolookaside" case to permutations.test. (CVS 5802)
danielk1977 [Sat, 11 Oct 2008 17:04:04 +0000 (17:04 +0000)] 
Add "nolookaside" case to permutations.test. (CVS 5802)

FossilOrigin-Name: 56fb7a22864774fcbd8cd00195359dc0f223ec8b

16 years agoFix a memory leak on ORDER BY of a compound select caused by the resolver
drh [Sat, 11 Oct 2008 16:47:35 +0000 (16:47 +0000)] 
Fix a memory leak on ORDER BY of a compound select caused by the resolver
on a flattened query.  Also fix a OOM segfault in WHERE clause processing. (CVS 5801)

FossilOrigin-Name: d2c252d6bbde4ae14da6c9e6c2683d763d11c59f

16 years agoAdded an assert() to detect lookaside memory leaks. Also added the
drh [Sat, 11 Oct 2008 15:38:29 +0000 (15:38 +0000)] 
Added an assert() to detect lookaside memory leaks.  Also added the
SQLITE_OMIT_LOOKASIDE compile-time option which is useful in trying to
track down lookaside memory leaks. (CVS 5800)

FossilOrigin-Name: 0c4c66071a46cecc5f87afb8f8f01ae2c90ee9b3

16 years agoFix an assertion fault that occurs with SQLITE_THREADSAFE=0. (CVS 5799)
drh [Sat, 11 Oct 2008 15:20:04 +0000 (15:20 +0000)] 
Fix an assertion fault that occurs with SQLITE_THREADSAFE=0. (CVS 5799)

FossilOrigin-Name: 28bba42b338afd63e1dad9f431d631f6f3027275

16 years agoAdd the SQLITE_OMIT_TRUNCATE_OPTIMIZATION option. Other unrelated
drh [Fri, 10 Oct 2008 23:48:25 +0000 (23:48 +0000)] 
Add the SQLITE_OMIT_TRUNCATE_OPTIMIZATION option.  Other unrelated
documentation enhancements. (CVS 5798)

FossilOrigin-Name: fab4940d54fd1e5459a3d0d9b64b491e6972fd8d

16 years agoFurther simplifications of the code for the LIMIT clause on an UPDATE or DELETE....
shane [Fri, 10 Oct 2008 18:25:45 +0000 (18:25 +0000)] 
Further simplifications of the code for the LIMIT clause on an UPDATE or DELETE.  Added a few test cases to wherelimit.test. (CVS 5797)

FossilOrigin-Name: 282c6a46b25f4e4278fd4c8b0b1cde1de28d8f51

16 years agoAdd the genfkey program to the tool/ directory. (CVS 5796)
danielk1977 [Fri, 10 Oct 2008 17:58:26 +0000 (17:58 +0000)] 
Add the genfkey program to the tool/ directory. (CVS 5796)

FossilOrigin-Name: 84e73fe8a6f538c4b1bb4f641a661d6fafb60c76

16 years agoChange 'pragma foreign_key_list' to return some extra information. (CVS 5795)
danielk1977 [Fri, 10 Oct 2008 17:47:21 +0000 (17:47 +0000)] 
Change 'pragma foreign_key_list' to return some extra information. (CVS 5795)

FossilOrigin-Name: 3bb33cf59da49f13201c0226e964cda067a4e780

16 years agoSimplify the symbol hash table to use only a single key class. Other
drh [Fri, 10 Oct 2008 17:41:28 +0000 (17:41 +0000)] 
Simplify the symbol hash table to use only a single key class.  Other
changes to improve code coverage. (CVS 5794)

FossilOrigin-Name: ff50a8a7e5a15fac192939ff3206fa18d1c5a6dd

16 years agoDocumentation updates. No changes to code. (CVS 5793)
drh [Fri, 10 Oct 2008 17:26:35 +0000 (17:26 +0000)] 
Documentation updates.  No changes to code. (CVS 5793)

FossilOrigin-Name: 07b5f70317a0b2d32df86a01bdeec79ead00f68c

16 years agoSimplify the parser reduction code for the LIMIT clause on an UPDATE or
drh [Fri, 10 Oct 2008 14:27:16 +0000 (14:27 +0000)] 
Simplify the parser reduction code for the LIMIT clause on an UPDATE or
DELETE. (CVS 5792)

FossilOrigin-Name: 3de179630e812396ec29e77f7a06758472d0802f

16 years agoRe-factored memory allocation failure handling in the sqlite3LimitWhere() function...
shane [Fri, 10 Oct 2008 13:35:57 +0000 (13:35 +0000)] 
Re-factored memory allocation failure handling in the sqlite3LimitWhere() function based on failures in the mallocJ.test script. (CVS 5791)

FossilOrigin-Name: 43507bbefbf79e8db8fe31319ad621d48247983f

16 years agoAdded mallocJ.test to test allocation failure handling of the new LIMIT/OFFSET suppor...
shane [Fri, 10 Oct 2008 13:34:29 +0000 (13:34 +0000)] 
Added mallocJ.test to test allocation failure handling of the new LIMIT/OFFSET support for UPDATE/DELETE. (CVS 5790)

FossilOrigin-Name: 5375b348b12a4ae149472c84d6f05a78a5542a21

16 years agoInitial test cases for the new LIMIT/OFFSET support for DELETE/UPDATE. (CVS 5789)
shane [Fri, 10 Oct 2008 06:01:59 +0000 (06:01 +0000)] 
Initial test cases for the new LIMIT/OFFSET support for DELETE/UPDATE. (CVS 5789)

FossilOrigin-Name: d9f5e15ca00d4d54dc395926e4c9171f1d24982a

16 years agoUpdated LIMIT support for DELETE/UPDATE. Omit option changed to SQLITE_ENABLE_UPDATE...
shane [Fri, 10 Oct 2008 04:34:16 +0000 (04:34 +0000)] 
Updated LIMIT support for DELETE/UPDATE.  Omit option changed to SQLITE_ENABLE_UPDATE_DELETE_LIMIT. (CVS 5788)

FossilOrigin-Name: c10e8a3c7ab7f21c95f24d0aba590f5b18a4b028

16 years agoFix an assert() failure that can occur if the user attempts to set an into an integer...
danielk1977 [Thu, 9 Oct 2008 18:48:30 +0000 (18:48 +0000)] 
Fix an assert() failure that can occur if the user attempts to set an into an integer primary key column to a text value in a table that has a BEFORE UPDATE trigger. (CVS 5787)

FossilOrigin-Name: c2cf9d60d6626844193b008a37e4417aa0a0f323

16 years agoNew speed testing tools. (CVS 5786)
drh [Thu, 9 Oct 2008 17:57:33 +0000 (17:57 +0000)] 
New speed testing tools. (CVS 5786)

FossilOrigin-Name: 2d427746d53104ca032c404f7f65c51b41b7a20e

16 years agoAdd a test to verify the sqlite3_column_name() interface returns the
drh [Thu, 9 Oct 2008 15:56:45 +0000 (15:56 +0000)] 
Add a test to verify the sqlite3_column_name() interface returns the
correct value when the query is of the form: "SELECT rowid,* FROM...".
Ticket #3429. (CVS 5785)

FossilOrigin-Name: e90d5a5515f7096e247e6059cf77f8089ed90b2c

16 years agoUpdate the version number to 3.6.4. (CVS 5784)
drh [Thu, 9 Oct 2008 15:56:06 +0000 (15:56 +0000)] 
Update the version number to 3.6.4. (CVS 5784)

FossilOrigin-Name: 4b973ac98d027cc1097fa9845eb4a8489b633ea4

16 years agoMinor cleanup of the new "status" command on the TCL bindings. (CVS 5783)
drh [Thu, 9 Oct 2008 14:45:25 +0000 (14:45 +0000)] 
Minor cleanup of the new "status" command on the TCL bindings. (CVS 5783)

FossilOrigin-Name: ec01bd72ee875df179c680c1a40304d2f807fe38

16 years agoAfter an OP_NullRow is executed on a cursor, cause any subsequent OP_Next or OP_Prev...
danielk1977 [Wed, 8 Oct 2008 17:58:48 +0000 (17:58 +0000)] 
After an OP_NullRow is executed on a cursor, cause any subsequent OP_Next or OP_Prev to behave as if there were no more rows to traverse. Ticket #3424. (CVS 5782)

FossilOrigin-Name: af679f6170b346fe61df7dae963b2a2853e62a62

16 years agoAdd the experimental sqlite3_stmt_status() interface. (CVS 5781)
drh [Tue, 7 Oct 2008 23:46:38 +0000 (23:46 +0000)] 
Add the experimental sqlite3_stmt_status() interface. (CVS 5781)

FossilOrigin-Name: de473efb35ffdf9a8222a70a84dfd7d3198c87c1

16 years agoRaise the hard upper bound on SQLITE_MAX_FUNCTION_ARG to 1000 from 100.
drh [Tue, 7 Oct 2008 19:53:14 +0000 (19:53 +0000)] 
Raise the hard upper bound on SQLITE_MAX_FUNCTION_ARG to 1000 from 100.
The default upper bound is still 100, but it can now be raised as high
as 1000 at compile-time. (CVS 5780)

FossilOrigin-Name: 79df72ee836db91647913055ba6cf55558679b01

16 years agoRemove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0
drh [Tue, 7 Oct 2008 15:25:48 +0000 (15:25 +0000)] 
Remove the SQLITE_MUTEX_APPDEF compile-time option.  The SQLITE_THREADSAFE=0
option always removes all mutex code.  For application-defined mutexes only,
use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1.  Ticket #3421. (CVS 5779)

FossilOrigin-Name: 02a12eb1cfe9307c66556105a1a99d657cc01ab5

16 years agoFix a recently introduced test script bug causing rollback.test to throw an exception...
danielk1977 [Tue, 7 Oct 2008 15:00:08 +0000 (15:00 +0000)] 
Fix a recently introduced test script bug causing rollback.test to throw an exception when run using the "onefile" variation. (CVS 5778)

FossilOrigin-Name: 7d55ec374d62c6d3d588949b96e194920083fe4e

16 years agoHave sqlite3_bind_value() call sqlite3ApiExit() before returning. Otherwise the db...
danielk1977 [Tue, 7 Oct 2008 14:06:11 +0000 (14:06 +0000)] 
Have sqlite3_bind_value() call sqlite3ApiExit() before returning. Otherwise the db->mallocFailed flag may not be cleared. (CVS 5777)

FossilOrigin-Name: 6b7c8d56403f6b9b88b8494c86f3d62e487cb2ac

16 years agoDo not use double unnecessarily in date+time functions. Ticket #3422. (CVS 5776)
drh [Tue, 7 Oct 2008 12:32:13 +0000 (12:32 +0000)] 
Do not use double unnecessarily in date+time functions.  Ticket #3422. (CVS 5776)

FossilOrigin-Name: b03231323a7f06c736c38ae3c5535d2fd025583f

16 years agoFix a problem with hot-journal rollback. SQLITE_CANTOPEN was being returned if the...
danielk1977 [Tue, 7 Oct 2008 11:51:20 +0000 (11:51 +0000)] 
Fix a problem with hot-journal rollback. SQLITE_CANTOPEN was being returned if the hot-journal file contained a pointer to a master journal file that did not exist. (CVS 5775)

FossilOrigin-Name: 22d1feb9b20b8fd9c86066b94e4220cf8929b043

16 years agoInitial support for LIMIT clause on DELETEs and UPDATEs. Changes likely with more...
shane [Tue, 7 Oct 2008 05:27:11 +0000 (05:27 +0000)] 
Initial support for LIMIT clause on DELETEs and UPDATEs.  Changes likely with more testing.  The code can be omitted with the define SQLITE_OMIT_UPDATE_DELETE_LIMIT. (CVS 5774)

FossilOrigin-Name: 9c8b132e34bc6024bc9898182f8f93127ca52ac9

16 years agoRemoved redundant assert(). (CVS 5773)
shane [Tue, 7 Oct 2008 01:18:59 +0000 (01:18 +0000)] 
Removed redundant assert(). (CVS 5773)

FossilOrigin-Name: 486b1124f76bcf0505b6be908f2a3e988ad6e05d

16 years agoAllow INDEXED BY and NOT INDEXED to be used in UPDATE and DELETE statements. (CVS...
danielk1977 [Mon, 6 Oct 2008 16:18:39 +0000 (16:18 +0000)] 
Allow INDEXED BY and NOT INDEXED to be used in UPDATE and DELETE statements. (CVS 5772)

FossilOrigin-Name: 83a7e446b2d4846a6f92bd831a2adaa265f5a786

16 years agoAdd a test script to verify that ticket #3419 stays fixed. (CVS 5771)
drh [Mon, 6 Oct 2008 15:31:13 +0000 (15:31 +0000)] 
Add a test script to verify that ticket #3419 stays fixed. (CVS 5771)

FossilOrigin-Name: c3cf54a1b6bbaaeab4cab701c6cbbed02695facc

16 years agoFix a typo in check-in (5769) (CVS 5770)
drh [Mon, 6 Oct 2008 15:18:02 +0000 (15:18 +0000)] 
Fix a typo in check-in (5769) (CVS 5770)

FossilOrigin-Name: 24891902fa625445aa47ae930f0cb340cc73d25d

16 years agoExpression nodes of type TK_ROW mean the rowid of the first table in the
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

16 years agoIn sqlite3_bind() interfaces, avoid acquiring the mutex until after the
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

16 years agoAdd a test to indexedby.test to check that automatic indexes (sqlite_autoindex_xxx...
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

16 years agoAllow INDEXED BY and NOT INDEXED clauses in SELECT statements. (CVS 5766)
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

16 years agoModifications to bind.test to account for different values of SQLITE_MAX_VARIABLE_NUM...
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

16 years agoChange one of the test cases in incrblob2.test to avoid allocating a 10MB block of...
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

16 years agoChange to reduce the number of OP_Null opcodes in "WHERE <rowid> IN (x,y,z)" queries...
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

16 years agoFix for sqlite3_blob_write(): If either 3rd or 4th argument is less than zero, return...
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

16 years agoFix a typo that prevents the sqlite3_sql() interface from appearing
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

16 years agoOptimize queries that contain "WHERE rowid IN (x, y, z...)" by using an intkey btree...
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

16 years agoAdjust the memory usage bounds on the memsubsys1.test script so that
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

16 years agoFix a bug in where.c where a non-temp register was being incorrectly deallocated...
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

16 years agoAdd some testcase() and assert() macros to btree.c to aid with testing
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

16 years agoFix a comment in btree.c. No code changes. (CVS 5756)
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

16 years agoChange leading tabs into spaces. (CVS 5755)
drh [Tue, 30 Sep 2008 14:06:28 +0000 (14:06 +0000)] 
Change leading tabs into spaces. (CVS 5755)

FossilOrigin-Name: 4e536463c1aa9991de85c7efc826c28896ca61d3

16 years agoFix a recently introduced problem with deleting entries from index tables. (CVS 5754)
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

16 years agoMisc clean up. Wrapped a CE only variable in if-defs. Changed to only provide cache...
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

16 years agoA few minor changes to test scripts so that they work on linux-amd64. (CVS 5752)
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

16 years agoRemove the reparentPage() and reparentChildPages() functions from btree.c. All calls...
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

16 years agoRemove the MemPage.idxShift variable. It is no longer required. (CVS 5750)
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

16 years agoDo not run vacuum.test as part of the "exclusive" permutation test. (CVS 5749)
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

16 years agoUpdate shared_err.test to work with (5668) (return SQLITE_CORRUPT if rollback fails...
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

16 years agoInstead of storing a pointer to the parent page in the MemPage structure, have each...
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

16 years agofix #3077: use full version in pkg-config files (CVS 5746)
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

16 years agoAdd the "truncate" journal mode which commits transactions by truncating the
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

16 years agoMake sure the queueMutex is held prior to writing the pQueueLast field
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

16 years agoPerformance enhancement: avoid calling reparentChildPages() from balance_nonroot...
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

16 years agoOn windows, avoid running those tests in exclusive.test that require the journal...
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

16 years agoAdd file fts3_icu.c to the amalgamation. Because of the way header files are included...
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

16 years agoFix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399...
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

16 years agoCatch another case where SQLITE_IOERR could be returned instead of SQLITE_NOMEM follo...
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

16 years agoAlways transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning....
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

16 years agoEnable the LOCKING_STYLE extensions by default on a Mac. Leave them
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