]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoUpdate this branch with the latest changes from sorter-opt. insert-select-opt
dan [Fri, 10 Apr 2015 08:28:24 +0000 (08:28 +0000)] 
Update this branch with the latest changes from sorter-opt.

FossilOrigin-Name: 08c0b19b89ea62d40c85bab64d9c80e02eaa8d5d

10 years agoUpdate this branch with latest trunk changes.
dan [Fri, 10 Apr 2015 08:20:42 +0000 (08:20 +0000)] 
Update this branch with latest trunk changes.

FossilOrigin-Name: 60be9c1c1ad0d8250a99cadda820dff40a31c94e

10 years agoDo not allow virtual table constructors to be called recursively.
dan [Fri, 10 Apr 2015 07:55:07 +0000 (07:55 +0000)] 
Do not allow virtual table constructors to be called recursively.

FossilOrigin-Name: 0a72726da21581ab16cb3e964bd825b8f2e931e4

10 years agoFix incorrect column names in UPDATE statements generated by the sqldiff
drh [Thu, 9 Apr 2015 19:39:54 +0000 (19:39 +0000)] 
Fix incorrect column names in UPDATE statements generated by the sqldiff
utility.

FossilOrigin-Name: ee53b46011852e27db23708387fe1e918cc8284c

10 years agoAdd the --primarykey option to the sqldiff tool, which causes it to use the
drh [Thu, 9 Apr 2015 18:14:03 +0000 (18:14 +0000)] 
Add the --primarykey option to the sqldiff tool, which causes it to use the
schema-defined PRIMARY KEY.

FossilOrigin-Name: 5063f9070afde9374ea0f2bc338fee840d8b3dd4

