]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoHave the ota extension perform an incremental checkpoint after generating the wal...
dan [Mon, 20 Oct 2014 16:24:23 +0000 (16:24 +0000)] 
Have the ota extension perform an incremental checkpoint after generating the wal file.

FossilOrigin-Name: 0bf1301aacb3b717b4cc020fbda9fab0bae331c3

10 years agoAdd further tests to ota5.test. Add "ota.test", for running all ota tests.
dan [Fri, 19 Sep 2014 18:08:39 +0000 (18:08 +0000)] 
Add further tests to ota5.test. Add "ota.test", for running all ota tests.

FossilOrigin-Name: 95ffdaa542df1c28fac97422e5a4b2c5cb81d50a

10 years agoAdd extra tests for the ota extension.
dan [Fri, 19 Sep 2014 15:06:23 +0000 (15:06 +0000)] 
Add extra tests for the ota extension.

FossilOrigin-Name: 1e468fe1e408e513a1e1bbe72fe2a240f2991b3d

10 years agoUpdate the ota extension to support SQLITE_ENABLE_8_3_NAMES builds.
dan [Thu, 18 Sep 2014 17:57:46 +0000 (17:57 +0000)] 
Update the ota extension to support SQLITE_ENABLE_8_3_NAMES builds.

FossilOrigin-Name: 718da6de870231d358384473b40e81c4394b8067

10 years agoUse quotes instead of angle-brackets to include sqlite3.h from sqlite3ota.h.
dan [Thu, 18 Sep 2014 16:38:10 +0000 (16:38 +0000)] 
Use quotes instead of angle-brackets to include sqlite3.h from sqlite3ota.h.

FossilOrigin-Name: fce9c6ccf101d28492a84b85463433f32ef569fb

10 years agoRemove some c++isms from sqlite3ota.c.
dan [Thu, 18 Sep 2014 15:57:22 +0000 (15:57 +0000)] 
Remove some c++isms from sqlite3ota.c.

FossilOrigin-Name: 0da1862b1b68f15c7c14286a982dda886d1e3b4a

10 years agoAdd new file ext/ota/README.txt, containing notes regarding the implementation of...
dan [Thu, 18 Sep 2014 15:22:48 +0000 (15:22 +0000)] 
Add new file ext/ota/README.txt, containing notes regarding the implementation of the ota extension.

FossilOrigin-Name: 3c6e1cbb4baaebc5958ab7276f27ff0ba14f4fa2

10 years agoAdd an API to query an ota handle for the total number of key/value operations perfor...
dan [Thu, 18 Sep 2014 14:48:38 +0000 (14:48 +0000)] 
Add an API to query an ota handle for the total number of key/value operations performed so far.

FossilOrigin-Name: e3943fa7bbbfc5e16f73a494d8fa54d19e9cfcf9

