]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoVersion 3.6.14.2 (CVS 6680) branch_3_6_14
drh [Mon, 25 May 2009 15:00:09 +0000 (15:00 +0000)] 
Version 3.6.14.2 (CVS 6680)

FossilOrigin-Name: ab76d1a252e04a37c5fc49dd8d55bda3055ffe7a

16 years agoUpdate the configure script for version 3.6.14.2. (CVS 6678)
drh [Mon, 25 May 2009 12:40:54 +0000 (12:40 +0000)] 
Update the configure script for version 3.6.14.2. (CVS 6678)

FossilOrigin-Name: 58373119b7de98cbe9402e713bf25644e33710f8

16 years agoPort the fix for ticket #3879 (check-in (6676)) to the 3.6.14 branch. (CVS 6677)
drh [Mon, 25 May 2009 12:02:22 +0000 (12:02 +0000)] 
Port the fix for ticket #3879 (check-in (6676)) to the 3.6.14 branch. (CVS 6677)

FossilOrigin-Name: d2fdae8ed16ab97a18989008edef266c5e66d3a7

16 years agoVersion 3.6.14.1 (CVS 6655)
drh [Tue, 19 May 2009 00:01:24 +0000 (00:01 +0000)] 
Version 3.6.14.1 (CVS 6655)

FossilOrigin-Name: e4267c87e523ff892a3f3e0673b6d689513a469f

16 years agoPort the sqlite3_backup fix of check-in (6632), ticket #3858 onto the
drh [Mon, 18 May 2009 17:11:31 +0000 (17:11 +0000)] 
Port the sqlite3_backup fix of check-in (6632), ticket #3858 onto the
3.6.14.1 branch. (CVS 6654)

FossilOrigin-Name: 0d3abee273c359b77649e6a08a9eaff09d3bde7b

16 years agoUpdate the configure script for the 3.6.14.1 release. (CVS 6653)
drh [Mon, 18 May 2009 16:22:42 +0000 (16:22 +0000)] 
Update the configure script for the 3.6.14.1 release. (CVS 6653)

FossilOrigin-Name: 4ebb85018195d52d8eb0720284f7b2e480c24876

16 years agoPort patches from the trunk into the 3.6.14.1 branch:
drh [Mon, 18 May 2009 16:14:25 +0000 (16:14 +0000)] 
Port patches from the trunk into the 3.6.14.1 branch:
the group_concat() fix of check-in (6616), ticket #3841 and the
pcache fix of check-in (6619), ticket #3844. (CVS 6652)

FossilOrigin-Name: 2a277c55b2f90d53208147423b409bc05e12ebd0

16 years agoUpdate the version number for the 3.6.14.1 branch. (CVS 6651)
drh [Mon, 18 May 2009 16:12:07 +0000 (16:12 +0000)] 
Update the version number for the 3.6.14.1 branch. (CVS 6651)

FossilOrigin-Name: f06cae3b5e42e5a2c1a30cd91a7c594e6cd834d0

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

16 years agoMake sure the left-shift operator never overflows. (CVS 6605)
drh [Tue, 5 May 2009 15:46:43 +0000 (15:46 +0000)] 
Make sure the left-shift operator never overflows. (CVS 6605)

FossilOrigin-Name: 300da30178c46ab9f2ceb0c3e3ee3eac73d5d8e1

16 years agoChanges to update.c to facilitate full coverage testing. (CVS 6604)
drh [Tue, 5 May 2009 15:46:09 +0000 (15:46 +0000)] 
Changes to update.c to facilitate full coverage testing. (CVS 6604)

FossilOrigin-Name: 25a11b9ecae1befd3f58958d68f6346f1e1e47ad

16 years agoMake sure the default value on a column added using ALTER TABLE has the
drh [Tue, 5 May 2009 12:54:50 +0000 (12:54 +0000)] 
Make sure the default value on a column added using ALTER TABLE has the
correct encoding.  Ticket #3838. (CVS 6603)

FossilOrigin-Name: 7f89a860b7cd0993c36a8b0482c2bac950a875d6

16 years agoMake sure va_arg() does not occur on the same line as any "if" statement
drh [Mon, 4 May 2009 20:20:16 +0000 (20:20 +0000)] 
Make sure va_arg() does not occur on the same line as any "if" statement
or "?" operator. (CVS 6602)

FossilOrigin-Name: 3543be6e34ebff48b1b0c1710ae6fec557b09b52

