]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoAutomatically retry system calls that fail with EINTR. This is a backport branch-3.7.4
drh [Wed, 23 Feb 2011 14:33:31 +0000 (14:33 +0000)] 
Automatically retry system calls that fail with EINTR.  This is a backport
of the changes from [b9d29ea385bafc] and [af9ba2a6d2c379].

FossilOrigin-Name: 8609a15dfad23a7c5311b52617d5c4818c0b8d1e

14 years agoBackport the os_unix.c error logging enhancements from
drh [Wed, 23 Feb 2011 14:05:08 +0000 (14:05 +0000)] 
Backport the os_unix.c error logging enhancements from
check-in [01076528a43b61a].

FossilOrigin-Name: a4333b1545c6f96caef5b6dfaf94c8446e1b5d44

14 years agoPull in the fix to STAT2 processing from check-in
drh [Sun, 20 Feb 2011 21:03:04 +0000 (21:03 +0000)] 
Pull in the fix to STAT2 processing from check-in
[70a3d81742f].

FossilOrigin-Name: 692aafb17e7fca4e303ca14da2925cb95a22f71e

14 years agoDo not report the database corruption if the the db size header field is
drh [Sun, 20 Feb 2011 03:40:59 +0000 (03:40 +0000)] 
Do not report the database corruption if the the db size header field is
greater than the file size on disk unless the two change-counter header
fields are identical.  Fix for ticket [89b8c9ac54].  Backport by cherrypick
of [00c4596f0b270].

FossilOrigin-Name: e2616004dfaf61d776e448693971b6478552a635

14 years agoMake sure the change-counter and SQLite-version fields of the header are
drh [Sun, 20 Feb 2011 03:32:54 +0000 (03:32 +0000)] 
Make sure the change-counter and SQLite-version fields of the header are
set correctly even after vacuuming.  This is a backport of changes
[0be92a7576] and [04fa1e1690] to address ticket [5de63f876cc].

FossilOrigin-Name: 442be1358e7dff17548718c0c7c031ec320d135d

14 years agoDo not raise an SQLITE_CORRUPT error in Recoverymode if the database size
drh [Sun, 20 Feb 2011 03:27:52 +0000 (03:27 +0000)] 
Do not raise an SQLITE_CORRUPT error in Recoverymode if the database size
in the header is larger than the physical file size.  This is a cherrypick
of checkin [114640d920e16c8]

FossilOrigin-Name: 7701b07759d63537408a68bac85cb1b8b27160b7

14 years agoBackport the sqlite3.h generator fix so that it works with newer versions
drh [Sun, 20 Feb 2011 03:22:51 +0000 (03:22 +0000)] 
Backport the sqlite3.h generator fix so that it works with newer versions
of Fossil.  See [3513bf6ee090d9b] for the original.

FossilOrigin-Name: 29597a71d0848cd5faeb68b606a9127910c8dc57