10 years agoMerge latest trunk changes with this branch.
dan [Thu, 18 Sep 2014 11:31:52 +0000 (11:31 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 67ea2979d5831b6d0d55173bd9413b21644cf6a1

10 years agoFix an ota bug causing attempts to write to tables with more than 8 columns to fail.
dan [Thu, 18 Sep 2014 11:15:17 +0000 (11:15 +0000)] 
Fix an ota bug causing attempts to write to tables with more than 8 columns to fail.

FossilOrigin-Name: 7da98ca2422166dc5d68607541707f41b77b5784

10 years agoModify an assert() within sqlite3PagerWalFramesize(), a function only ever used by...
dan [Thu, 18 Sep 2014 09:59:28 +0000 (09:59 +0000)] 
Modify an assert() within sqlite3PagerWalFramesize(), a function only ever used by zipvfs, to account for recent zipvfs changes.

FossilOrigin-Name: 3bd7c1b2faa2d4cc95b255633204006849bfd5e0

10 years agoFix harmless warnings on 32-bit MSVC builds.
drh [Thu, 18 Sep 2014 02:20:54 +0000 (02:20 +0000)] 
Fix harmless warnings on 32-bit MSVC builds.

FossilOrigin-Name: 5192f964b2a85459553f1cea741b9791606ccc4e

10 years agoMake sure of the strchrnul() library function on platforms where it is
drh [Thu, 18 Sep 2014 01:50:09 +0000 (01:50 +0000)] 
Make sure of the strchrnul() library function on platforms where it is
available.

FossilOrigin-Name: ef1aa10b7f54912cba71cd0a98c5055d501de54f

10 years agoMerge micro-optimizations into trunk after fixing the build on MSVC.
drh [Thu, 18 Sep 2014 01:29:11 +0000 (01:29 +0000)] 
Merge micro-optimizations into trunk after fixing the build on MSVC.
Performance now shows 7.58% faster than the 3.8.6 release on x64 with
gcc 4.8.1 and -Os.

FossilOrigin-Name: 1de558bcb13edc4e9a42a0b05e4b0ed6b14286a4

10 years agoFix compiler warnings and change the nullMem structure initializer into a
drh [Thu, 18 Sep 2014 01:21:43 +0000 (01:21 +0000)] 
Fix compiler warnings and change the nullMem structure initializer into a
format that MSVC can understand.

FossilOrigin-Name: 163bfae8583b2d3002a3a43d6bf8a66fefd73acb

10 years agoPerformance improvement and slight size reduction to the comparison operators
drh [Wed, 17 Sep 2014 23:37:38 +0000 (23:37 +0000)] 
Performance improvement and slight size reduction to the comparison operators
in the VDBE.

FossilOrigin-Name: 14052a7d088bed8196d90a3361ce717a5193bdc8

10 years agoFix an unintialized variable problem in sqlite3ota.c.
dan [Wed, 17 Sep 2014 19:05:46 +0000 (19:05 +0000)] 
Fix an unintialized variable problem in sqlite3ota.c.

FossilOrigin-Name: 01268607515a30d07559648c43034e522605748a

10 years agoIn the Mem object, stop requiring that Mem.xDel be NULL when the MEM_Dyn
drh [Wed, 17 Sep 2014 16:41:15 +0000 (16:41 +0000)] 
In the Mem object, stop requiring that Mem.xDel be NULL when the MEM_Dyn
bit is clear.  Also reduce the amount of initialization of Mem objects.
All for a small size reduction and performance increase.

FossilOrigin-Name: fdddb477c89dabb9f7bf2d5ccb32534868df3a03

10 years agoAdd tests and fixes for "PRAGMA ota_mode".
dan [Wed, 17 Sep 2014 15:20:24 +0000 (15:20 +0000)] 
Add tests and fixes for "PRAGMA ota_mode".

FossilOrigin-Name: 39df35c4ac65ffba76ba2c6f6727cf5e843e7517

10 years agoImproved interface to the Mem object handling. Small size reduction and
drh [Wed, 17 Sep 2014 14:52:46 +0000 (14:52 +0000)] 
Improved interface to the Mem object handling.  Small size reduction and
performance increase.

FossilOrigin-Name: 4e437844322cc20eef92928b53fa6b37eded586e

10 years agoContinuing cleanup of memory register memory allocation handling.
drh [Tue, 16 Sep 2014 21:54:11 +0000 (21:54 +0000)] 
Continuing cleanup of memory register memory allocation handling.

FossilOrigin-Name: 2598aedc5dd2bac67e2e518a31f2803e469c2ba6

10 years agoMake sure registers are cleared properly prior to being used to store
drh [Tue, 16 Sep 2014 20:05:21 +0000 (20:05 +0000)] 
Make sure registers are cleared properly prior to being used to store
the result of an OP_Column operator.

FossilOrigin-Name: 78fb8838d80b229418c347c63579989432e1af7d

10 years agoClarify the effects of the pager_ota_mode pragma. Add tests and fixes for the same.
dan [Tue, 16 Sep 2014 20:02:41 +0000 (20:02 +0000)] 
Clarify the effects of the pager_ota_mode pragma. Add tests and fixes for the same.

FossilOrigin-Name: decaccc37cbdcd2a663233469efdf4982a810513

10 years agoSimplification of the OP_Column logic for the case of rows with overflow.
drh [Tue, 16 Sep 2014 18:22:44 +0000 (18:22 +0000)] 
Simplification of the OP_Column logic for the case of rows with overflow.

FossilOrigin-Name: f73678038d8fc399c1ca55230ae45962007c909c

10 years agoRemove an unused parameter from sqlite3VdbeIdxRowid(). This is cosmetic
drh [Tue, 16 Sep 2014 14:55:08 +0000 (14:55 +0000)] 
Remove an unused parameter from sqlite3VdbeIdxRowid().  This is cosmetic
only as the C-compiler optimizers were already omitting this parameter on
amalgamation builds.

FossilOrigin-Name: a10a6bba4963761b490b7243b388dcc920c4cfed

10 years agoReduce the number of arguments to RecordCompare functions from 4 to 3,
drh [Tue, 16 Sep 2014 14:37:35 +0000 (14:37 +0000)] 
Reduce the number of arguments to RecordCompare functions from 4 to 3,
resulting in a small performance increase.

FossilOrigin-Name: 8239c35aedd583af79505378bb7dbb78346a3f45

10 years agoReorder the elements of the Mem object for a small size reduction and
drh [Tue, 16 Sep 2014 14:16:31 +0000 (14:16 +0000)] 
Reorder the elements of the Mem object for a small size reduction and
performance improvement.

FossilOrigin-Name: 0be3019ed794c10de67dfd645ceea7d45815bc4b

10 years agoChanges to sqlite3VdbeRecordUnpack() to make it slightly smaller and faster.
drh [Tue, 16 Sep 2014 13:30:05 +0000 (13:30 +0000)] 
Changes to sqlite3VdbeRecordUnpack() to make it slightly smaller and faster.

FossilOrigin-Name: 8fb90da77ce0e662c1ef1ae0d854e5164494b7af

10 years agoPerformance improvement to the sqlite3MemCompare() routine by factoring out
drh [Tue, 16 Sep 2014 03:24:43 +0000 (03:24 +0000)] 
Performance improvement to the sqlite3MemCompare() routine by factoring out
sqlite3BlobCompare().

FossilOrigin-Name: 20ed2321b09ba076e50f9fc2f42c135b25746d72

10 years agoRemove the experimental sqlite3_transaction_save() and restore() APIs.
dan [Mon, 15 Sep 2014 19:34:04 +0000 (19:34 +0000)] 
Remove the experimental sqlite3_transaction_save() and restore() APIs.

FossilOrigin-Name: 48d201cd8b68c0377cf8a2cc6439b893f9462fe2

10 years agoMerge latest trunk fixes into this branch.
dan [Mon, 15 Sep 2014 16:57:10 +0000 (16:57 +0000)] 
Merge latest trunk fixes into this branch.

FossilOrigin-Name: 5efafef51d146bcba3adc425561bfa1ac083c0a7

10 years agoFix tool/showwal.c so that it handles WAL files that contain 64KiB pages.
dan [Mon, 15 Sep 2014 16:53:23 +0000 (16:53 +0000)] 
Fix tool/showwal.c so that it handles WAL files that contain 64KiB pages.

FossilOrigin-Name: 4060efb646c873c4abde7ab9ddf330489a44f274

10 years agoAvoid attempting to call the xFetch() method of an sqlite3_io_methods object with...
dan [Mon, 15 Sep 2014 16:50:34 +0000 (16:50 +0000)] 
Avoid attempting to call the xFetch() method of an sqlite3_io_methods object with a version number less than 3.

FossilOrigin-Name: dedaa6fb3d2e6e697d4a48649af5f42d9a11c333

10 years agoMerge latest trunk changes with this branch.
dan [Mon, 15 Sep 2014 15:34:31 +0000 (15:34 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 55b8011d5b455927f5b92a3cb911fd909fb0edab

10 years agoHave sqlite3ota.c use grave accents instead of double-quotes to enclose identifiers...
dan [Mon, 15 Sep 2014 15:22:32 +0000 (15:22 +0000)] 
Have sqlite3ota.c use grave accents instead of double-quotes to enclose identifiers in generated SQL. To avoid having the SQL engine substitute a literal string if a column reference cannot be resolved.

FossilOrigin-Name: 79f2418429aa05c56069c56d51b4d72f662a6970

10 years agoRemove the EXPENSIVE_ASSERTS in pcache.c having to do with the pSynced field
drh [Mon, 15 Sep 2014 14:59:12 +0000 (14:59 +0000)] 
Remove the EXPENSIVE_ASSERTS in pcache.c having to do with the pSynced field
of the Pcache object, as they are incorrect, as revealed by recent pcache
enhancements.

FossilOrigin-Name: 69a64560777f85b47349b4b2aab01dc99298592e

10 years agoEnsure the correct collation sequences are used when sorting data in sqlite3ota.c.
dan [Mon, 15 Sep 2014 14:54:07 +0000 (14:54 +0000)] 
Ensure the correct collation sequences are used when sorting data in sqlite3ota.c.

FossilOrigin-Name: 473a72d7009a22ea514a98ee8869e7e7bca14cf5

10 years agoDo not flatten aggregate subqueries that contain min() or max() functions
drh [Mon, 15 Sep 2014 14:46:02 +0000 (14:46 +0000)] 
Do not flatten aggregate subqueries that contain min() or max() functions
so that if the min()/max() are discarded by the outer query, they still
function and cause non-aggregate expression to be evaluated on the minimal
or maximal row.

FossilOrigin-Name: 0bdf1a086b3946722f4d4b328e25917f61c14713

10 years agoHave the sqlite3_index_writer() VMs check that the final values of records inserted...
dan [Mon, 15 Sep 2014 12:18:29 +0000 (12:18 +0000)] 
Have the sqlite3_index_writer() VMs check that the final values of records inserted into indexes on rowid tables are integers.

FossilOrigin-Name: cca376bff3510dc5e99fc5824862c3471ceced16

10 years agoAdjust comments to show that subquery flattening restriction (10) was
drh [Mon, 15 Sep 2014 11:14:50 +0000 (11:14 +0000)] 
Adjust comments to show that subquery flattening restriction (10) was
removed from the code back in 2005.  This is a comment change only.

FossilOrigin-Name: 4ff0eb96bc364baed2d8005c69291ca9240b99dd

10 years agoAdd OP_Affinity opcodes to the VMs generated by sqlite3_index_writer().
dan [Mon, 15 Sep 2014 10:44:24 +0000 (10:44 +0000)] 
Add OP_Affinity opcodes to the VMs generated by sqlite3_index_writer().

FossilOrigin-Name: b9b38cb8e21826ddfb4c87a1f166ad33c3c7b6eb

10 years agoSmall performance improvement to the dirty list handling in the pager.
drh [Fri, 12 Sep 2014 20:30:59 +0000 (20:30 +0000)] 
Small performance improvement to the dirty list handling in the pager.

FossilOrigin-Name: b332a84d5154f70f3197537df4af243eaebbb011

10 years agoSimplify the way the column cache is managed around OP_Move instructions.
drh [Fri, 12 Sep 2014 17:41:30 +0000 (17:41 +0000)] 
Simplify the way the column cache is managed around OP_Move instructions.

FossilOrigin-Name: 320556233e19cdd9d590a09655c3465754700d39

10 years agoFix a problem with parser memory allocation on 32-bit systems.
drh [Fri, 12 Sep 2014 04:28:33 +0000 (04:28 +0000)] 
Fix a problem with parser memory allocation on 32-bit systems.

FossilOrigin-Name: 2f69a1fa6adc9377149ae7faa586a5d30b6a631b

10 years agoFix an issue with sqlite3_bind_text64() with the SQLITE_UTF16 encoding
drh [Thu, 11 Sep 2014 23:34:55 +0000 (23:34 +0000)] 
Fix an issue with sqlite3_bind_text64() with the SQLITE_UTF16 encoding
parameter.  Remove some unreachable code from the text64() and blob64()
implementation.

FossilOrigin-Name: 34292b084ef48cd6e9ca5704f6b072a29733b4c2

10 years agoAdd new APIs that take 64-bit length parameters: sqlite3_malloc64(),
drh [Thu, 11 Sep 2014 18:44:04 +0000 (18:44 +0000)] 
Add new APIs that take 64-bit length parameters: sqlite3_malloc64(),
sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_text64(),
sqlite3_result_blob64(), and sqlite3_result_text64().
Add the sqlite3_msize() interface.
Internal memory allocation routines now use 64-bit unsigned
length parameters for safety.
Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid
a integer overflow problem.

FossilOrigin-Name: 7e4978c003867d1b532b69221013dda75ca61953

10 years agoAdd the SQLITE_USER_AUTHENTICATION extension to the trunk. This extension
drh [Thu, 11 Sep 2014 17:27:54 +0000 (17:27 +0000)] 
Add the SQLITE_USER_AUTHENTICATION extension to the trunk.  This extension
is disabled by default.  Special compilation procedures are need to enable
it.

FossilOrigin-Name: 65884d4f81a4705b0356b6cb8ec4909945ff5c19

10 years agoClean up some #includes in the extension API implementation. user-auth
drh [Thu, 11 Sep 2014 17:14:54 +0000 (17:14 +0000)] 
Clean up some #includes in the extension API implementation.

FossilOrigin-Name: b149ef5c639e6bcff7bd1c7866353e7f7f468070

10 years agoSuppress the potential schema error that occurs when a non-user-auth
drh [Thu, 11 Sep 2014 16:36:43 +0000 (16:36 +0000)] 
Suppress the potential schema error that occurs when a non-user-auth
SQLite library tries to parse the sqlite_user table definition in a
user-auth database.

FossilOrigin-Name: cda33c1ef35416a155af602c0b4e9d42ccf8633f

10 years agoEnhance the sqlite3_user_add() interface to initialize the user
drh [Thu, 11 Sep 2014 16:19:31 +0000 (16:19 +0000)] 
Enhance the sqlite3_user_add() interface to initialize the user
authentication logic.  Add test cases for the extra argument on the
end of the authorizer callback.

FossilOrigin-Name: 842c6da8f1a62bd13a1b4089a98b0835a46a2285

10 years agoAll interfaces working and tested.
drh [Thu, 11 Sep 2014 15:25:02 +0000 (15:25 +0000)] 
All interfaces working and tested.

FossilOrigin-Name: 96ea5c0b3cd1dec81d490f2f958ebd2e47a24921

10 years agoGet the sqlite3_user_delete() interface working.
drh [Thu, 11 Sep 2014 14:56:45 +0000 (14:56 +0000)] 
Get the sqlite3_user_delete() interface working.

FossilOrigin-Name: 974a9c65583f7ab438d5673dc00c347ab8322855

10 years agoFix the sqlite3_user_change() interface so that it does allow a
drh [Thu, 11 Sep 2014 14:40:27 +0000 (14:40 +0000)] 
Fix the sqlite3_user_change() interface so that it does allow a
non-admin user to change their own password.

FossilOrigin-Name: 52d440c7e1b07fc03f14ed5fa4cc4c89a75cd430

10 years agoMove user authentication blocking from sqlite3_prepare() over to the
drh [Thu, 11 Sep 2014 14:01:41 +0000 (14:01 +0000)] 
Move user authentication blocking from sqlite3_prepare() over to the
table lock generator, thus allowing SQL statements (like
"PRAGMA locking_mode") that do not touch database content to run
prior to authentication.

FossilOrigin-Name: 70121e7cf868b7d6d19bf98794ddc3809a901456

10 years agoAdd support for the extra parameter on the sqlite3_set_authorizer() callback
drh [Thu, 11 Sep 2014 13:44:52 +0000 (13:44 +0000)] 
Add support for the extra parameter on the sqlite3_set_authorizer() callback
and support for failing an ATTACH with an authentication-required database
using bad credentials.  The extension is now feature complete, but much
testing and bug-fixing remains.

FossilOrigin-Name: 596e728b0eb19a34c888e33d4d37978ca2bf1e00

10 years agoReorder parameters on the sqlite3_user_*() interfaces for consistency.
drh [Thu, 11 Sep 2014 00:27:53 +0000 (00:27 +0000)] 
Reorder parameters on the sqlite3_user_*() interfaces for consistency.
Add the first TCL test cases.

FossilOrigin-Name: 2f6d8f32eef526b5912f42ab467e3c7812480d8b

10 years agoComplete the implementation of the various APIs. Fix several problems.
drh [Wed, 10 Sep 2014 22:46:46 +0000 (22:46 +0000)] 
Complete the implementation of the various APIs.  Fix several problems.
This is another incremental check-in that does not completely work.

FossilOrigin-Name: 4eaaa7fa87aa912d24f8b35440ab60310dc08310

10 years agoAdd the ".user" shell command and implement the sqlite3_user_add()
drh [Wed, 10 Sep 2014 19:01:14 +0000 (19:01 +0000)] 
Add the ".user" shell command and implement the sqlite3_user_add()
routine.  Incremental check-in.  The code compiles but does not work.

FossilOrigin-Name: a0455f9deb603bf91684158d911269622720fc1a

10 years agoFurther ideas on user authentication. Not yet working code.
drh [Wed, 10 Sep 2014 17:34:28 +0000 (17:34 +0000)] 
Further ideas on user authentication.  Not yet working code.

FossilOrigin-Name: c8171ecd0d6f097c9e95d5f6643bae8d67f44750

10 years agoChange the name of the _texte64() interfaces to just _test64(), without the "e". 64-bit-lengths
drh [Tue, 9 Sep 2014 20:30:24 +0000 (20:30 +0000)] 
Change the name of the _texte64() interfaces to just _test64(), without the "e".

FossilOrigin-Name: 6ab76c5fedfe568b0f0f34a600f9135bf6558148

10 years agoAdd new interfaces to the loadable extension mechanism.
drh [Tue, 9 Sep 2014 18:41:32 +0000 (18:41 +0000)] 
Add new interfaces to the loadable extension mechanism.

FossilOrigin-Name: 18d80cbc590165913d82056aa69ddaeea07b76ec

10 years agoAdd new APIs that take 64-bit length parameters:
drh [Tue, 9 Sep 2014 17:27:35 +0000 (17:27 +0000)] 
Add new APIs that take 64-bit length parameters:
sqlite3_malloc64(),
sqlite3_realloc64(),
sqlite3_bind_blob64(),
sqlite3_bind_texte64(),
sqlite3_result_blob64(),
and sqlite3_result_texte64().
Internal memory allocation routines also now use 64-bit unsigned length
parameters for safety.
Also add the sqlite3_msize() interface.
Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a
integer overflow problem.

FossilOrigin-Name: 94954850cf2e1ec0b7f590c7f46cdc54c72558ce

10 years agoNon-working preliminary implementation attempts on user authentication.
drh [Tue, 9 Sep 2014 14:47:53 +0000 (14:47 +0000)] 
Non-working preliminary implementation attempts on user authentication.

FossilOrigin-Name: 8440f093bac19a41d44ee352744354eab897fe4e

10 years agoAdd support for update statements to sqlite3ota.c.
dan [Mon, 8 Sep 2014 17:50:35 +0000 (17:50 +0000)] 
Add support for update statements to sqlite3ota.c.

FossilOrigin-Name: e109b27e4d66b83e1a804e7556d9c91aa37fea28

10 years agoAdd support for delete operations to the ota extension.
dan [Sat, 6 Sep 2014 20:19:38 +0000 (20:19 +0000)] 
Add support for delete operations to the ota extension.

FossilOrigin-Name: f988234ba54d7c667f7deef1d04beed4e7fe6182

10 years agoFixes to os_unix.c to support database (and other) files larger than 2GiB on Android.
dan [Sat, 6 Sep 2014 17:06:13 +0000 (17:06 +0000)] 
Fixes to os_unix.c to support database (and other) files larger than 2GiB on Android.

FossilOrigin-Name: ad7063aa1a0db32cdbe71815545b2edca57d3bcc

10 years agoMerge latest trunk changes with this branch. android-large-filles
dan [Sat, 6 Sep 2014 16:52:18 +0000 (16:52 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 9dca7ce55797b3eb617859f6189c1a2ec6f66566

10 years agoFixes to os_unix.c to support database (and other) files larger than 2GiB.
dan [Sat, 6 Sep 2014 16:49:40 +0000 (16:49 +0000)] 
Fixes to os_unix.c to support database (and other) files larger than 2GiB.

FossilOrigin-Name: e7fae33c0754488336ce093189a83dfe1b818d89

10 years agoFix typos in comments. No code changes.
peter.d.reid [Sat, 6 Sep 2014 16:39:46 +0000 (16:39 +0000)] 
Fix typos in comments. No code changes.

FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69

10 years agoDo not require a page-size change if the attempt to change the page size
drh [Sat, 6 Sep 2014 03:38:51 +0000 (03:38 +0000)] 
Do not require a page-size change if the attempt to change the page size
failed due to an OOM error.

FossilOrigin-Name: 4d4fb197dc438a486cf5d967cf435f1132902c63

10 years agoAdd the sqlite3_memdebug_title_count global variable, used during debugging
drh [Sat, 6 Sep 2014 03:16:28 +0000 (03:16 +0000)] 
Add the sqlite3_memdebug_title_count global variable, used during debugging
to count the number of invocations of test_memdebug_settitle.  By examining
this variable in the debugger after a segfault, one can then set a breakpoint
on test_memdebug_settitle that will fire just before the problem.

FossilOrigin-Name: 27e3ca3e0f1da54e3527704a8601bb9003b086bf

10 years agoFix a couple of typos in comments. No changes to code.
mistachkin [Sat, 6 Sep 2014 02:00:41 +0000 (02:00 +0000)] 
Fix a couple of typos in comments.  No changes to code.

FossilOrigin-Name: a758465e3cfa7e0cb8749d097cd6fb5f86b60955

10 years agoQuery planner heuristic update:
drh [Sat, 6 Sep 2014 01:35:57 +0000 (01:35 +0000)] 
Query planner heuristic update:
When doing a full table scan on a table that has an equality constraint on
an unindexed column, do not allow the estimated number of output rows to
be greater than half the total number of rows in the table.

FossilOrigin-Name: 73954f93c4c6f880c6e01d0d130e3fed40fd4106

10 years agoSwitch back to using a single database connection in sqlite3ota.c.
dan [Fri, 5 Sep 2014 19:52:42 +0000 (19:52 +0000)] 
Switch back to using a single database connection in sqlite3ota.c.

FossilOrigin-Name: 3c2f4a078132992e33cc675173c84f8385af9cb5

10 years agoReorganize the code in sqlite3ota.c in preparation for adding support for update...
dan [Fri, 5 Sep 2014 19:31:15 +0000 (19:31 +0000)] 
Reorganize the code in sqlite3ota.c in preparation for adding support for update and delete operations.

FossilOrigin-Name: 98387f05697526c7740e91d8a846a31f77639406

10 years agoFix harmless compiler warning.
mistachkin [Fri, 5 Sep 2014 05:58:37 +0000 (05:58 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 733119067757814609a9cea6b975818607bee4e3

10 years agoAvoid ever running a checkpoint in ota mode.
dan [Thu, 4 Sep 2014 19:05:31 +0000 (19:05 +0000)] 
Avoid ever running a checkpoint in ota mode.

FossilOrigin-Name: 9ae44447256b425b5704a1cab3f6796befb92251

10 years agoFix showwal.c so that it works with 64KiB pages.
dan [Thu, 4 Sep 2014 18:05:42 +0000 (18:05 +0000)] 
Fix showwal.c so that it works with 64KiB pages.

FossilOrigin-Name: fc4f7c115207b786e3cac8cb6be4db3131b99a46

10 years agoAvoid calling sqlite3OsFetch() on a file-handle for which the xFetch method is NULL.
dan [Thu, 4 Sep 2014 11:03:35 +0000 (11:03 +0000)] 
Avoid calling sqlite3OsFetch() on a file-handle for which the xFetch method is NULL.

FossilOrigin-Name: 071f7f2decd2f786c0201a4219e9c2cc9d227085

10 years agoSplit part of "PRAGMA ota_mode" off into "PRAGMA pager_ota_mode". This allows some...
dan [Wed, 3 Sep 2014 19:30:32 +0000 (19:30 +0000)] 
Split part of "PRAGMA ota_mode" off into "PRAGMA pager_ota_mode". This allows some specialized custom VFS implementations to intercept and implement the expected pager-related effects of this pragma.

FossilOrigin-Name: 209f672e588b54dfbfb83c7859cacdc4497f0f2b

10 years agoAdd a command line program that uses the extension. This serves as example code and...
dan [Wed, 3 Sep 2014 08:25:09 +0000 (08:25 +0000)] 
Add a command line program that uses the extension. This serves as example code and is also useful for performance testing.

FossilOrigin-Name: ffa1524ef2a4c32652183eb4745685f0d1c93af2

10 years agoAdd an experimental extension for applying bulk updates to databases.
dan [Tue, 2 Sep 2014 19:59:40 +0000 (19:59 +0000)] 
Add an experimental extension for applying bulk updates to databases.

FossilOrigin-Name: 2954ab501049968430011b63d046eb42ff37a56c

10 years agoUpdate comments in the ANALYZE command that describe how the Stat4Accum
drh [Mon, 1 Sep 2014 23:06:44 +0000 (23:06 +0000)] 
Update comments in the ANALYZE command that describe how the Stat4Accum
objecct is passed around within the VDBE.  No changes to functional code.

FossilOrigin-Name: 9779c7a9eb1e2bd36e9286331a9314f064014d80

10 years agoAvoid a confusing (though correct) argument to the sqlite3_result_blob()
drh [Mon, 1 Sep 2014 22:34:54 +0000 (22:34 +0000)] 
Avoid a confusing (though correct) argument to the sqlite3_result_blob()
function in the implementation of ANALYZE.

FossilOrigin-Name: 4cae93f8ae8fb3fe38fd5dc7d3a5ea0d11552841

10 years agoFor sqlite3_win32_is_nt(), assume WinRT is NT-based and revise #ifdef ordering to...
mistachkin [Mon, 1 Sep 2014 19:29:19 +0000 (19:29 +0000)] 
For sqlite3_win32_is_nt(), assume WinRT is NT-based and revise #ifdef ordering to prefer the ANSI version of GetVersionEx, when available.

FossilOrigin-Name: be0a037244762cc0f5ff4a6d7822902f862767bd

10 years agoTweak the documentation for SQLITE_LIMIT_WORKER_THREADS. No changes to
drh [Mon, 1 Sep 2014 18:21:27 +0000 (18:21 +0000)] 
Tweak the documentation for SQLITE_LIMIT_WORKER_THREADS.  No changes to
executable code.

FossilOrigin-Name: 672e7387b1bda8d007da7de4244226577d7ab2dc

10 years agoAdd support for using separate worker threads to speed large sorts.
drh [Mon, 1 Sep 2014 17:36:46 +0000 (17:36 +0000)] 
Add support for using separate worker threads to speed large sorts.
The SQLITE_MAX_WORKER_THREADS and SQLITE_DEFAULT_WORKER_THREADS compile-time
options and the SQLITE_LIMIT_WORKER_THREADS argument to
sqlite3_limit() and the "PRAGMA threads=N" pragma are added.

FossilOrigin-Name: b1c0f0bc1bd8a3477cd7a7ab510f0442ac88b517

10 years agoAttempt to make the xDelete method of the unix VFS more robust on VxWorks.
drh [Mon, 1 Sep 2014 13:37:55 +0000 (13:37 +0000)] 
Attempt to make the xDelete method of the unix VFS more robust on VxWorks.

FossilOrigin-Name: b0f6b91f36b503d8ba8d5257bb194f8c1afb4833

10 years agoMicro-optimizations in sqlite3BtreeNext() and sqlite3BtreePrevious().
drh [Mon, 1 Sep 2014 13:29:32 +0000 (13:29 +0000)] 
Micro-optimizations in sqlite3BtreeNext() and sqlite3BtreePrevious().

FossilOrigin-Name: 839c7996eecd5480152c514555b9aa1121a69ce0

10 years agoFix harmless compiler warnings for MSVC.
mistachkin [Mon, 1 Sep 2014 01:16:49 +0000 (01:16 +0000)] 
Fix harmless compiler warnings for MSVC.

FossilOrigin-Name: 3ef3246120d72dffe469733bb21667a548af0a44

10 years agoIn the command-line shell, added options --lookaside, --pagecache, and
drh [Sat, 30 Aug 2014 15:49:25 +0000 (15:49 +0000)] 
In the command-line shell, added options --lookaside, --pagecache, and
--scratch used to configure auxiliary memories.

FossilOrigin-Name: f61db04be4d7fb21b7f721647c37c45e283ffbea

10 years agoDisable worker threads when SQLITE_THREADSAFE=0. Set the default compile-time threads
drh [Fri, 29 Aug 2014 19:06:07 +0000 (19:06 +0000)] 
Disable worker threads when SQLITE_THREADSAFE=0.  Set the default compile-time
maximum number of worker threads to 8 and honor the
SQLITE_DEFAULT_WORKER_THREADS compile-time constant (which defaults to 0).

FossilOrigin-Name: 33fa0410499900dd8beb44b9a8ffbd9f4b68c8d8

10 years agoFix the speedtest1.c test program to set the worker thread count using
drh [Fri, 29 Aug 2014 18:06:33 +0000 (18:06 +0000)] 
Fix the speedtest1.c test program to set the worker thread count using
the threads pragma.

FossilOrigin-Name: 2ab4b5adc60b52bf2d2b79968d226b8dd7d2ab3b

10 years agoAdd SQLITE_LIMIT_WORKER_THREADS for controlling the maximum number of
drh [Fri, 29 Aug 2014 16:20:47 +0000 (16:20 +0000)] 
Add SQLITE_LIMIT_WORKER_THREADS for controlling the maximum number of
worker threads.

FossilOrigin-Name: 1b598c68f32db635d1cea1373bedc434aa60cf08

10 years agoMerge recent performance enhancements from trunk onto the threads branch.
drh [Fri, 29 Aug 2014 14:40:07 +0000 (14:40 +0000)] 
Merge recent performance enhancements from trunk onto the threads branch.

FossilOrigin-Name: 35c44a3c73e2e8b14ff194c41986f4bdb9dfe737

10 years agoNote a fault after all, rather a testing mistake.
drh [Fri, 29 Aug 2014 14:20:46 +0000 (14:20 +0000)] 
Note a fault after all, rather a testing mistake.
Move this change back to trunk.
Was: Avoid an unnecessary OP_Move operation for expression subqueries.

FossilOrigin-Name: 2a74129a21f9745f1363f844807e2d10201a3f40

10 years agoAvoid an unnecessary OP_Move operation for expression subqueries.
drh [Fri, 29 Aug 2014 12:29:39 +0000 (12:29 +0000)] 
Avoid an unnecessary OP_Move operation for expression subqueries.

FossilOrigin-Name: 462f42af52f146fd328ddcbbe78c8444ef7bd2c3

10 years agoImproved WHERETRACE messages for the estimated output row reductions from
drh [Thu, 28 Aug 2014 19:38:22 +0000 (19:38 +0000)] 
Improved WHERETRACE messages for the estimated output row reductions from
range scans.

FossilOrigin-Name: fdd478bb11eb9e244a7a1fb628ac27c53830fb24

10 years agoFix a problem causing an inaccurate stat4-based estimate for the
drh [Thu, 28 Aug 2014 17:30:28 +0000 (17:30 +0000)] 
Fix a problem causing an inaccurate stat4-based estimate for the
number of rows visited by a range scan.

FossilOrigin-Name: a9daf3ac444b896013f4054051937d49a597624a

10 years agoAdd a testcase() macro to help verfity the row estimation logic. stat4-experimental
drh [Thu, 28 Aug 2014 17:20:37 +0000 (17:20 +0000)] 
Add a testcase() macro to help verfity the row estimation logic.

FossilOrigin-Name: 6ba609522ea7325341fad93bdb5f869c6506dea4