16 years agoAvoid parsing cells that fit entirely on the b-tree page when searching a b-tree...
danielk1977 [Mon, 4 May 2009 19:01:26 +0000 (19:01 +0000)] 
Avoid parsing cells that fit entirely on the b-tree page when searching a b-tree index. (CVS 6601)

FossilOrigin-Name: 77a8239548722f702ead9d7c60df0d68180948fb

16 years agoChanges to auth.c to promote full coverage testing. (CVS 6600)
drh [Mon, 4 May 2009 18:01:39 +0000 (18:01 +0000)] 
Changes to auth.c to promote full coverage testing. (CVS 6600)

FossilOrigin-Name: c7615b44583c4b3afa45b57c6047478c18c234e9

16 years agoSpeed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by rational...
danielk1977 [Mon, 4 May 2009 11:42:29 +0000 (11:42 +0000)] 
Speed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by rationalizing duplicate seek operations. (CVS 6599)

FossilOrigin-Name: cac4f3d812f0a02ca5c1fa78d366f694403929a8

16 years agoWork toward cleaning up the authorizer interface. Work is on-going. This
drh [Mon, 4 May 2009 01:58:31 +0000 (01:58 +0000)] 
Work toward cleaning up the authorizer interface.  Work is on-going.  This
is an incremental check-in. (CVS 6598)

FossilOrigin-Name: 694662f7860179403e0cc55b45ae8afa45aa7dfb

16 years agoChanges to facility full coverage testing of util.c. (CVS 6597)
drh [Sun, 3 May 2009 20:23:53 +0000 (20:23 +0000)] 
Changes to facility full coverage testing of util.c. (CVS 6597)

FossilOrigin-Name: a612299092a48b38c5f9cf430bbcaf41777cbcb3

16 years agoMore changes to insert.c to facilitate full coverage testing. (CVS 6596)
drh [Sun, 3 May 2009 01:00:59 +0000 (01:00 +0000)] 
More changes to insert.c to facilitate full coverage testing. (CVS 6596)

FossilOrigin-Name: 46c4ec968bc22843c65744ab4a01ec7ac605567b

16 years agoSimplifications to the uniqueness constraint failure error message
drh [Sat, 2 May 2009 15:46:46 +0000 (15:46 +0000)] 
Simplifications to the uniqueness constraint failure error message
generation code. (CVS 6595)

FossilOrigin-Name: 8f3cac7682a0c992f95f7453aaf9a29b1fe35d6f

16 years agoRemove the aFKey hash table, which was not being used. Simplify the
drh [Sat, 2 May 2009 13:29:37 +0000 (13:29 +0000)] 
Remove the aFKey hash table, which was not being used.  Simplify the
FKey object.  Simplify the hash.c module since the copyKey parameter
formerly used only by aFKey is now no longer required. (CVS 6594)

FossilOrigin-Name: 80c43a355c6e482457abc2f9c3ad3a565cec55fb

16 years agoReduce the size of an integer literal in rowhash.tcl so that the test
drh [Sat, 2 May 2009 12:02:01 +0000 (12:02 +0000)] 
Reduce the size of an integer literal in rowhash.tcl so that the test
is able to run with the default TCL installation on Mac OS 10.5. (CVS 6593)

FossilOrigin-Name: 2229accef308db9feac4e1de16b57e7f680dbb1a

16 years agoWhen a cursor points at the last entry of an intkey btree after an insert, leave...
danielk1977 [Sat, 2 May 2009 10:03:09 +0000 (10:03 +0000)] 
When a cursor points at the last entry of an intkey btree after an insert, leave it there (instead of moving it to the tree root node). This speeds up statements of the form "INSERT INTO ... SELECT ..." that use auto-generated rowids. (CVS 6592)

FossilOrigin-Name: 9950c0a79c82eb7d8495b0b1a8fe117d566e2387

16 years agoDo not reset the cursor before seeking it in sqlite3BtreeInsert(). This speeds up...
danielk1977 [Sat, 2 May 2009 07:36:49 +0000 (07:36 +0000)] 
Do not reset the cursor before seeking it in sqlite3BtreeInsert(). This speeds up INSERT operations that use auto-generated rowid values. (CVS 6591)

FossilOrigin-Name: 20c4acc291def33980f584f882c76e85ee1c8238

16 years agoWhen checking indices for xfer compatibility, compare collating sequences
drh [Sat, 2 May 2009 00:28:19 +0000 (00:28 +0000)] 
When checking indices for xfer compatibility, compare collating sequences
by string, not by pointer. (CVS 6590)

FossilOrigin-Name: 7d2b80c7addc2d03d49647da9c6df9113f01349d