10 years agoRemove two pointless assert() statements. This should silence harmless
drh [Thu, 9 Apr 2015 16:30:56 +0000 (16:30 +0000)] 
Remove two pointless assert() statements.  This should silence harmless
compiler warnings reported at
[https://bugzilla.mozilla.org/show_bug.cgi?id=1152845]

FossilOrigin-Name: 83b342a44ffc9ea07dc4d59f2866cefc68ee4f13

10 years agoFix comment typos in the sqldiff.c utility program.
drh [Thu, 9 Apr 2015 13:40:18 +0000 (13:40 +0000)] 
Fix comment typos in the sqldiff.c utility program.

FossilOrigin-Name: 32ab2bb990746a84f5944e3cf428fb2dff3628da

10 years agoAdd the "sqldiff" utility program.
drh [Thu, 9 Apr 2015 13:34:29 +0000 (13:34 +0000)] 
Add the "sqldiff" utility program.

FossilOrigin-Name: 88da5bf5d2c4f848dbd4b5ffb1539abfbbdaff18

10 years agoRemove a variable initializion to silence a harmless compiler warning.
drh [Thu, 9 Apr 2015 11:24:03 +0000 (11:24 +0000)] 
Remove a variable initializion to silence a harmless compiler warning.

FossilOrigin-Name: 79861adbef8998c0f23e160543af8212d5546cd0

10 years agoVersion 3.8.9 version-3.8.9
drh [Wed, 8 Apr 2015 12:16:33 +0000 (12:16 +0000)] 
Version 3.8.9

FossilOrigin-Name: 8a8ffc862e96f57aa698f93de10dee28e69f6e09

10 years agoAvoid signed integer overflow when converting oversized in-line integer
drh [Tue, 7 Apr 2015 15:39:29 +0000 (15:39 +0000)] 
Avoid signed integer overflow when converting oversized in-line integer
widths and precisions in printf().

FossilOrigin-Name: 8e4ac2ce24415926247961b00a62425ae85d6ffb

10 years agoAnother change to avoid a problem caused by integer overflow in the printf() code.
dan [Tue, 7 Apr 2015 14:38:57 +0000 (14:38 +0000)] 
Another change to avoid a problem caused by integer overflow in the printf() code.

FossilOrigin-Name: 95625ef3adc3c408d67e70f877f390445fbb8292

10 years agoFurther changes to guard against integer overflow in the width and precision
drh [Tue, 7 Apr 2015 13:28:41 +0000 (13:28 +0000)] 
Further changes to guard against integer overflow in the width and precision
of printf() arguments.

FossilOrigin-Name: 5ce4e7d7651e5c72a59f03f7aeb366291e62ab57

10 years agoGuard against excessive width and precision in floating-point conversions
drh [Tue, 7 Apr 2015 12:41:17 +0000 (12:41 +0000)] 
Guard against excessive width and precision in floating-point conversions
in the printf routines.

FossilOrigin-Name: c494171f77dc2e5e04cb6d865e688448f04e5920

10 years agoFix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables...
dan [Mon, 6 Apr 2015 11:04:51 +0000 (11:04 +0000)] 
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.

FossilOrigin-Name: 3ad829e50faca538db3abb2afb898b5521550c5c

10 years agoFix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables... fts3-prefix-query-fix
dan [Mon, 6 Apr 2015 09:05:29 +0000 (09:05 +0000)] 
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.

FossilOrigin-Name: 0cdf502885ea7e5805d7ba3719f055f5d48fc78d

10 years agoFix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached...
dan [Sat, 4 Apr 2015 16:49:04 +0000 (16:49 +0000)] 
Fix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached to compound SELECT statements.

FossilOrigin-Name: edc1de2a588fd50c0049bb2be76d3f6783443165

10 years agoFix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached... compound-order-by-fix
dan [Sat, 4 Apr 2015 16:43:16 +0000 (16:43 +0000)] 
Fix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached to compound SELECT statements.

FossilOrigin-Name: 427b50fba7362e5b447e79d39050f25ed2ef10af

10 years agoDisable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work and
drh [Fri, 3 Apr 2015 20:33:33 +0000 (20:33 +0000)] 
Disable the SQLITE_FCNTL_WAL_BLOCK feature for now.  It needs more work and
is not yet ready for release.

FossilOrigin-Name: 4ae9a3acc4eeeb7998769eb856c97c2233476f72

10 years agoAdd source code to the "showlocks" utility program in the tool/ subdirectory.
drh [Fri, 3 Apr 2015 18:33:40 +0000 (18:33 +0000)] 
Add source code to the "showlocks" utility program in the tool/ subdirectory.

FossilOrigin-Name: 6868cc66d2be67b7f03776c982962ffa4b30de11

10 years agoDisable e_walauto.test on OpenBSD, as it requires a coherent cache.
dan [Thu, 2 Apr 2015 15:24:53 +0000 (15:24 +0000)] 
Disable e_walauto.test on OpenBSD, as it requires a coherent cache.

FossilOrigin-Name: 90701227085b8b8eb10a8eebe8d55f38b4778574

10 years agoFix a problem in vdbesort.c to do with caching unpacked records.
dan [Thu, 2 Apr 2015 09:06:21 +0000 (09:06 +0000)] 
Fix a problem in vdbesort.c to do with caching unpacked records.

FossilOrigin-Name: 80a00539506c95443165a781d1d869205057ca6c

10 years agoMerge latest trunk changes with this branch.
dan [Wed, 1 Apr 2015 18:22:26 +0000 (18:22 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 4621b2eef8be6d944f87de097bd11c649fe43333

10 years agoWhen vacuuming an index that uses no collations other than BINARY, assume that the...
dan [Wed, 1 Apr 2015 18:20:25 +0000 (18:20 +0000)] 
When vacuuming an index that uses no collations other than BINARY, assume that the order of index entries will not be changed by the VACUUM.

FossilOrigin-Name: e403460b96814ac8cb976d58b27939b3bd3c61f9

10 years agoReduce the CPU used by CREATE INDEX statements by taking better advantage of the...
dan [Wed, 1 Apr 2015 16:18:00 +0000 (16:18 +0000)] 
Reduce the CPU used by CREATE INDEX statements by taking better advantage of the fact that keys are inserted in sorted order.

FossilOrigin-Name: 592cdc5d7254be7032aa9c0b03405a74ca060b51

10 years agoImproved detection and suppression of endless loops in clearDatabasePage().
drh [Wed, 1 Apr 2015 13:21:33 +0000 (13:21 +0000)] 
Improved detection and suppression of endless loops in clearDatabasePage().

FossilOrigin-Name: 30011ad2f55cfcacaf23a58ebcc17b17a7b9355e

10 years agoOn windows, flush the mapping view when syncing content to disk.
drh [Tue, 31 Mar 2015 19:40:05 +0000 (19:40 +0000)] 
On windows, flush the mapping view when syncing content to disk.

FossilOrigin-Name: a828e73dc1ae50189bdf73f60caeb7308738ad7a

10 years agoAdd the "mptest" target to main.mk. Change TRUNCATE and PERSIST to DELETE
drh [Tue, 31 Mar 2015 18:05:49 +0000 (18:05 +0000)] 
Add the "mptest" target to main.mk.  Change TRUNCATE and PERSIST to DELETE
for mptest.c on Windows because of problems trying to delete the journal.

FossilOrigin-Name: ea697e6d9ff1f4d77774589a02ba4a18feafbf03

10 years agoChange the sqlite3_log() message generated on a retry after delay in os_win
drh [Tue, 31 Mar 2015 17:32:06 +0000 (17:32 +0000)] 
Change the sqlite3_log() message generated on a retry after delay in os_win
to be an SQLITE_NOTICE instead of SQLITE_IOERR.

FossilOrigin-Name: 5d533eee049e63b3700f5ef7c28c588afccde57a

10 years agoFix configure.ac and Makefile.in so that they generate pkgIndex.tcl correctly.
drh [Tue, 31 Mar 2015 17:01:52 +0000 (17:01 +0000)] 
Fix configure.ac and Makefile.in so that they generate pkgIndex.tcl correctly.

FossilOrigin-Name: 3deff25249c59b7fc1b6eb65dda39736955679c6

10 years agoMinor tweaks to the MSVC Makefile.
mistachkin [Tue, 31 Mar 2015 16:42:16 +0000 (16:42 +0000)] 
Minor tweaks to the MSVC Makefile.

FossilOrigin-Name: 7244ea59ede8aa2c7d1dc2c85268e12ddd452e27

10 years agoHandle very large URI pathnames for in-memory shared-cache databases.
drh [Tue, 31 Mar 2015 16:33:08 +0000 (16:33 +0000)] 
Handle very large URI pathnames for in-memory shared-cache databases.

FossilOrigin-Name: 586a94e85bc13700a2093734711c1367fa814b8c

10 years agoFix harmless compiler warnings in lemon.c
drh [Tue, 31 Mar 2015 15:15:48 +0000 (15:15 +0000)] 
Fix harmless compiler warnings in lemon.c

FossilOrigin-Name: bbe7dcda689a25860f2104804f00ba0a720c1372

10 years agoFix the corruptJ.test case so that it works with and without
drh [Tue, 31 Mar 2015 14:31:41 +0000 (14:31 +0000)] 
Fix the corruptJ.test case so that it works with and without
SQLITE_SECURE_DELETE.

FossilOrigin-Name: 0c0ecfd68573957553b966229a67bfcd10ce4b99

10 years agoAdditional logging information output by mptester.
drh [Tue, 31 Mar 2015 14:18:29 +0000 (14:18 +0000)] 
Additional logging information output by mptester.

FossilOrigin-Name: 0cbbf6e4571ffef102c0e515f29166f2f2022126

10 years agoAdd the "mptest" target to Makefile.msc
drh [Tue, 31 Mar 2015 13:46:13 +0000 (13:46 +0000)] 
Add the "mptest" target to Makefile.msc

FossilOrigin-Name: 1e814e0bd116ad5a05ab9f0ebed7e21b23ed0681

10 years agoEnsure that comparison operators do not mess up the MEM_Dyn flag on registers
drh [Tue, 31 Mar 2015 11:42:23 +0000 (11:42 +0000)] 
Ensure that comparison operators do not mess up the MEM_Dyn flag on registers
when reverting affinity changes.

FossilOrigin-Name: 02e3c88fbf6abdcf3975fb0fb71972b0ab30da30

10 years agoPrevent a possible infinite loop when trying to DROP a table from
drh [Mon, 30 Mar 2015 23:43:56 +0000 (23:43 +0000)] 
Prevent a possible infinite loop when trying to DROP a table from
a corrupt database.

FossilOrigin-Name: 395bb3e677a6551b06ba96fc58c393132b93d1e8

10 years agoMerge sorter optimizations with this branch.
dan [Mon, 30 Mar 2015 15:45:45 +0000 (15:45 +0000)] 
Merge sorter optimizations with this branch.

FossilOrigin-Name: 9bf1cfb4d99328bb95567330fdae76518f6386e2

10 years agoImprove performance of multi-field sorts where the first field has a low cardinality.
dan [Mon, 30 Mar 2015 12:06:26 +0000 (12:06 +0000)] 
Improve performance of multi-field sorts where the first field has a low cardinality.

FossilOrigin-Name: 601e7b6b8e6bfabda03b70f75094c9014e3a3c49

10 years agoRemove some unnecessary code from vdbesort.c.
dan [Mon, 30 Mar 2015 09:58:38 +0000 (09:58 +0000)] 
Remove some unnecessary code from vdbesort.c.

FossilOrigin-Name: b58191e91736b1d978db4127f22867dfe2302f7c

10 years agoFurther optimizations for sorting records that begin with integer or text values.
dan [Sat, 28 Mar 2015 19:56:41 +0000 (19:56 +0000)] 
Further optimizations for sorting records that begin with integer or text values.

FossilOrigin-Name: 24fe9f25d64ee516633fed1ae7ebc21554aa69ca

10 years agoMerge updates from trunk. winViewFlush
mistachkin [Fri, 27 Mar 2015 18:22:01 +0000 (18:22 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 45acf6a85150839d591316418dad59ae20ce3aa4

10 years agoEnhancements to OSTRACE usage in the Win32 VFS.
mistachkin [Fri, 27 Mar 2015 18:20:25 +0000 (18:20 +0000)] 
Enhancements to OSTRACE usage in the Win32 VFS.

FossilOrigin-Name: ab5800291e1908b5b51d912feeacf748dc9be14b

10 years agoFix the ".testctrl imposter" command in the command-line shell to be
drh [Fri, 27 Mar 2015 02:27:20 +0000 (02:27 +0000)] 
Fix the ".testctrl imposter" command in the command-line shell to be
consistent in error reporting and results with the other .testctrl
commands.

FossilOrigin-Name: 0ec08ba8a0fa188146b071a489908332693ba59a

10 years agoUsing MSVC, get the sqlite3IoTrace variable working with the USE_STDCALL and/or DYNAM...
mistachkin [Fri, 27 Mar 2015 00:21:52 +0000 (00:21 +0000)] 
Using MSVC, get the sqlite3IoTrace variable working with the USE_STDCALL and/or DYNAMIC_SHELL options.

FossilOrigin-Name: fe976c9130f6eecfa0a10347ee3f800f32051b89

10 years agoIn the MSVC Makefile, make the DYNAMIC_SHELL option work without USE_STDCALL.
mistachkin [Fri, 27 Mar 2015 00:19:31 +0000 (00:19 +0000)] 
In the MSVC Makefile, make the DYNAMIC_SHELL option work without USE_STDCALL.

FossilOrigin-Name: 25b46a9c7e03a84bee2ffddc6d7fd6ae280e9d7b

10 years agoWhen syncing a memory mapped file on Windows, flush the mapped view as well.
mistachkin [Thu, 26 Mar 2015 23:36:35 +0000 (23:36 +0000)] 
When syncing a memory mapped file on Windows, flush the mapped view as well.

FossilOrigin-Name: df204049b9ec8dd3e43ed7dc251eaecedc05af4b

10 years agoRevise Win32 locking test to account for recent log message changes.
mistachkin [Thu, 26 Mar 2015 18:24:26 +0000 (18:24 +0000)] 
Revise Win32 locking test to account for recent log message changes.

FossilOrigin-Name: 1bc76339e8542770bff7829a3dd346680950c0a5

10 years agoAvoid leaving the malloc subsystem in a partially initialized state if
drh [Thu, 26 Mar 2015 17:04:23 +0000 (17:04 +0000)] 
Avoid leaving the malloc subsystem in a partially initialized state if
the low-level initialization callback fails.

FossilOrigin-Name: 3e872011ff5e27738c282f46d2b5803d94fe4b76

10 years agoProvide source code line numbers for errors in the Windows VFS generated
drh [Thu, 26 Mar 2015 15:27:32 +0000 (15:27 +0000)] 
Provide source code line numbers for errors in the Windows VFS generated
by the winLogIoerr() routine.

FossilOrigin-Name: b5da0d93cd1a3c0917399af3775a32327b883c8e

10 years agoFix a harmless compiler warning in FTS3.
drh [Thu, 26 Mar 2015 14:29:51 +0000 (14:29 +0000)] 
Fix a harmless compiler warning in FTS3.

FossilOrigin-Name: 1688f60c08cc9270948402d98a2333382aa32681

10 years agoMerge sorter optimization into this branch.
dan [Thu, 26 Mar 2015 12:38:20 +0000 (12:38 +0000)] 
Merge sorter optimization into this branch.

FossilOrigin-Name: aeb8e9a9f2092fda0c3e051f135e1d65cf77ff13

10 years agoOptimize cases where all the sorter is sorting a set of records that all begin with...
dan [Thu, 26 Mar 2015 11:55:03 +0000 (11:55 +0000)] 
Optimize cases where all the sorter is sorting a set of records that all begin with integer values, or that all begin with text values to be compared using BINARY.

FossilOrigin-Name: ce5ad17c25cf2f8274ce304c51e4421faae0b32b

10 years agoChange an unreachable branch into an assert().
drh [Wed, 25 Mar 2015 18:29:10 +0000 (18:29 +0000)] 
Change an unreachable branch into an assert().

FossilOrigin-Name: fb076b28c36975ff2e41440f22fe5de115c195da

10 years agoFix the saveCursorPosition() routine in btree.c so that it works
drh [Wed, 25 Mar 2015 17:35:01 +0000 (17:35 +0000)] 
Fix the saveCursorPosition() routine in btree.c so that it works
correctly for a eState=CURSOR_SKIPNEXT cursor.

FossilOrigin-Name: 37866b4d483296ab9b7fcb9f5486695d4c2b8ddd

10 years agoReactivate an older assert() (adding an "|| CORRUPT_DB" term) and add a
drh [Wed, 25 Mar 2015 13:06:54 +0000 (13:06 +0000)] 
Reactivate an older assert() (adding an "|| CORRUPT_DB" term) and add a
new assert() in btree.c.

FossilOrigin-Name: 1e96520ac1d12ca83f019a60482efa0a074f2f94

10 years agoAdd two new assert()s to the sqlite3BtreeDataSize() method.
drh [Wed, 25 Mar 2015 12:05:49 +0000 (12:05 +0000)] 
Add two new assert()s to the sqlite3BtreeDataSize() method.

FossilOrigin-Name: 42d1793d6516e285a8925bbfd96b3d3375603d15

10 years agoAdd SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.
mistachkin [Tue, 24 Mar 2015 22:00:26 +0000 (22:00 +0000)] 
Add SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.

FossilOrigin-Name: cae3239aa58b4f7016fc9dcac3966fe6ef833879

10 years agoFurther simplifications to the amalgamation builder. stdcall
drh [Tue, 24 Mar 2015 21:54:42 +0000 (21:54 +0000)] 
Further simplifications to the amalgamation builder.

FossilOrigin-Name: e826cd7db6b3ab010533d81a759794c2470343d2

10 years agoUpdate the 'mksqlite3c-noext' tool as well.
mistachkin [Tue, 24 Mar 2015 21:52:12 +0000 (21:52 +0000)] 
Update the 'mksqlite3c-noext' tool as well.

FossilOrigin-Name: a532256688c3a7a6385e041ec73913842e2c3ab3

10 years agoFix a couple comment typos in a tool script. No changes to code.
mistachkin [Tue, 24 Mar 2015 21:34:53 +0000 (21:34 +0000)] 
Fix a couple comment typos in a tool script.  No changes to code.

FossilOrigin-Name: 83421af67063825981f6051eb415944d90e9b2f6

10 years agoAdd SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.
mistachkin [Tue, 24 Mar 2015 21:27:27 +0000 (21:27 +0000)] 
Add SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.

FossilOrigin-Name: 242f09d4d1c92ee9058857a5e780442f4b7bad55

10 years agoUpdate this branch with latest trunk changes.
dan [Tue, 24 Mar 2015 19:43:19 +0000 (19:43 +0000)] 
Update this branch with latest trunk changes.

FossilOrigin-Name: 3ccd64eff7ded6d7e918baa3ba096a34d1298040

10 years agoSuppress a compiler warning that was appearing with SQLITE_THREADSAFE=0.
drh [Tue, 24 Mar 2015 18:19:39 +0000 (18:19 +0000)] 
Suppress a compiler warning that was appearing with SQLITE_THREADSAFE=0.

FossilOrigin-Name: 436314b5728c9413f9ac2d837e1c19364f31be72

10 years agoPrevent a virtual table from being destroyed while it is in use.
drh [Tue, 24 Mar 2015 16:43:34 +0000 (16:43 +0000)] 
Prevent a virtual table from being destroyed while it is in use.
Also: replace Vdbe.inVtabMethod with sqlite3.nVDestroy.  Simplify the
EXPLAIN output for P4.pVtab to only show the sqlite3_vtab pointer.

FossilOrigin-Name: cbeb9a1aed8ce3fb569a7717ad03c7c058b68de6

10 years agoAdd tests to check that attempting to DROP a virtual table while it is use does not... nVDestroy
dan [Tue, 24 Mar 2015 14:57:21 +0000 (14:57 +0000)] 
Add tests to check that attempting to DROP a virtual table while it is use does not cause problems.

FossilOrigin-Name: 5ee625b1980f9fab6294d308349dfd9ba960b60b

10 years agoSimplify the EXPLAIN output of virtual table P4 parameters to only show the
drh [Tue, 24 Mar 2015 14:57:02 +0000 (14:57 +0000)] 
Simplify the EXPLAIN output of virtual table P4 parameters to only show the
pointer to the sqlite3_vtab object and omit the sqlite3_module object.

FossilOrigin-Name: 85610bbbc60cb4a6ec856123447fdb2ba948e52f

10 years agoMore defenses against virtual table being deleted out from under a running
drh [Tue, 24 Mar 2015 14:05:50 +0000 (14:05 +0000)] 
More defenses against virtual table being deleted out from under a running
statement.

FossilOrigin-Name: 116c99823022c017946b6088878a2d46759deb6e

10 years agoPrevent a virtual table from being destroyed while it is in use.
drh [Tue, 24 Mar 2015 13:32:53 +0000 (13:32 +0000)] 
Prevent a virtual table from being destroyed while it is in use.

FossilOrigin-Name: fba674c083286dabb37fed9357b67593b56ed3a5

10 years agoReplace the Vdbe.inVtabMethod field with the sqlite3.nVDestroy counter.
drh [Tue, 24 Mar 2015 12:51:52 +0000 (12:51 +0000)] 
Replace the Vdbe.inVtabMethod field with the sqlite3.nVDestroy counter.

FossilOrigin-Name: 9faefb96272967e731e83ef516a8c1e1b876391b

10 years agoDisable loadable extensions in the command-line shell on VxWorks user-space.
drh [Mon, 23 Mar 2015 21:32:50 +0000 (21:32 +0000)] 
Disable loadable extensions in the command-line shell on VxWorks user-space.

FossilOrigin-Name: 0ee2d38deb35aefc55395e86984a9a773caf6218

10 years agoTrack total memory usage using a 64-bit integer on 64-bit systems. Add
drh [Mon, 23 Mar 2015 19:55:21 +0000 (19:55 +0000)] 
Track total memory usage using a 64-bit integer on 64-bit systems.  Add
the sqlite3_status64() interface.  Make the sqlite3_status() and
sqlite3_status64() interfaces atomic using mutexes and verify correct
mutex operation using assert() statements.

FossilOrigin-Name: 6fc4e79a2350295a15ac464593ad39d904953041

10 years agoFix a non-C89 variable declaration that causes problems for MSVC. status64
drh [Mon, 23 Mar 2015 19:16:30 +0000 (19:16 +0000)] 
Fix a non-C89 variable declaration that causes problems for MSVC.

FossilOrigin-Name: 3de085eab2fbe491f2242b340851e8af8f61ad13

10 years agoFix datetype size asserts in btree.c.
drh [Mon, 23 Mar 2015 19:03:51 +0000 (19:03 +0000)] 
Fix datetype size asserts in btree.c.

FossilOrigin-Name: ff4812d0e8e6322ca8b6992925fd4ef4aee463e6

10 years agoAdd the SQLITE_PTRSIZE macro. Use it to help sqlite3_status() run faster
drh [Mon, 23 Mar 2015 18:52:56 +0000 (18:52 +0000)] 
Add the SQLITE_PTRSIZE macro.  Use it to help sqlite3_status() run faster
on 32-bit systems.

FossilOrigin-Name: c742bd6047bc6d0319a5a8c31d97f6b9229507f6

10 years agoAdd the sqlite3_status64() interface. Make the new interface and the legacy
drh [Mon, 23 Mar 2015 17:25:18 +0000 (17:25 +0000)] 
Add the sqlite3_status64() interface.  Make the new interface and the legacy
sqlite3_status() both atomic and threadsafe.  Check threadsafety using
assert()s.

FossilOrigin-Name: 1ce8e8fa4b866aafa12b1da0eb4d02321af9293e

10 years agoSet the OPFLAG_SEEKRESULT correctly in "INSERT INTO ... SELECT" statements.
dan [Mon, 23 Mar 2015 14:39:19 +0000 (14:39 +0000)] 
Set the OPFLAG_SEEKRESULT correctly in "INSERT INTO ... SELECT" statements.

FossilOrigin-Name: 6f7d9995855bb5ae6dfe75c08a532b26808988b3

10 years agoFix a potential NULL pointer dereference following a syntax error.
drh [Sun, 22 Mar 2015 10:23:17 +0000 (10:23 +0000)] 
Fix a potential NULL pointer dereference following a syntax error.

FossilOrigin-Name: 8d27e3e16a9be79fe227e833f4770ebe09a9d90b

10 years agoFix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both...
mistachkin [Sat, 21 Mar 2015 23:38:59 +0000 (23:38 +0000)] 
Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both enabled.

FossilOrigin-Name: 9513dbd4860c8dd391f831982d09aff227d16f5c

10 years agoAdd more comments to the MSVC batch build tool.
mistachkin [Sat, 21 Mar 2015 22:23:46 +0000 (22:23 +0000)] 
Add more comments to the MSVC batch build tool.

FossilOrigin-Name: 03522da37821958c647d49bf8189a5affa3f6720

10 years agoIncrease the debugging level for the debug configuration in the MSVC batch build...
mistachkin [Sat, 21 Mar 2015 22:13:47 +0000 (22:13 +0000)] 
Increase the debugging level for the debug configuration in the MSVC batch build tool.

FossilOrigin-Name: 041484ff91fd4615368ccb2257ab50acc2cd4fea

10 years agoDo not invoke a C preprocessor macro with an empty argument, as (reportedly)
drh [Sat, 21 Mar 2015 20:59:43 +0000 (20:59 +0000)] 
Do not invoke a C preprocessor macro with an empty argument, as (reportedly)
some versions of GCC are unable to deal with that.

FossilOrigin-Name: de9da317d4df3efefe9a1a48f954af8a19e7d098

10 years agoAdd a missing "int" on a constant declaration.
drh [Sat, 21 Mar 2015 20:50:58 +0000 (20:50 +0000)] 
Add a missing "int" on a constant declaration.

FossilOrigin-Name: 235157de5113ac4c750e36a498e2a1f1cf461751

10 years agoAvoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_...
dan [Sat, 21 Mar 2015 19:35:09 +0000 (19:35 +0000)] 
Avoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_tokenizer().

FossilOrigin-Name: 6d0989695b486275824c14d5f88357267c1e8104

10 years agoChange walblock.test to block an external process for 10 seconds, not 5. 5 seconds...
dan [Sat, 21 Mar 2015 16:40:24 +0000 (16:40 +0000)] 
Change walblock.test to block an external process for 10 seconds, not 5. 5 seconds is not long enough to tell the difference between a blocking lock and a series of retries.

FossilOrigin-Name: 717335fcdb15430ed977cbc98d30345b71728b66

10 years agoFix the blocking WAL lock so that it works and so that it compiles on a Mac.
drh [Sat, 21 Mar 2015 16:36:03 +0000 (16:36 +0000)] 
Fix the blocking WAL lock so that it works and so that it compiles on a Mac.

FossilOrigin-Name: 67d69d21de32816894be53e4b446656d4174eb0d

10 years agoDo not use sorters for INSERT statements that insert multiple rows using the VALUES...
dan [Sat, 21 Mar 2015 15:26:42 +0000 (15:26 +0000)] 
Do not use sorters for INSERT statements that insert multiple rows using the VALUES clause.

FossilOrigin-Name: 93e28ea1ef41f274c5685f3bbb93a4d9ad44c880

10 years agoMerge latest trunk changes with this branch.
dan [Sat, 21 Mar 2015 15:04:27 +0000 (15:04 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 9affe7f3f9ccb4fd93d428d6c1c2370b09ad0383

10 years agoRemove an unreachable branch from the OP_VCreate opcode (merge accidental fork in...
dan [Sat, 21 Mar 2015 12:25:23 +0000 (12:25 +0000)] 
Remove an unreachable branch from the OP_VCreate opcode (merge accidental fork in trunk).

FossilOrigin-Name: 2fbfec62fc03d42ee240dfefaa0aeb59a3f04d88

10 years agoAvoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuit...
dan [Sat, 21 Mar 2015 12:22:51 +0000 (12:22 +0000)] 
Avoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuitively (perhaps because the behaviour is undefined). Add an "ifcapable trace" to a test in shell4.test.

FossilOrigin-Name: e3e234649616f20610abce9ae9da1c572d3a4377

10 years agoRemove an unreachable branch from the OP_VCreate opcode.
drh [Sat, 21 Mar 2015 12:22:16 +0000 (12:22 +0000)] 
Remove an unreachable branch from the OP_VCreate opcode.

FossilOrigin-Name: 5fca41a3811766b48f5f23d5d49cc4e6e79fa867

10 years agoAdd a missing "ifcapable fts3" to a test case in vtab2.test.
dan [Sat, 21 Mar 2015 10:53:01 +0000 (10:53 +0000)] 
Add a missing "ifcapable fts3" to a test case in vtab2.test.

FossilOrigin-Name: d845b0f69093178517d66e1fc5060e8f62c681c7

10 years agoMerge recent trunk changes with this branch.
dan [Sat, 21 Mar 2015 07:16:44 +0000 (07:16 +0000)] 
Merge recent trunk changes with this branch.

FossilOrigin-Name: 35eef4ddd5010b869ed6daa5017caebc79d0b3fa

10 years agoDisable the sorter optimization used by INSERT INTO SELECT statements if the statemen...
dan [Sat, 21 Mar 2015 07:03:55 +0000 (07:03 +0000)] 
Disable the sorter optimization used by INSERT INTO SELECT statements if the statement explicitly specifies REPLACE, IGNORE or FAIL conflict handling.

FossilOrigin-Name: d42159429735c4a03f1d66887135487a9513ea29

10 years agoCorrectly detect the error of having a "*" wildcard on a SELECT without
drh [Sat, 21 Mar 2015 03:18:22 +0000 (03:18 +0000)] 
Correctly detect the error of having a "*" wildcard on a SELECT without
a FROM clause on the left-hand side of a recursive CTE.

FossilOrigin-Name: b11d1793a06a44931edcbf12a615b49794d53a62

10 years agoIf a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
drh [Sat, 21 Mar 2015 02:58:20 +0000 (02:58 +0000)] 
If a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
designation takes precedence.

FossilOrigin-Name: d871a7921722bb0fef6d51e1110a9703ddff78c8

10 years agoRemove superfluous define from the MSVC makefile.
mistachkin [Sat, 21 Mar 2015 02:25:29 +0000 (02:25 +0000)] 
Remove superfluous define from the MSVC makefile.

FossilOrigin-Name: 880d2513a0fb084fae82080401b108fb13e61478

10 years agoImprovements to the MSVC build. Fix harmless compiler warnings. Enable use of ...
mistachkin [Sat, 21 Mar 2015 02:22:37 +0000 (02:22 +0000)] 
Improvements to the MSVC build.  Fix harmless compiler warnings.  Enable use of 'stdcall'.

FossilOrigin-Name: 737630b87314283b2c38790ace9d25ec05f81f4a

10 years agoWhere possible insert the set of new keys for each index in sorted order within ...
dan [Fri, 20 Mar 2015 20:30:26 +0000 (20:30 +0000)] 
Where possible insert the set of new keys for each index in sorted order within "INSERT INTO ... SELECT" statements.

FossilOrigin-Name: 0a7f2051b2cc9b4e060fd6081587502124e16c9e