14 years agoBackport the changes of checkin [cf86affcb7d308949]
drh [Sun, 20 Feb 2011 03:20:03 +0000 (03:20 +0000)] 
Backport the changes of checkin [cf86affcb7d308949]
("Make wal_checkpoint a no-op if a prior checkpoint has already copied
all WAL content into the database.") to the 3.7.4 release.

FossilOrigin-Name: e6e540ab7779f5363bf0c93a9e1482b0f31782ce

14 years agoBackport the SQLITE_PROTOCOL fix and the extra defensive measure to version
drh [Sun, 20 Feb 2011 03:11:27 +0000 (03:11 +0000)] 
Backport the SQLITE_PROTOCOL fix and the extra defensive measure to version
3.7.4.

FossilOrigin-Name: bcc22c4b800e1f5b5619193890548d2a6bc19280

14 years agoVersion 3.7.4 release candidate 4 version-3.7.4
drh [Tue, 7 Dec 2010 20:14:08 +0000 (20:14 +0000)] 
Version 3.7.4 release candidate 4

FossilOrigin-Name: a586a4deeb25330037a49df295b36aaf624d0f45

14 years agoWork around restriction in Windows file locking.
shaneh [Tue, 7 Dec 2010 17:12:21 +0000 (17:12 +0000)] 
Work around restriction in Windows file locking.

FossilOrigin-Name: fe441df9ba447d97571e919099846efa3ec87427

14 years agoFix a bug in the demo "superlock" code preventing locks from being released in some...
dan [Tue, 7 Dec 2010 16:39:25 +0000 (16:39 +0000)] 
Fix a bug in the demo "superlock" code preventing locks from being released in some circumstances.

FossilOrigin-Name: 65c393793ff5fdb935d5acfe5bdc3bca052f7314

14 years agoVersion 3.7.4 release candidate 3
drh [Tue, 7 Dec 2010 14:59:22 +0000 (14:59 +0000)] 
Version 3.7.4 release candidate 3

FossilOrigin-Name: 11c74c0dae0e302f248ec4af6dc8a9376203b034

14 years agoRun some of the existing test scripts with optimizations disabled as part of all...
dan [Tue, 7 Dec 2010 14:32:28 +0000 (14:32 +0000)] 
Run some of the existing test scripts with optimizations disabled as part of all.test.

FossilOrigin-Name: b0634d2f909fb192d20315e59fa31fcd8f316541

14 years agoAdd tests to tkt-80ba201079.test.
dan [Tue, 7 Dec 2010 07:57:49 +0000 (07:57 +0000)] 
Add tests to tkt-80ba201079.test.

FossilOrigin-Name: c370338c772bcd0797a23f83c3f6dc019640c6dd

14 years agoFix the build so that it once again works with SQLITE_OMIT_SHARED_CACHE
drh [Mon, 6 Dec 2010 21:09:59 +0000 (21:09 +0000)] 
Fix the build so that it once again works with SQLITE_OMIT_SHARED_CACHE
and SQLITE_OMIT_AUTOVACUUM.

FossilOrigin-Name: fabcb6b95e1d4059d1e6c6183f65846f6cbd5749

14 years agoAdd the ability to disable constant factoring using sqlite3_test_control().
drh [Mon, 6 Dec 2010 21:06:09 +0000 (21:06 +0000)] 
Add the ability to disable constant factoring using sqlite3_test_control().
Add a TCL interface to this new capability and add tests cases to the TCL
test scripts to actually use the new capability.

FossilOrigin-Name: ad8bc68197f2b47435149c3dbc035f4e7210fc76

14 years agoBack out part of the previous change that was not really necessary in order
drh [Mon, 6 Dec 2010 18:59:13 +0000 (18:59 +0000)] 
Back out part of the previous change that was not really necessary in order
to fix [80ba201079ea60], and which in fact serves no useful purpose.

FossilOrigin-Name: fa9eef865f2f399870305bef82296db25e5b3e90

14 years agoInitialize all constants at the very beginning of a prepared statement.
drh [Mon, 6 Dec 2010 18:50:32 +0000 (18:50 +0000)] 
Initialize all constants at the very beginning of a prepared statement.
Do not allow constant initialization to occur once control flow has a chance
to diverge, to avoid the possibility of having uninitialized registers.
Ticket [80ba201079ea60807].

FossilOrigin-Name: c5c53152d68218bb5e7f922271dd7c50da2361c1

14 years agoHave sqlite3_blob_bytes() return 0 following a failed call to sqlite3_reopen_blob().
dan [Mon, 6 Dec 2010 17:11:05 +0000 (17:11 +0000)] 
Have sqlite3_blob_bytes() return 0 following a failed call to sqlite3_reopen_blob().

FossilOrigin-Name: 476a8b492124d31e0656e61a6183ab55684c0bdf

14 years agoVersion 3.7.4 release candidate 2.
drh [Sat, 4 Dec 2010 19:35:04 +0000 (19:35 +0000)] 
Version 3.7.4 release candidate 2.

FossilOrigin-Name: 40756fe1f109da8bccac0ca28f05435792c62f81

14 years agoFix a memory leak in fts3 that can occur in an OOM condition.
dan [Sat, 4 Dec 2010 18:20:18 +0000 (18:20 +0000)] 
Fix a memory leak in fts3 that can occur in an OOM condition.

FossilOrigin-Name: 507027b70f71689f77dee3e849ebc66a1c4c3166

14 years agoRemove an over-zealous call to memAboutToChange() from OP_MustBeInt.
drh [Fri, 3 Dec 2010 18:57:17 +0000 (18:57 +0000)] 
Remove an over-zealous call to memAboutToChange() from OP_MustBeInt.
OP_MustBeInt will never invalidate the Mem.z pointer so the memAboutToChange()
call is not necessary.

FossilOrigin-Name: 841cf7a7dbf0947cb7bde864609a8d3294f78689

14 years agoVersion 3.7.4 release candidate 1
drh [Fri, 3 Dec 2010 15:41:57 +0000 (15:41 +0000)] 
Version 3.7.4 release candidate 1

FossilOrigin-Name: 2e800cb87ded1a080469ea46878ac61f945f789e

14 years agoAdd tests for fts3 to backcompat.test.
dan [Fri, 3 Dec 2010 15:04:26 +0000 (15:04 +0000)] 
Add tests for fts3 to backcompat.test.

FossilOrigin-Name: b4eafde823bf30ebbb9232a88c9ddfa52f3cbabf

14 years agoAdd the "valgrind" permutation. This is the same as veryquick.test except that it...
dan [Fri, 3 Dec 2010 10:32:06 +0000 (10:32 +0000)] 
Add the "valgrind" permutation. This is the same as veryquick.test except that it omits the multi-process tests that do not work under valgrind. No changes to production or existing test code.

FossilOrigin-Name: 49531300676b303f2ccec8d8d587b389c9eae98b

14 years agoFix a bug causing fts3 to incorrectly return SQLITE_CORRUPT.
dan [Thu, 2 Dec 2010 17:39:26 +0000 (17:39 +0000)] 
Fix a bug causing fts3 to incorrectly return SQLITE_CORRUPT.

FossilOrigin-Name: 099195b14829f375055345b8322905ccd073d442

14 years agoExclude a test case from the inmemory_journal permutation of multiplex.test.
dan [Thu, 2 Dec 2010 14:47:06 +0000 (14:47 +0000)] 
Exclude a test case from the inmemory_journal permutation of multiplex.test.

FossilOrigin-Name: 474196d6452f5868a712a9b0116d5f64c90d67c1

14 years agoFix a (harmless) valgrind warning in the rtree extension.
dan [Thu, 2 Dec 2010 11:24:58 +0000 (11:24 +0000)] 
Fix a (harmless) valgrind warning in the rtree extension.

FossilOrigin-Name: a94b9a395e0be9549d8c28e2b86b995c73c7b671

14 years agoUpdate misc7.test to account for EQP changes.
dan [Thu, 2 Dec 2010 06:08:53 +0000 (06:08 +0000)] 
Update misc7.test to account for EQP changes.

FossilOrigin-Name: 917af565ac0c71c14fcba56632e687ed938a856c

14 years agoChanged multiplex shim's xFilesize to return an error on mismatched chunk size.
shaneh [Wed, 1 Dec 2010 23:42:42 +0000 (23:42 +0000)] 
Changed multiplex shim's xFilesize to return an error on mismatched chunk size.
Added test of same.

FossilOrigin-Name: 6818c6e42faf233afa6b30799c5b425aa42d0783

14 years agoMake sure a test of multiplex shim doesn't fail if a file already exists.
shaneh [Wed, 1 Dec 2010 22:08:45 +0000 (22:08 +0000)] 
Make sure a test of multiplex shim doesn't fail if a file already exists.

FossilOrigin-Name: 80de240a329d8df4aa1e437711bf6ed889d92c5f

14 years agoAdded TCL test case for converting to WAL mode with multiple connections.
shaneh [Wed, 1 Dec 2010 20:49:42 +0000 (20:49 +0000)] 
Added TCL test case for converting to WAL mode with multiple connections.
Added exception to the test case for Windows for not being able to delete the open journal file.

FossilOrigin-Name: 7061601f4935af483f4068d257d6f8a9c728fd33

14 years agoChange the type of a variable in struct SrcList so that it fits in a 100 byte lookasi...
dan [Wed, 1 Dec 2010 19:00:48 +0000 (19:00 +0000)] 
Change the type of a variable in struct SrcList so that it fits in a 100 byte lookaside buffer on a 64-bit architecture.

FossilOrigin-Name: 7df43f4892e628ecb8a83c5ed2dce5e24f6dd529

14 years agoFix some warnings under MSVC in fts3 module.
shaneh [Wed, 1 Dec 2010 15:36:00 +0000 (15:36 +0000)] 
Fix some warnings under MSVC in fts3 module.

FossilOrigin-Name: c7771c0b22f2b45a47070cf84b9ecf1011e40404

14 years agoAdd test file e_resolve.test.
dan [Wed, 1 Dec 2010 11:46:53 +0000 (11:46 +0000)] 
Add test file e_resolve.test.

FossilOrigin-Name: 6858df9c72b1e9fb6c1a0050035b11822f87a5a7

14 years agoAvoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by...
dan [Wed, 1 Dec 2010 08:04:47 +0000 (08:04 +0000)] 
Avoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by trigger programs.

FossilOrigin-Name: 119ffe955eb1e8016cb8131a63bd17557f395f3f

14 years agoAdd test file e_dropview.test.
dan [Tue, 30 Nov 2010 12:12:24 +0000 (12:12 +0000)] 
Add test file e_dropview.test.

FossilOrigin-Name: 6197822cc8310fd7e1d7151683833e8b39fe631a

14 years agoFix a warning in os_unix.c.
dan [Mon, 29 Nov 2010 18:36:22 +0000 (18:36 +0000)] 
Fix a warning in os_unix.c.

FossilOrigin-Name: ee8dc8c87ed15b76ba437df23e1d7b1b7fa30296

14 years agoOn *BSD systems, reduce the number of open connections used by wal3.test to avoid...
dan [Mon, 29 Nov 2010 18:22:44 +0000 (18:22 +0000)] 
On *BSD systems, reduce the number of open connections used by wal3.test to avoid running out of file-descriptors.

FossilOrigin-Name: 0a3cba95a14ae7a24b2d268567a02d651ab278dc

14 years agoFix compiler warnings discovered while building SQLite on [http://www.devio.us/].
dan [Mon, 29 Nov 2010 17:55:18 +0000 (17:55 +0000)] 
Fix compiler warnings discovered while building SQLite on [http://www.devio.us/].

FossilOrigin-Name: 5602ec95aa2a74d0624bb6c7d53e7a0d35536253

14 years agoAdd tests for very small cache-sizes (less than 10 pages).
dan [Mon, 29 Nov 2010 16:10:01 +0000 (16:10 +0000)] 
Add tests for very small cache-sizes (less than 10 pages).

FossilOrigin-Name: 46b3fbdafe191cd0974cc3f46bc6aa52b3f1270e

14 years agoAdd new test file e_droptrigger.test.
dan [Mon, 29 Nov 2010 12:06:45 +0000 (12:06 +0000)] 
Add new test file e_droptrigger.test.

FossilOrigin-Name: d23ef9b88c6705219e5138e50f0f351f6401c401

14 years agoFix various compiler warnings.
drh [Fri, 26 Nov 2010 16:49:59 +0000 (16:49 +0000)] 
Fix various compiler warnings.

FossilOrigin-Name: c412f61229b6ab1ac90b932afd56f7c5e3ba1cfe

14 years agoFix an uninitialized variable in fts3.c.
dan [Fri, 26 Nov 2010 16:31:43 +0000 (16:31 +0000)] 
Fix an uninitialized variable in fts3.c.

FossilOrigin-Name: 3c3d076b42da36cd5413749ec022d0349325edfa

14 years agoMerge fts3 matchinfo() changes with trunk.
dan [Fri, 26 Nov 2010 15:17:12 +0000 (15:17 +0000)] 
Merge fts3 matchinfo() changes with trunk.

FossilOrigin-Name: 7d660b91b748126c499285713bd0237530a1a601

14 years agoAdd a couple of comments to fts3_snippet.c. fts3-experimental
dan [Fri, 26 Nov 2010 15:13:31 +0000 (15:13 +0000)] 
Add a couple of comments to fts3_snippet.c.

FossilOrigin-Name: ad8df6c5ee0055cf1161a3b700d69dbe07d969bc

14 years agoMerge with latest trunk changes.
dan [Fri, 26 Nov 2010 10:58:48 +0000 (10:58 +0000)] 
Merge with latest trunk changes.

FossilOrigin-Name: 515cb3f4e5282551d300ba79c8885b8ca016a408

14 years agoAdd coverage tests (and associated fixes) for new matchinfo() code.
dan [Thu, 25 Nov 2010 17:49:28 +0000 (17:49 +0000)] 
Add coverage tests (and associated fixes) for new matchinfo() code.

FossilOrigin-Name: 70495ceccc793d608930f59e330777f287ba1ede

14 years agoFix bugs in fts3 function matchinfo() when used with deferred tokens.
dan [Thu, 25 Nov 2010 10:33:54 +0000 (10:33 +0000)] 
Fix bugs in fts3 function matchinfo() when used with deferred tokens.

FossilOrigin-Name: ddc2b7ec2618b010c981ecfa05b3e53a9fac686f

14 years agoAdd code for the matchinfo 'longest common substring' feature.
dan [Wed, 24 Nov 2010 19:26:18 +0000 (19:26 +0000)] 
Add code for the matchinfo 'longest common substring' feature.

FossilOrigin-Name: 71011a4f9baf09ec6935ad591145252bf3c286ed

14 years agoFix crashes that can occur when queries are run on an FTS4 table containing zero...
dan [Wed, 24 Nov 2010 15:02:22 +0000 (15:02 +0000)] 
Fix crashes that can occur when queries are run on an FTS4 table containing zero rows.

FossilOrigin-Name: ed61fd20adef44d0f6b2345e0205b25f3641a15e

14 years agoFix a couple of compiler warnings in test_superlock.c. Add superlock.c
drh [Wed, 24 Nov 2010 13:04:22 +0000 (13:04 +0000)] 
Fix a couple of compiler warnings in test_superlock.c.  Add superlock.c
to the Makefile.in used by the configure script.

FossilOrigin-Name: 461f1a010f55e7da6b43ea65550066b1ca7abad0

14 years agoRemove some unused code from fts3. Add tests to fts3matchinfo.test.
dan [Wed, 24 Nov 2010 11:51:56 +0000 (11:51 +0000)] 
Remove some unused code from fts3. Add tests to fts3matchinfo.test.

FossilOrigin-Name: ae40b34cf7c24c9601bdfb5cbe5b20f05a376ea8

14 years agoCherry-pick the lemon.c updates out of the lemon-update-2010 branch into
drh [Tue, 23 Nov 2010 20:55:27 +0000 (20:55 +0000)] 
Cherry-pick the lemon.c updates out of the lemon-update-2010 branch into
the trunk.

FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415

14 years agoThe previous check-in with changes to the max_page_count pragma was not
drh [Tue, 23 Nov 2010 20:25:08 +0000 (20:25 +0000)] 
The previous check-in with changes to the max_page_count pragma was not
quite correct.  This check-in fixes the problem.

FossilOrigin-Name: 30c26c3b13b29ce57683e91ac11641d4eb4d678f

14 years agoExperimental changes to fts3 function matchinfo().
dan [Tue, 23 Nov 2010 19:16:47 +0000 (19:16 +0000)] 
Experimental changes to fts3 function matchinfo().

FossilOrigin-Name: 9cf0f2b76bc68c168e3fa861b7235f384db21d38

14 years agoFix the max_page_count pragma so that it will not set to a value smaller
drh [Tue, 23 Nov 2010 18:59:27 +0000 (18:59 +0000)] 
Fix the max_page_count pragma so that it will not set to a value smaller
than the current database size, as the documentation requires.  Also,
remove all occurances of atoi() from the core.

FossilOrigin-Name: 2031974b606ef713b5f34522b2221470d98687c5

14 years agoFix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.
dan [Mon, 22 Nov 2010 17:26:07 +0000 (17:26 +0000)] 
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.

FossilOrigin-Name: 3df3e79b56821201b4f5ecd23f94d485745c48c3

14 years agoExtra tests for "PRAGMA checkpoint_fullfsync".
dan [Sat, 20 Nov 2010 12:01:35 +0000 (12:01 +0000)] 
Extra tests for "PRAGMA checkpoint_fullfsync".

FossilOrigin-Name: e38c81cc18d2ceaa1644aaba64530ba5d1fbf2cf

14 years agoAdd extra tests for test_superlock.c.
dan [Sat, 20 Nov 2010 10:57:44 +0000 (10:57 +0000)] 
Add extra tests for test_superlock.c.

FossilOrigin-Name: 1c4e58e7211522f0e7dfddd3a2b52f1d0c5421e7

14 years agoAdd tests for "PRAGMA checkpoint_fullfsync".
dan [Fri, 19 Nov 2010 18:48:10 +0000 (18:48 +0000)] 
Add tests for "PRAGMA checkpoint_fullfsync".

FossilOrigin-Name: 765aa1b862fa38cede89bafe0e10c094e0544b7e

14 years agoMerge in the superlock demonstration changes.
drh [Fri, 19 Nov 2010 18:36:44 +0000 (18:36 +0000)] 
Merge in the superlock demonstration changes.

FossilOrigin-Name: 570e79a8eb3bb2d2a15c46c55fbf52c9dd3e3ae8

14 years agoAdd the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint
drh [Fri, 19 Nov 2010 18:23:35 +0000 (18:23 +0000)] 
Add the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint
operations only, not during ordinary commit fsyncs.

FossilOrigin-Name: a069867301de3ca2e1753bd4d2e426d27365be4c

14 years agoAdd file test_superlock.c with example code for obtaining an exclusive lock on either... superlock
dan [Fri, 19 Nov 2010 18:20:09 +0000 (18:20 +0000)] 
Add file test_superlock.c with example code for obtaining an exclusive lock on either rollback or wal mode databases.

FossilOrigin-Name: 1a3e7417a2184188fe21c3284e58720da9ca11cf

14 years agoAdd the SQLITE_FCNTL_FILE_POINTER verb to sqlite3_file_control().
drh [Fri, 19 Nov 2010 14:37:49 +0000 (14:37 +0000)] 
Add the SQLITE_FCNTL_FILE_POINTER verb to sqlite3_file_control().

FossilOrigin-Name: 4425b0645d0afebe3172201012d501c6992daa38

14 years agoEnsure tcl is using utf-8 as the system encoding when running capi3e.test.
dan [Thu, 18 Nov 2010 16:58:48 +0000 (16:58 +0000)] 
Ensure tcl is using utf-8 as the system encoding when running capi3e.test.

FossilOrigin-Name: 0a95589f2166f9ce420e647b73e8c797fe8f4833

14 years agoAdded some tests to check that umlaut characters are supported in filenames.
shaneh [Thu, 18 Nov 2010 15:44:59 +0000 (15:44 +0000)] 
Added some tests to check that umlaut characters are supported in filenames.

FossilOrigin-Name: c36f275d70ec8f6dead6adac02885026fdff9666

14 years agoRestrict the scope of the fts3ExprCost() subroutine inside of FTS3.
drh [Thu, 18 Nov 2010 13:52:34 +0000 (13:52 +0000)] 
Restrict the scope of the fts3ExprCost() subroutine inside of FTS3.

FossilOrigin-Name: 76681870a4705179f78976e7fda638a6fea0b9f9

14 years agoFix compiler warnings.
drh [Thu, 18 Nov 2010 13:47:50 +0000 (13:47 +0000)] 
Fix compiler warnings.

FossilOrigin-Name: 6c4f1d5c24522d1f541a2b96b229ad0374f99c19

14 years agoPrevent a possible segfault when the sqlite3_value_numeric_type() interface is
drh [Thu, 18 Nov 2010 12:31:24 +0000 (12:31 +0000)] 
Prevent a possible segfault when the sqlite3_value_numeric_type() interface is
misused to try to determine the numeric type of the NULL value returned
from sqlite3_column_value() with an invalid column number.

FossilOrigin-Name: 501b743bcb60cda0acf63bcf8a4abbf00797b347

14 years agoRestrict the scope of the sqlite3_stmt_readonly() interface to a specific
drh [Wed, 17 Nov 2010 02:02:45 +0000 (02:02 +0000)] 
Restrict the scope of the sqlite3_stmt_readonly() interface to a specific
subset of prepared statement types.

FossilOrigin-Name: 919b06c3a803abb9236606a9b5885f0d8181e730

14 years agoAdding the sqlite3_stmt_readonly() interface.
drh [Tue, 16 Nov 2010 23:10:25 +0000 (23:10 +0000)] 
Adding the sqlite3_stmt_readonly() interface.

FossilOrigin-Name: fd5b2f23dd5111d2f0934dd828bae36b755024c1

14 years agoUse the estimated number of rows computed for subqueries in the cost
drh [Tue, 16 Nov 2010 02:49:15 +0000 (02:49 +0000)] 
Use the estimated number of rows computed for subqueries in the cost
computations for outer queries.

FossilOrigin-Name: 56bbc539246a6dc9f1ae1edb898db7a4f6f6d322

14 years agoChange the EQP output for the min/max optimization from "SCAN" to "SEARCH".
drh [Mon, 15 Nov 2010 21:50:19 +0000 (21:50 +0000)] 
Change the EQP output for the min/max optimization from "SCAN" to "SEARCH".
Other changes in where.c in support of full branch coverage testing.

FossilOrigin-Name: d52b593978aa1776af7aeb957c4f8df0c5cb7e43

14 years agoFix the EQP logic so that it correctly reports OOM errors while formatting
drh [Mon, 15 Nov 2010 16:29:30 +0000 (16:29 +0000)] 
Fix the EQP logic so that it correctly reports OOM errors while formatting
"detail" text.

FossilOrigin-Name: 136c2ac24ee1663bc0904bce1a619ecef3d11c1c

14 years agoChange some test cases to account for the new EXPLAIN QUERY PLAN output.
dan [Mon, 15 Nov 2010 16:12:58 +0000 (16:12 +0000)] 
Change some test cases to account for the new EXPLAIN QUERY PLAN output.

FossilOrigin-Name: 88a854e18fc6bd619fa8d8a911abff50a9b76b9e

14 years agoTest some example code from documentation page eqp.html.
dan [Mon, 15 Nov 2010 14:51:33 +0000 (14:51 +0000)] 
Test some example code from documentation page eqp.html.

FossilOrigin-Name: 547bc2c232cbf7b7ff295287ab8fddb880e517f9

14 years agoMerge the EXPLAIN QUERY PLAN changes from experimental into trunk.
drh [Mon, 15 Nov 2010 14:44:30 +0000 (14:44 +0000)] 
Merge the EXPLAIN QUERY PLAN changes from experimental into trunk.

FossilOrigin-Name: ce27bf38405ce805dad95ec22cbe68ddc7af544a

14 years agoMinor additions to vacuum.test.
dan [Mon, 15 Nov 2010 11:35:50 +0000 (11:35 +0000)] 
Minor additions to vacuum.test.

FossilOrigin-Name: a397ed162246fef32b8c5db36d995bf9a8005a2e

14 years agoChange the EXPLAIN QUERY PLAN output to use "USING INDEX" instead of "BY INDEX",...
dan [Sat, 13 Nov 2010 16:42:27 +0000 (16:42 +0000)] 
Change the EXPLAIN QUERY PLAN output to use "USING INDEX" instead of "BY INDEX", and to use "SEARCH" instead of "SCAN" for loops that are not full-table scans.

FossilOrigin-Name: 6611b76b0296875fb9903b25dfaa783a9c12eaa1

14 years agoAdd EXPLAIN QUERY PLAN test cases to check that the examples in the documentation...
dan [Fri, 12 Nov 2010 17:41:37 +0000 (17:41 +0000)] 
Add EXPLAIN QUERY PLAN test cases to check that the examples in the documentation work.

FossilOrigin-Name: 85fdad850a4da33fd74f5394b921a63ea6b40bdb

14 years agoChange the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods...
dan [Fri, 12 Nov 2010 15:49:04 +0000 (15:49 +0000)] 
Change the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods (instead of copying function pointers from the underlying vfs into the multiplex vfs). This is required to work with test_osinst.c.

FossilOrigin-Name: 1244ef9f7ef813d86dca6f8e01681fa55ee9eec8

14 years agoReduce the number of branches that need to be tested in the
drh [Fri, 12 Nov 2010 15:35:59 +0000 (15:35 +0000)] 
Reduce the number of branches that need to be tested in the
explainIndexRange() function of where.c.

FossilOrigin-Name: 6fdae9a635a43e1bf7e4a480de1413064732c6b0

14 years agoUse "COMPOUND" instead of "COMPOSITE" in the EXPLAIN QUERY PLAN output to describe...
dan [Thu, 11 Nov 2010 17:48:51 +0000 (17:48 +0000)] 
Use "COMPOUND" instead of "COMPOSITE" in the EXPLAIN QUERY PLAN output to describe UNION, UNION ALL, EXCEPT and INTERSECT operations.

FossilOrigin-Name: 28643b85d93d27a44b9370e4087efa8fa2af7f8e

14 years agoAdd a row of EXPLAIN QUERY PLAN output for each composite select operation (UNION...
dan [Thu, 11 Nov 2010 16:46:40 +0000 (16:46 +0000)] 
Add a row of EXPLAIN QUERY PLAN output for each composite select operation (UNION, EXCEPT etc.) in the query.

FossilOrigin-Name: 00fb8468b5f2c48a3c91b86803bf306a0331496f

14 years agoFix a bug in the EXPLAIN QUERY PLAN code.
dan [Thu, 11 Nov 2010 11:43:01 +0000 (11:43 +0000)] 
Fix a bug in the EXPLAIN QUERY PLAN code.

FossilOrigin-Name: 7ae068952fba4395b4aa437613a5ed2bd9ddf941

14 years agoModifications to test cases to account for new EXPLAIN QUERY PLAN output.
dan [Thu, 11 Nov 2010 10:36:25 +0000 (10:36 +0000)] 
Modifications to test cases to account for new EXPLAIN QUERY PLAN output.

FossilOrigin-Name: 30904ef8412348464e893e9e1551ef22cad24a3e

14 years agoFix an assert that fired incorrectly when PRAGMA omit_readlock was set.
shaneh [Tue, 9 Nov 2010 20:33:33 +0000 (20:33 +0000)] 
Fix an assert that fired incorrectly when PRAGMA omit_readlock was set.

FossilOrigin-Name: e068758222bcd3f2367e9346f7154780cd395ddd

14 years agoMerge with latest trunk changes.
dan [Tue, 9 Nov 2010 17:49:39 +0000 (17:49 +0000)] 
Merge with latest trunk changes.

FossilOrigin-Name: 4b5c93bc7c43c80962ddae65c58037bf5977b94b

14 years agoAdd missing comments and fix other issues with routines used by new EQP features.
dan [Tue, 9 Nov 2010 17:35:19 +0000 (17:35 +0000)] 
Add missing comments and fix other issues with routines used by new EQP features.

FossilOrigin-Name: 925f35c535396603e13bb12e9a361072e2c2c223

14 years agoFurther enhancements and fixes for explain query plan.
dan [Tue, 9 Nov 2010 14:48:59 +0000 (14:48 +0000)] 
Further enhancements and fixes for explain query plan.

FossilOrigin-Name: 73c93f5a2a32ee8c5d07c9ba33b2641e72626627

14 years agoChanges to the multiplex VFS to optionally (compiler define) allow
shaneh [Mon, 8 Nov 2010 19:16:16 +0000 (19:16 +0000)] 
Changes to the multiplex VFS to optionally (compiler define) allow
the "chunk extension" to overwrite the right-most chars of the filename
instead of simply being appended.

FossilOrigin-Name: 07da0a0beffda324d28fd2768c542ff69d4dbff2

14 years agoExperimental changes to EXPLAIN QUERY PLAN.
dan [Mon, 8 Nov 2010 19:01:16 +0000 (19:01 +0000)] 
Experimental changes to EXPLAIN QUERY PLAN.

FossilOrigin-Name: f4747eb83dacce6430ad6e5eb20155ffad975514

14 years agoFix to xTruncate and more journal mode tests for the multiplex VFS.
shaneh [Fri, 5 Nov 2010 20:50:43 +0000 (20:50 +0000)] 
Fix to xTruncate and more journal mode tests for the multiplex VFS.

FossilOrigin-Name: 65fa1164f035d270db48db6474da888aacfba3bd

14 years agoFix os_unix.c so that it works with the test_multiplex module.
dan [Fri, 5 Nov 2010 18:07:37 +0000 (18:07 +0000)] 
Fix os_unix.c so that it works with the test_multiplex module.

FossilOrigin-Name: 72ba3e368bec34532ec7b5e856a4daa7e1c8cccb

14 years agoMore tests and added support for xDelete in multiplex VFS.
shaneh [Fri, 5 Nov 2010 17:51:25 +0000 (17:51 +0000)] 
More tests and added support for xDelete in multiplex VFS.

FossilOrigin-Name: f2004b44bfba62a7a2296b161a25aefdf55e035a

14 years agoAdditional error checking and tests.
shaneh [Fri, 5 Nov 2010 03:58:58 +0000 (03:58 +0000)] 
Additional error checking and tests.

FossilOrigin-Name: 1ab9a59237bed6d03b55153a67588486f9adc67b

14 years agoAdditional tests and commenting for the multiplex VFS.
shaneh [Fri, 5 Nov 2010 03:43:54 +0000 (03:43 +0000)] 
Additional tests and commenting for the multiplex VFS.

FossilOrigin-Name: 8ed944ba74566c6241d655a39801ad192c61219a

14 years agoUpdate the configure script for version 3.7.4.
drh [Fri, 5 Nov 2010 00:04:57 +0000 (00:04 +0000)] 
Update the configure script for version 3.7.4.

FossilOrigin-Name: 18a73795b427e3d04a8a437410a271a50bbe32e4