16 years agoRecord within the Token structure itself whether or not the token has
drh [Fri, 1 May 2009 21:13:36 +0000 (21:13 +0000)] 
Record within the Token structure itself whether or not the token has
been dequoted.  This steals one bit from the length of a token and
thus limits the size of tokens to 1GiB. (CVS 6589)

FossilOrigin-Name: 12bcb03d9b9e1a31c1a3c67cbb4263cc0af2f3d0

16 years agoFix an error message that is generated if the number of columns do not
drh [Fri, 1 May 2009 15:17:48 +0000 (15:17 +0000)] 
Fix an error message that is generated if the number of columns do not
match on an INSERT into a virtual table with hidden columns. (CVS 6588)

FossilOrigin-Name: 795b453c9a03c32d9d4cdf62823d2b9dd667cc44

16 years agoUpdate PRAGMA integrity_check so that it treats SQLITE_IOERR_NOMEM errors
drh [Fri, 1 May 2009 13:16:54 +0000 (13:16 +0000)] 
Update PRAGMA integrity_check so that it treats SQLITE_IOERR_NOMEM errors
from underlying components the same as SQLITE_NOMEM errors. (CVS 6587)

FossilOrigin-Name: 26444f2a4426d2e51464ef69ed83d3c78be2c11f

16 years agoChange lock2.test so that it does not enter a busy loop if the child process exists...
danielk1977 [Fri, 1 May 2009 10:55:34 +0000 (10:55 +0000)] 
Change lock2.test so that it does not enter a busy loop if the child process exists unexpectedly. (CVS 6586)

FossilOrigin-Name: 164a7f5a45c3e7f7a73899678c374535b270b130

16 years agoRemove a NEVER() clause from a condition that is true at least once when running...
danielk1977 [Fri, 1 May 2009 06:19:21 +0000 (06:19 +0000)] 
Remove a NEVER() clause from a condition that is true at least once when running attachmalloc.test. (CVS 6585)

FossilOrigin-Name: 514efc7312d725c3fe35741e8c000526f3bdb3a6

16 years agoFix for tempdb.test so that it passes when running the inmemory_journal permutation...
danielk1977 [Fri, 1 May 2009 05:23:17 +0000 (05:23 +0000)] 
Fix for tempdb.test so that it passes when running the inmemory_journal permutation test. (CVS 6584)

FossilOrigin-Name: 0256187b512c5849ffae0644e6a42ec0ca2de894

16 years agoFix processing of BEFORE triggers on INSERT statements with RHS SELECTs
drh [Fri, 1 May 2009 02:08:04 +0000 (02:08 +0000)] 
Fix processing of BEFORE triggers on INSERT statements with RHS SELECTs
that insert a NULL into the INTEGER PRIMARY KEY.  Ticket #3832. (CVS 6583)

FossilOrigin-Name: 4a1f6a3a9ac8b476c86edac83b555adeef0be4e6

16 years agoMore cleanup, etc. to support MSVC compiles. (CVS 6582)
shane [Thu, 30 Apr 2009 17:45:33 +0000 (17:45 +0000)] 
More cleanup, etc. to support MSVC compiles. (CVS 6582)

FossilOrigin-Name: 2cd9655e7313671f2bbe8d4a6f13246cbbf61205

16 years agoDisable an always-false test in the attach.c module. (CVS 6581)
drh [Thu, 30 Apr 2009 17:38:37 +0000 (17:38 +0000)] 
Disable an always-false test in the attach.c module. (CVS 6581)

FossilOrigin-Name: 92b69481bd0eedf06599c40623b38a6f4990010a

16 years agoFix a problem with in-memory sub-journals and exclusive locking mode. Also a test...
danielk1977 [Thu, 30 Apr 2009 16:41:00 +0000 (16:41 +0000)] 
Fix a problem with in-memory sub-journals and exclusive locking mode. Also a test script problem introduced by (6575). (CVS 6580)

FossilOrigin-Name: d67af3f5a21329e133aa6cf2be745a9f8c1a6562

16 years agoDocumentation updates for sqlite3_set_authorizer(). No changes to code. (CVS 6579)
drh [Thu, 30 Apr 2009 15:59:56 +0000 (15:59 +0000)] 
Documentation updates for sqlite3_set_authorizer().  No changes to code. (CVS 6579)

FossilOrigin-Name: 41f39c3145f2659fdb636cae07cdd424a10ac6e9

16 years agoDisallow attaching the same database multiple times to the same db connection
drh [Thu, 30 Apr 2009 13:30:32 +0000 (13:30 +0000)] 
Disallow attaching the same database multiple times to the same db connection
in shared cache mode, since doing so leads to deadlock. (CVS 6578)

FossilOrigin-Name: 715f14f1dcaf604d4794bf3e18e245d4f8c5d5a9

16 years agoFix apparent typo on exclusive.test in the (6575) check-in. (CVS 6577)
drh [Thu, 30 Apr 2009 12:25:58 +0000 (12:25 +0000)] 
Fix apparent typo on exclusive.test in the (6575) check-in. (CVS 6577)

FossilOrigin-Name: 95d22405e096355ce815cdb0908c4ef04107b490

16 years agoChanges sqlite3TempInMemory() to take a const parameter. (CVS 6576)
drh [Thu, 30 Apr 2009 12:25:10 +0000 (12:25 +0000)] 
Changes sqlite3TempInMemory() to take a const parameter. (CVS 6576)

FossilOrigin-Name: aa29a14ca040db25dadbca787aa75be3b7588415

16 years agoWhen SQLite is configured to use in-memory temp files (either by setting SQLITE_TEMP_...
danielk1977 [Thu, 30 Apr 2009 09:10:37 +0000 (09:10 +0000)] 
When SQLite is configured to use in-memory temp files (either by setting SQLITE_TEMP_STORE during compilation or using the temp_store pragma at run time), store statement/savepoint journals in memory also. Ticket #3825. (CVS 6575)

FossilOrigin-Name: 38f8c5a14cd221af9e115a0fea689f2ff39e30e5

16 years agoFix a memory leak introduced in the previous check-in. (CVS 6574)
drh [Thu, 30 Apr 2009 05:40:34 +0000 (05:40 +0000)] 
Fix a memory leak introduced in the previous check-in. (CVS 6574)

FossilOrigin-Name: f082bf36051fef92ddda0339777a00cd1f0ba988

16 years agoTake care not to leave a zombie attached database if the attachment fails
drh [Thu, 30 Apr 2009 05:19:04 +0000 (05:19 +0000)] 
Take care not to leave a zombie attached database if the attachment fails
due to an encoding mismatch.  Update attach logic to always use dynamically
allocated error message strings. (CVS 6573)

FossilOrigin-Name: a6cb4002ada311b56fa2b7430b98b9a0fa698a01

16 years agoRemove always-true tests from attach.c. In btree.c, always test the return
drh [Thu, 30 Apr 2009 01:22:41 +0000 (01:22 +0000)] 
Remove always-true tests from attach.c.  In btree.c, always test the return
from sqlite3PagerSetPagesize() since it might return SQLITE_NOMEM. (CVS 6572)

FossilOrigin-Name: 8bf60b24ffcf6ac15f41eaa7f976b810e0c66734

16 years agoRemove an always-true test from delete.c. Move the sqlite3OpenTable()
drh [Thu, 30 Apr 2009 00:11:09 +0000 (00:11 +0000)] 
Remove an always-true test from delete.c.  Move the sqlite3OpenTable()
routine from delete.c to insert.c since it is not used in delete.c. (CVS 6571)

FossilOrigin-Name: 71756dc870910665ef5fdbc7343bc3eedbe3ce65

16 years agoFixed compile for MSVC; removed compiler warnings; changes for NDEBUG build; minor...
shane [Wed, 29 Apr 2009 18:11:59 +0000 (18:11 +0000)] 
Fixed compile for MSVC;  removed compiler warnings; changes for NDEBUG build; minor code tweaks. (CVS 6570)

FossilOrigin-Name: e98b12425ff036b36165dfd2002e0530ca27a677

16 years agoModify the assemblePage() function in btree.c so that it runs slightly faster. (CVS...
danielk1977 [Wed, 29 Apr 2009 17:49:59 +0000 (17:49 +0000)] 
Modify the assemblePage() function in btree.c so that it runs slightly faster. (CVS 6569)

FossilOrigin-Name: 7ec42e989f1d4abdc6d52f8feebf51985f36b2bd

16 years agoUpdate the documentation on the sqlite3_changes() and sqlite3_total_changes()
drh [Wed, 29 Apr 2009 14:33:44 +0000 (14:33 +0000)] 
Update the documentation on the sqlite3_changes() and sqlite3_total_changes()
functions. (CVS 6568)

FossilOrigin-Name: 58c7bdb21c719bf06713ff8ffa7ee51cf1973712

16 years agoFix a case in where.c where a crash can follow a malloc failure. Also modify test...
danielk1977 [Wed, 29 Apr 2009 11:50:53 +0000 (11:50 +0000)] 
Fix a case in where.c where a crash can follow a malloc failure. Also modify test code in test8.c to check a return code that was being dropped (causing a test in vtab_err.test to fail). (CVS 6567)

FossilOrigin-Name: 9664e2b6c69271a7ca55af7812a186773a7c6592

16 years agoAdd a version of cellSizePtr() that is faster than using sqlite3BtreeParseCellPtr...
danielk1977 [Wed, 29 Apr 2009 11:31:47 +0000 (11:31 +0000)] 
Add a version of cellSizePtr() that is faster than using sqlite3BtreeParseCellPtr(). This speeds up balance_nonroot(). (CVS 6566)

FossilOrigin-Name: e8f7f7b787fe941093edaea44db4d361fad1e002

16 years agoSimplify a conditional expression in btree.c. (CVS 6565)
danielk1977 [Wed, 29 Apr 2009 06:27:56 +0000 (06:27 +0000)] 
Simplify a conditional expression in btree.c. (CVS 6565)

FossilOrigin-Name: fc3a5ac2353142082fe14d47f9c2b662407ea3f7

16 years agoFix an out-of-order test number in blob.test. Cosmetic change. No
drh [Tue, 28 Apr 2009 18:00:27 +0000 (18:00 +0000)] 
Fix an out-of-order test number in blob.test.  Cosmetic change.  No
changes to code.  Ticket #3830. (CVS 6564)

FossilOrigin-Name: e855654283a23d903fd531162655a8c4fa01775b

16 years agoFix asserts in hash.c so that zero-length symbols can be used. (CVS 6563)
drh [Tue, 28 Apr 2009 17:33:16 +0000 (17:33 +0000)] 
Fix asserts in hash.c so that zero-length symbols can be used. (CVS 6563)

FossilOrigin-Name: fe9f00aa369051beee09ab3d1a2e046a1f679a40

16 years agoWhen testing with TEMP_STORE=3 and the test pcache, only run 20 iterations in trans...
danielk1977 [Tue, 28 Apr 2009 16:37:59 +0000 (16:37 +0000)] 
When testing with TEMP_STORE=3 and the test pcache, only run 20 iterations in trans.test. Otherwise the test pcache runs out of memory. (CVS 6562)

FossilOrigin-Name: 0799b729a7fe50ee935ac3bd9f95118288d33f6e

16 years agoRemove an unused function declaration from hash.h. (CVS 6561)
drh [Tue, 28 Apr 2009 16:35:42 +0000 (16:35 +0000)] 
Remove an unused function declaration from hash.h. (CVS 6561)

FossilOrigin-Name: fcf70bb8b8ab7682d46fa7e75338dfd8ecf472a3

16 years agoFurther adjustment to rowhash.test to account for rowid collisions. (CVS 6560)
danielk1977 [Tue, 28 Apr 2009 15:48:08 +0000 (15:48 +0000)] 
Further adjustment to rowhash.test to account for rowid collisions. (CVS 6560)

FossilOrigin-Name: 94a23f993381412c7533878d44faa2f8e47e58ce

16 years agoSimplifications to the symbol table implementation in hash.c. For very small
drh [Tue, 28 Apr 2009 15:43:45 +0000 (15:43 +0000)] 
Simplifications to the symbol table implementation in hash.c.  For very small
symbol tables (less than 10 entries) a simple linked list is used instead
of a hash table.  Number of hash table buckets is limited to prevent large
allocations. (CVS 6559)

FossilOrigin-Name: 5c737835dec9e6038b304c198aa14337a6f23c1c

16 years agoHave sqlite3_create_collation() return MISUSE if passed an encoding value other than...
danielk1977 [Tue, 28 Apr 2009 15:35:38 +0000 (15:35 +0000)] 
Have sqlite3_create_collation() return MISUSE if passed an encoding value other than SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE, SQLITE_UTF16 or SQLITE_UTF16_ALIGNED. (CVS 6558)

FossilOrigin-Name: 7975b6f2ec7736b3656a264c2f7e7e95ce7a78e4

16 years agoDo not store the zero string terminator as part of the name when holding
drh [Tue, 28 Apr 2009 13:01:09 +0000 (13:01 +0000)] 
Do not store the zero string terminator as part of the name when holding
symbols in the symbol table. (CVS 6557)

FossilOrigin-Name: 23d67af39227aeade2ea0292e1b8844eea580993

16 years agoAnother fix to the same assert as in (6555). It can also fail after a malloc error...
danielk1977 [Tue, 28 Apr 2009 12:08:15 +0000 (12:08 +0000)] 
Another fix to the same assert as in (6555). It can also fail after a malloc error. (CVS 6556)

FossilOrigin-Name: e096f90a57f0e0d1dbeaafc72762035ca55ab803

16 years agoFix an assert that could fail after a parse error in expr.c. (CVS 6555)
danielk1977 [Tue, 28 Apr 2009 11:10:39 +0000 (11:10 +0000)] 
Fix an assert that could fail after a parse error in expr.c. (CVS 6555)

FossilOrigin-Name: a37d1174eb80e9a09522b236afdb47283f312d06

16 years agoAvoid changing the pager journal-mode once a write-transaction is open, even if no...
danielk1977 [Tue, 28 Apr 2009 05:27:20 +0000 (05:27 +0000)] 
Avoid changing the pager journal-mode once a write-transaction is open, even if no database pages have been modified. (CVS 6554)

FossilOrigin-Name: ad8aba3eff90d42b936e3644f10cbbd431eebad8

16 years agoAdd test cases for sqlite3_complete with an EXPLAIN QUERY PLAN on a
drh [Tue, 28 Apr 2009 04:51:29 +0000 (04:51 +0000)] 
Add test cases for sqlite3_complete with an EXPLAIN QUERY PLAN on a
CREATE TRIGGER statement.  Ticket #3828. (CVS 6553)

FossilOrigin-Name: 6b86b40edadb9c9cbc0db5a43a8277434f9d7171

16 years agoMake sure sqlite3_open16() always zeros the db return pointer if
drh [Tue, 28 Apr 2009 04:47:31 +0000 (04:47 +0000)] 
Make sure sqlite3_open16() always zeros the db return pointer if
SQLite initialization fails. (CVS 6552)

FossilOrigin-Name: 057c7d171397e19c8f3ac2362ea45f2b4a50530c

16 years agoEnhance sqlite3_complete() so that it understands EXPLAIN QUERY PLAN.
drh [Tue, 28 Apr 2009 04:46:41 +0000 (04:46 +0000)] 
Enhance sqlite3_complete() so that it understands EXPLAIN QUERY PLAN.
Ticket #3828.  Testing is done in TH3. (CVS 6551)

FossilOrigin-Name: 3ac1b15f552fe005630e43a92fffa6a4abd6675d

16 years agoBring the documenation and implementation of sqlite3_collation_needed() into
drh [Mon, 27 Apr 2009 18:46:06 +0000 (18:46 +0000)] 
Bring the documenation and implementation of sqlite3_collation_needed() into
agreement.  Use a more efficient implementation of sqlite3ErrStr().
sqlite3_result_error_code() now calls sqlite3ErrStr() if no prior
error string was set. (CVS 6550)

FossilOrigin-Name: cb9af8293624da35c32077d0f46d5b0cf826dcf5

16 years agoTests for the new asynchronous IO API. (CVS 6549)
danielk1977 [Sat, 25 Apr 2009 08:39:14 +0000 (08:39 +0000)] 
Tests for the new asynchronous IO API. (CVS 6549)

FossilOrigin-Name: 11b2564e7159168cd0815bb9bc93688586fad1e0

16 years agoAdd another test case for the "x IS NULL" uniqueness problem of ticket #3824.
drh [Fri, 24 Apr 2009 20:32:31 +0000 (20:32 +0000)] 
Add another test case for the "x IS NULL" uniqueness problem of ticket #3824.
No changes to code.  This just double-checks that everything is working now. (CVS 6548)

FossilOrigin-Name: 3ceae3579bc42974865cf6fe0bc42001e786e894

16 years agoDequote the "from" table in a FOREIGN KEY definition (affects the output of "pragma...
danielk1977 [Fri, 24 Apr 2009 18:06:09 +0000 (18:06 +0000)] 
Dequote the "from" table in a FOREIGN KEY definition (affects the output of "pragma foreign_key_list). Fix for #3800. (CVS 6547)

FossilOrigin-Name: 600482d1619c07690b6517ded9655462bdab7538

16 years agoGet rid of the special RowSet processing in where.c and move that into
drh [Fri, 24 Apr 2009 15:46:21 +0000 (15:46 +0000)] 
Get rid of the special RowSet processing in where.c and move that into
clients.  Added the WHERE_DUPLICATES_OK option to eliminate an unnecessary
RowSet during DELETE with a WHERE clause containing ORs. (CVS 6546)

FossilOrigin-Name: 98606bee9e41b8969fb639fc43864e230185ca43

16 years agoMake sure that the optimizer realizes that an "x IS NULL" contraint does not
drh [Fri, 24 Apr 2009 14:51:42 +0000 (14:51 +0000)] 
Make sure that the optimizer realizes that an "x IS NULL" contraint does not
necessarily give a single-row result even on a UNIQUE index.  Ticket #3824. (CVS 6545)

FossilOrigin-Name: 207335fdbf992a2f5bc5982b3163a38016ba1b21

16 years agoMake selecting the asynchronous IO file-locking mode a runtime operation. Still untes...
danielk1977 [Fri, 24 Apr 2009 10:13:05 +0000 (10:13 +0000)] 
Make selecting the asynchronous IO file-locking mode a runtime operation. Still untested. (CVS 6544)

FossilOrigin-Name: 577277e84a05707b8c21aa08bc5fc314c1ac38ac

16 years agoImprove comments and documentation of the asynchronous IO VFS module. (CVS 6543)
danielk1977 [Fri, 24 Apr 2009 09:27:16 +0000 (09:27 +0000)] 
Improve comments and documentation of the asynchronous IO VFS module. (CVS 6543)

FossilOrigin-Name: 92bc6be2a86f8a68ceded2bc08fe7d6ff23b56fb

16 years agoos_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing...
shane [Thu, 23 Apr 2009 19:08:32 +0000 (19:08 +0000)] 
os_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing modes in the same manner as os_unix.c. Ticket #3821. (CVS 6542)

FossilOrigin-Name: 18fef3fcf61c137a89a83352f6769ed06845434a

16 years agoUpdated misc. test scripts for Windows testing with gcc/cygwin; (CVS 6541)
shane [Thu, 23 Apr 2009 18:42:04 +0000 (18:42 +0000)] 
Updated misc. test scripts for Windows testing with gcc/cygwin; (CVS 6541)

FossilOrigin-Name: 1e2c71596e3f7a69afc5b745c20b2e4e81bffda5

16 years agoRemove some incorrect async tests; (CVS 6540)
shane [Thu, 23 Apr 2009 18:41:25 +0000 (18:41 +0000)] 
Remove some incorrect async tests; (CVS 6540)

FossilOrigin-Name: 03af25b3ee001c1bf3e7a3218fad6ed311c7c259

16 years agoMove the asynchronous IO code from src/test_async.c to ext/async/. Refactor it to...
danielk1977 [Thu, 23 Apr 2009 14:58:39 +0000 (14:58 +0000)] 
Move the asynchronous IO code from src/test_async.c to ext/async/. Refactor it to be a standalone module and to support windows. (CVS 6539)

FossilOrigin-Name: e71fb0fb8d83b4453c3c1e84606bf58d04926809

16 years agoRework the column-cache mechanism to be more robust (and more correct).
drh [Thu, 23 Apr 2009 13:22:42 +0000 (13:22 +0000)] 
Rework the column-cache mechanism to be more robust (and more correct).
The column-alias cache is currently disabled, (CVS 6538)

FossilOrigin-Name: dd4d67a67454a3ff13c286a2a8360c5f0432c91d

16 years agoEliminate the OP_VRowid opcode. The regular OP_Rowid now work for both
drh [Wed, 22 Apr 2009 17:15:02 +0000 (17:15 +0000)] 
Eliminate the OP_VRowid opcode.  The regular OP_Rowid now work for both
regular and virtual tables. (CVS 6537)

FossilOrigin-Name: ecbef45011f1f98d940b2d3492941213d9f04172

16 years agoChange the OP_Rowid opcode so that a deferred OP_Seek is pending, it simply
drh [Wed, 22 Apr 2009 15:32:59 +0000 (15:32 +0000)] 
Change the OP_Rowid opcode so that a deferred OP_Seek is pending, it simply
pulls the rowid from the deferred seek target and does not actually move
the cursor or do a seek.  Other where.c cleanups. (CVS 6536)

FossilOrigin-Name: 1c508a99822caa383e7e24b5d09a9bddd2ee3a00

16 years agoRemove the rowhash object from the code. Rowset now fills its role. (CVS 6535)
drh [Wed, 22 Apr 2009 02:15:47 +0000 (02:15 +0000)] 
Remove the rowhash object from the code.  Rowset now fills its role. (CVS 6535)

FossilOrigin-Name: e963bed0fe3ce5fa32f04b930e5ed0956dc2aa47

16 years agoExtend the Rowset object to contain all the capabilities of Rowhash in
drh [Wed, 22 Apr 2009 00:47:00 +0000 (00:47 +0000)] 
Extend the Rowset object to contain all the capabilities of Rowhash in
addition to its legacy capabilities.  Use Rowset to replace Rowhash.
In addition to requiring less code, This removes the 2^32 result row
limitation, uses less memory, and gives better bounds on worst-case
performance.  The Rowhash implementation has yet to be removed. (CVS 6534)

FossilOrigin-Name: b101cf70b75c9772aaf50e0eadd0cfa37c84d193

16 years agoMove RowHashBlock.nUsed to RowHash.nUsed. Fix a typo in a comment in test_async.c...
danielk1977 [Tue, 21 Apr 2009 18:20:45 +0000 (18:20 +0000)] 
Move RowHashBlock.nUsed to RowHash.nUsed. Fix a typo in a comment in test_async.c. (CVS 6533)

FossilOrigin-Name: 799d31d99fd18a6f99862433384e37d6747ee5b3

16 years agoFix a segfault that followed a malloc failure introduced by (6527). (CVS 6532)
danielk1977 [Tue, 21 Apr 2009 17:23:04 +0000 (17:23 +0000)] 
Fix a segfault that followed a malloc failure introduced by (6527). (CVS 6532)

FossilOrigin-Name: 08e71b114087cfddd36c066265982172fcb41c9a

16 years agoAdjust the rowhash.test module so that it recovers gracefully in the rare
drh [Tue, 21 Apr 2009 17:13:38 +0000 (17:13 +0000)] 
Adjust the rowhash.test module so that it recovers gracefully in the rare
event of a rowid collision. (CVS 6531)

FossilOrigin-Name: 72e1680904a354811cd2956bd57769ee2482c8bb

16 years agoAllocate the initial RowHash object using lookaside. (CVS 6530)
drh [Tue, 21 Apr 2009 16:15:15 +0000 (16:15 +0000)] 
Allocate the initial RowHash object using lookaside. (CVS 6530)

FossilOrigin-Name: 9b30ab7199d8b51bdea8ec7f0410281527623673

16 years agoNew comments and minor refactoring of rowhash.c. (CVS 6529)
drh [Tue, 21 Apr 2009 15:05:18 +0000 (15:05 +0000)] 
New comments and minor refactoring of rowhash.c. (CVS 6529)

FossilOrigin-Name: b8cb4f3e2473afaee7c147a6b3f0972f69391a9a

16 years agoRemove a redundant test from sqlite3_shutdown(). (CVS 6528)
drh [Tue, 21 Apr 2009 12:02:56 +0000 (12:02 +0000)] 
Remove a redundant test from sqlite3_shutdown(). (CVS 6528)

FossilOrigin-Name: 6f481ceb503c7df74d9417a5a7f019ff56261ea8

16 years agoAttempt to optimize virtual table queries with 'OR' expressions in the WHERE clause...
danielk1977 [Tue, 21 Apr 2009 09:02:45 +0000 (09:02 +0000)] 
Attempt to optimize virtual table queries with 'OR' expressions in the WHERE clause. (CVS 6527)

FossilOrigin-Name: f61e4cd93682fd98bea2a71d346f9eaa68454390

16 years agoChange the journal_mode pragma so that it always returns the current
drh [Mon, 20 Apr 2009 17:43:03 +0000 (17:43 +0000)] 
Change the journal_mode pragma so that it always returns the current
journal mode, even on a failed attempt to change the journal mode.
Allow the journal mode to be changed as long as there is not a pending
transaction.  Ticket #3811. (CVS 6526)

FossilOrigin-Name: 419e320ae51639794335d19699f8e1189e524e7d

16 years agoAdd new tests to show that journal_mode=OFF works with locking_mode=EXCLUSIVE
drh [Mon, 20 Apr 2009 13:32:33 +0000 (13:32 +0000)] 
Add new tests to show that journal_mode=OFF works with locking_mode=EXCLUSIVE
as long as the journal_mode is set prior to the first transaction.
Ticket #3811. (CVS 6525)

FossilOrigin-Name: e62ac26f72224a4ba6c7dc5c32b7e4370461764d

16 years agoClarify the documentation to make it clear that sqlite3_interrupt() does not
drh [Mon, 20 Apr 2009 12:31:46 +0000 (12:31 +0000)] 
Clarify the documentation to make it clear that sqlite3_interrupt() does not
effect new SQL statements that are started after the running statement
count reaches zero.  Ticket #3815. (CVS 6524)

FossilOrigin-Name: 3182e8bf69eb4e5e4070930cb9c750942b1dc735