]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoOpen a statement transaction for "CREATE VIRTUAL TABLE" statements in order to ensure... vcreate-stmt
dan [Mon, 28 Mar 2016 14:57:04 +0000 (14:57 +0000)] 
Open a statement transaction for "CREATE VIRTUAL TABLE" statements in order to ensure that if the xCreate() call fails, changes made to the sqlite_master and possibly other tables are rolled back.

FossilOrigin-Name: d0a3853b37230c12f8d4c5c24401cb707991e5e4

9 years agoFix the multiplexor so that it does not assume that the xGetLastError method
drh [Mon, 28 Mar 2016 11:01:54 +0000 (11:01 +0000)] 
Fix the multiplexor so that it does not assume that the xGetLastError method
is non-NULL in the child VFS.

FossilOrigin-Name: f6a88cccbc0c62a0b453f4711298c9d5e1882b18

9 years agoMore changes to the shellN.test scripts to get them working on all variations
drh [Sat, 26 Mar 2016 15:36:36 +0000 (15:36 +0000)] 
More changes to the shellN.test scripts to get them working on all variations
of Windows.

FossilOrigin-Name: 8213c2f58167243411d29cc58e303b4be656f756

9 years agoRemove the catchcmd_collapse_space procedure in tester.tcl - no longer needed.
drh [Sat, 26 Mar 2016 14:41:13 +0000 (14:41 +0000)] 
Remove the catchcmd_collapse_space procedure in tester.tcl - no longer needed.

FossilOrigin-Name: 3bd499d3bdf4e80f83513966c2ee9dd11e67cbd1

9 years agoUpdate shell1.test tests to deal with backslash escaping in TCL on Windows-style
drh [Sat, 26 Mar 2016 13:26:35 +0000 (13:26 +0000)] 
Update shell1.test tests to deal with backslash escaping in TCL on Windows-style
pathnames.

FossilOrigin-Name: 219a251e182bf43376fbc8ae1ce6f77f18a1b092

9 years agoDo not run the shell3.test module under mingw because of mingw's dodgy
drh [Fri, 25 Mar 2016 20:10:20 +0000 (20:10 +0000)] 
Do not run the shell3.test module under mingw because of mingw's dodgy
command-line parsing.

FossilOrigin-Name: a7c080a90a236fbc18b9a42b78dbed4dd8a25160

9 years agoIn the Win32 VFS, avoid trying to use rand_s() on Windows CE.
mistachkin [Fri, 25 Mar 2016 17:19:57 +0000 (17:19 +0000)] 
In the Win32 VFS, avoid trying to use rand_s() on Windows CE.

FossilOrigin-Name: 183350fa7cc6a5ab8bd0a86cab231a6e4c915890

9 years agoAdd the catchcmd_collapse_space command and use it to help make shell testing
drh [Fri, 25 Mar 2016 17:09:16 +0000 (17:09 +0000)] 
Add the catchcmd_collapse_space command and use it to help make shell testing
more robust against TCL space escapes.

FossilOrigin-Name: 93caabb66082f76ef161a51ac822b919517a7171

9 years agoFix two instances of undefined behavior in the C code - both harmless for
drh [Fri, 25 Mar 2016 12:10:32 +0000 (12:10 +0000)] 
Fix two instances of undefined behavior in the C code - both harmless for
all current compilers.

FossilOrigin-Name: 99fd194c83dbcfcdcc582983b86678b85b1b9570

9 years agoMake test cases in shell1.test robust against TCL deciding to quote strings
drh [Thu, 24 Mar 2016 20:55:03 +0000 (20:55 +0000)] 
Make test cases in shell1.test robust against TCL deciding to quote strings
using lots of backslashes.

FossilOrigin-Name: 817e93f42c09eb876421e27eb8eceb7b077cb45d

9 years agoPrevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_IN...
mistachkin [Thu, 24 Mar 2016 20:36:47 +0000 (20:36 +0000)] 
Prevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_INIT_SIZE negative.

FossilOrigin-Name: e0737f5236ed3e85bd03203c880ee41b34619137

9 years agoLarger margins for one memsubsys1 range check when running with a
drh [Thu, 24 Mar 2016 15:32:19 +0000 (15:32 +0000)] 
Larger margins for one memsubsys1 range check when running with a
non-zero reserved-bytes value.

FossilOrigin-Name: 6db1d1fbc6c1acc896fa635dfdc5564800502c40

9 years agoFix some test scripts so that they work with various permutations.
dan [Thu, 24 Mar 2016 15:09:14 +0000 (15:09 +0000)] 
Fix some test scripts so that they work with various permutations.

FossilOrigin-Name: f4d234b5013bf93b6eac7f8be6d4c074cf9f5293

9 years agoAvoid calling realloc() with a zero size in fuzzcheck.c.
drh [Wed, 23 Mar 2016 17:54:19 +0000 (17:54 +0000)] 
Avoid calling realloc() with a zero size in fuzzcheck.c.

FossilOrigin-Name: a1fd14694c1adc54e5c443ebfdef38e38637f5c5

9 years agoFix "ifcapable" tests in capi3.test and capi3c.test so that the tests work with more...
dan [Wed, 23 Mar 2016 16:32:29 +0000 (16:32 +0000)] 
Fix "ifcapable" tests in capi3.test and capi3c.test so that the tests work with more build configurations.

FossilOrigin-Name: 3fa88f68c3e1bbb3421cb0d2b82b9bb3fe7b9b14

9 years agoRemove an unused local variable from FTS5.
drh [Wed, 23 Mar 2016 15:53:45 +0000 (15:53 +0000)] 
Remove an unused local variable from FTS5.

FossilOrigin-Name: 0ed693c29f184223cde3b3d51f0e06273e586803

9 years agoExplicitly limit the size of fts5 tokens to 32768 bytes.
dan [Wed, 23 Mar 2016 15:04:00 +0000 (15:04 +0000)] 
Explicitly limit the size of fts5 tokens to 32768 bytes.

FossilOrigin-Name: 70fc69eed9b09159899d7cbd1416a59d04210a63

9 years agoUpdate a requirement mark. No changes to code.
drh [Wed, 23 Mar 2016 13:46:05 +0000 (13:46 +0000)] 
Update a requirement mark.  No changes to code.

FossilOrigin-Name: 412984642af40578ec611d8c0b7c0508cb5cf9c9

9 years agoThe sqlite3_column_decltype() routine should return NULL, not an empty string,
drh [Tue, 22 Mar 2016 20:05:09 +0000 (20:05 +0000)] 
The sqlite3_column_decltype() routine should return NULL, not an empty string,
if the column has no declared type.

FossilOrigin-Name: 605eba4a756e7185119088e2242f82691d078b01

9 years agoFix harmless compiler warning for MSVC.
mistachkin [Tue, 22 Mar 2016 15:26:03 +0000 (15:26 +0000)] 
Fix harmless compiler warning for MSVC.

FossilOrigin-Name: 142cd359d37f1d8d53de32e329523d9a93c7d6e5

9 years agoFix a harmless compiler warning.
drh [Tue, 22 Mar 2016 15:25:16 +0000 (15:25 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: 5ace870d3ac3e9eb29cb4602c9036873adbcb99d

9 years agoFix some errors in fts5 test scripts.
dan [Tue, 22 Mar 2016 15:01:54 +0000 (15:01 +0000)] 
Fix some errors in fts5 test scripts.

FossilOrigin-Name: e1ab2d376a72786098125a41c1ea8140fcbd15c6

9 years agoCreate the "uptr" typedef (the same as uintptr_t when available) and use it
drh [Tue, 22 Mar 2016 14:37:59 +0000 (14:37 +0000)] 
Create the "uptr" typedef (the same as uintptr_t when available) and use it
to cast pointers before comparison.

FossilOrigin-Name: 2484cc0c3ffc8834a155f89af1581bd07d453a90

9 years agoAvoid the possibility of integer overflow on a pointer comparison test for
drh [Tue, 22 Mar 2016 14:10:45 +0000 (14:10 +0000)] 
Avoid the possibility of integer overflow on a pointer comparison test for
corruption in the database file.

FossilOrigin-Name: ff1b1ac3313ba9d70414e928ef3dd82913298a1a

9 years agoFix harmless compiler warnings.
drh [Mon, 21 Mar 2016 22:28:51 +0000 (22:28 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 25d776e4523aefeec007943fe29aa17c23ccb301

9 years agoAdd tests to ensure that fts5 is now deterministic.
dan [Mon, 21 Mar 2016 16:25:34 +0000 (16:25 +0000)] 
Add tests to ensure that fts5 is now deterministic.

FossilOrigin-Name: 3d076094ce411bffcfeb76c0284d15d0f83bd459

9 years agoSkip recently added test cases in nolock.test when running in
drh [Mon, 21 Mar 2016 16:19:29 +0000 (16:19 +0000)] 
Skip recently added test cases in nolock.test when running in
the inmemory_journal permutation.

FossilOrigin-Name: a1dcf7af42bb7394d46138318f9367fe9e8be560

9 years agoRemove an unreachable branch from the unlink verification logic in the UNIX
drh [Mon, 21 Mar 2016 16:06:42 +0000 (16:06 +0000)] 
Remove an unreachable branch from the unlink verification logic in the UNIX
VFS.

FossilOrigin-Name: 4dc30cce7fdb7dba9a9aad96bb8b499b965610b2

9 years agoHave fts5 cache the structure of its index in main memory. Use "PRAGMA data_version...
dan [Mon, 21 Mar 2016 15:30:50 +0000 (15:30 +0000)] 
Have fts5 cache the structure of its index in main memory. Use "PRAGMA data_version" to figure out when this cache should be invalidated.

FossilOrigin-Name: 902f221754f3cc6fb4ae049c135f85efce604ed3

9 years agoRearrange code so that tests pass whether SQLITE_DEBUG is defined or not. fts5-data-version
dan [Mon, 21 Mar 2016 15:18:13 +0000 (15:18 +0000)] 
Rearrange code so that tests pass whether SQLITE_DEBUG is defined or not.

FossilOrigin-Name: 89296a46c3b891ee0b637ff6f89d828d6e46e7b5

9 years agoAdd the sqlite3_system_errno() interface.
drh [Mon, 21 Mar 2016 14:46:37 +0000 (14:46 +0000)] 
Add the sqlite3_system_errno() interface.

FossilOrigin-Name: 4bd12b57ea177cfb1f44d54bfa7aedfb8a8c0c64

9 years agoMake sure system errors that occur durign sqlite3_step() are captured for sqlite_system_errno
drh [Mon, 21 Mar 2016 12:28:02 +0000 (12:28 +0000)] 
Make sure system errors that occur durign sqlite3_step() are captured for
use by sqlite3_system_errno().

FossilOrigin-Name: b4a1114f730c62e93623f889bc0e4fd8d0b31efa

9 years agoImproved comments. No logical changes to code.
drh [Mon, 21 Mar 2016 11:57:13 +0000 (11:57 +0000)] 
Improved comments.  No logical changes to code.

FossilOrigin-Name: a6b6c6c466f3feb257b4fc08ef6b9a27a68ca073

9 years agoDo a better job of capturing all system errno values regardless of when
drh [Mon, 21 Mar 2016 11:38:01 +0000 (11:38 +0000)] 
Do a better job of capturing all system errno values regardless of when
they occur.

FossilOrigin-Name: 7d49998d571d841a6d1b55f5f9889e613daaab2a

9 years agoMerge updates from trunk.
drh [Mon, 21 Mar 2016 10:49:49 +0000 (10:49 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 86ab8643969bd2e51a257d80da9316c668437f7b

9 years agoChange the way fts5 internally allocates segment ids in order to eliminated non-deter...
dan [Mon, 21 Mar 2016 09:56:19 +0000 (09:56 +0000)] 
Change the way fts5 internally allocates segment ids in order to eliminated non-determinism from the module.

FossilOrigin-Name: d6e2637df16764aa9723a30ea2eb8a631d28cb2b

9 years agoChange the Vdbe.aMem array so that it is zero-based instead of one-based.
drh [Mon, 21 Mar 2016 00:38:59 +0000 (00:38 +0000)] 
Change the Vdbe.aMem array so that it is zero-based instead of one-based.

FossilOrigin-Name: c39081e878faccc8552141afa5732a2bf2f77570

9 years agoRemove an unreachable branch. Improvements to comments. zero-base-aMem
drh [Mon, 21 Mar 2016 00:30:40 +0000 (00:30 +0000)] 
Remove an unreachable branch.  Improvements to comments.

FossilOrigin-Name: c5677ecd5cd2637d92a831ec6bd5b002f8d75626

9 years agoChange the Vdbe.aMem array so that it is zero-based instead of one-based.
drh [Sat, 19 Mar 2016 23:32:58 +0000 (23:32 +0000)] 
Change the Vdbe.aMem array so that it is zero-based instead of one-based.

FossilOrigin-Name: e07b0c47eb5a39623f5fe0e66b939bba0906691c

9 years agoFix exclusive.test so that it works with -DSQLITE_TEMP_STORE=3.
dan [Sat, 19 Mar 2016 18:11:59 +0000 (18:11 +0000)] 
Fix exclusive.test so that it works with -DSQLITE_TEMP_STORE=3.

FossilOrigin-Name: d7852c639683a1d305a1e731df3cccafa64b594b

9 years agoUpdates to the Lemon documentation.
drh [Sat, 19 Mar 2016 18:00:44 +0000 (18:00 +0000)] 
Updates to the Lemon documentation.

FossilOrigin-Name: f095341471aa822e6d556cb65512ec081c3918da

9 years agoAdd the sqlite3rbu_bp_progress() API to the RBU extension. Used to obtain the percent...
dan [Sat, 19 Mar 2016 17:48:12 +0000 (17:48 +0000)] 
Add the sqlite3rbu_bp_progress() API to the RBU extension. Used to obtain the percentage progress of an RBU update.

FossilOrigin-Name: 209e31c729b9c8a09a80e43e3e4a2f3cd9384b3a

9 years agoFix a problem detecting invalid values in the rbu_control column of an rbu database... rbu-percent-progress
dan [Sat, 19 Mar 2016 17:09:30 +0000 (17:09 +0000)] 
Fix a problem detecting invalid values in the rbu_control column of an rbu database table.

FossilOrigin-Name: a1132dd9027d1c6dd845be307eeb38e535393f2c

9 years agoUpdate the sqldiff tool so that it generates an rbu_count table.
dan [Sat, 19 Mar 2016 16:21:26 +0000 (16:21 +0000)] 
Update the sqldiff tool so that it generates an rbu_count table.

FossilOrigin-Name: 1f7afb6e9be9f549a91bf2ab492df15698df89fd

9 years agoMerge latest trunk changes, including fixes to test script rbudiff.test, into this...
dan [Sat, 19 Mar 2016 15:34:42 +0000 (15:34 +0000)] 
Merge latest trunk changes, including fixes to test script rbudiff.test, into this branch.

FossilOrigin-Name: 734fc68fb12f06e97026d4637138b82b37809f5b

9 years agoFix another problem in test script rbudiff.test.
dan [Sat, 19 Mar 2016 15:13:59 +0000 (15:13 +0000)] 
Fix another problem in test script rbudiff.test.

FossilOrigin-Name: 41c29c123ff347db720ed1a541c0b2ffc04670aa

9 years agoFix test scripts sqldiff.test and rbudiff.test so that they work with the --testdir...
dan [Sat, 19 Mar 2016 14:53:36 +0000 (14:53 +0000)] 
Fix test scripts sqldiff.test and rbudiff.test so that they work with the --testdir option.

FossilOrigin-Name: 1ffe3cde03f924bb8405a8729c8e1bc01f5b6d3b

9 years agoAdd test file fts5multiclient.test.
dan [Sat, 19 Mar 2016 14:47:28 +0000 (14:47 +0000)] 
Add test file fts5multiclient.test.

FossilOrigin-Name: 7832466f9177cca59455ba272802145297fcd53d

9 years agoFix a register allocation bug in the VDBE code generator for
drh [Sat, 19 Mar 2016 00:35:02 +0000 (00:35 +0000)] 
Fix a register allocation bug in the VDBE code generator for
PRAGMA integrity_check;

FossilOrigin-Name: 88439a866b3b16ad7c308ebe59198662a05e7eeb

9 years agoAdd further tests for sqlite3rbu_bp_progress(). Fix a problem in handling WITHOUT...
dan [Fri, 18 Mar 2016 20:12:28 +0000 (20:12 +0000)] 
Add further tests for sqlite3rbu_bp_progress(). Fix a problem in handling WITHOUT ROWID tables in the same.

FossilOrigin-Name: 65e02368e2b6cec349ea71af5a456d6783b0d15e

9 years agoChange the name of the new API on this branch to "sqlite3_bp_progress". Add tests...
dan [Fri, 18 Mar 2016 18:56:45 +0000 (18:56 +0000)] 
Change the name of the new API on this branch to "sqlite3_bp_progress". Add tests and documentation for the same.

FossilOrigin-Name: 1a1b69e87eb7d18f76f5b733e44da75136a686b6

9 years agoAdd tests for the changes on this branch. Fix a problem with calls to the new progres...
dan [Fri, 18 Mar 2016 10:29:47 +0000 (10:29 +0000)] 
Add tests for the changes on this branch. Fix a problem with calls to the new progress indicator API made after an rbu update has been resumed.

FossilOrigin-Name: bf82321724d3b0feb51e26d9b76090e03cc3964a

9 years agoFix FTS5 so that it works with SQLITE_OMIT_AUTORESET.
drh [Fri, 18 Mar 2016 00:39:40 +0000 (00:39 +0000)] 
Fix FTS5 so that it works with SQLITE_OMIT_AUTORESET.

FossilOrigin-Name: b199637d81d7e2a767131ac03c7679b101fd459c

9 years agoFix more test-case errors in the Apple configuration.
drh [Fri, 18 Mar 2016 00:19:48 +0000 (00:19 +0000)] 
Fix more test-case errors in the Apple configuration.

FossilOrigin-Name: 6631e1e655604a7d1fb45b4d151938d4a13b47f3

9 years agoFix some test cases so that they work under the Apple configuration.
drh [Thu, 17 Mar 2016 23:56:23 +0000 (23:56 +0000)] 
Fix some test cases so that they work under the Apple configuration.

FossilOrigin-Name: 399c60764d3fdec49dab1745c30930ca1dbafe70

9 years agoFix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION
drh [Thu, 17 Mar 2016 23:16:37 +0000 (23:16 +0000)] 
Fix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION

FossilOrigin-Name: 65ba2f0b465a1493de6e467f55e0300ac3fb08e1

9 years agoChanges to releasetest.tcl: Rename the "OS-X" configuration to "Apple".
drh [Thu, 17 Mar 2016 23:00:42 +0000 (23:00 +0000)] 
Changes to releasetest.tcl:  Rename the "OS-X" configuration to "Apple".
Bring the "Apple" configuration up to date.  Allow the use of "if:os=..."
arguments in a configuration.  Run the Apple configuration on Linux in addition
to on Macs, but without -DSQLITE_ENABLE_LOCKING_STYLE.

FossilOrigin-Name: beb2a80b430e0ad561a58d8f00b80cbdc74b5e03

9 years agoAdd an API to indicate the percentage progress of an rbu update.
dan [Thu, 17 Mar 2016 21:06:42 +0000 (21:06 +0000)] 
Add an API to indicate the percentage progress of an rbu update.

FossilOrigin-Name: ffc58d2c2576a5b6e1c2c7112612c5760e711afd

9 years agoChange the xGetLastError() method on the windows VFS so that it continues to
drh [Thu, 17 Mar 2016 19:28:19 +0000 (19:28 +0000)] 
Change the xGetLastError() method on the windows VFS so that it continues to
format an error message (if requested) but returns the system error code,
rather than an SQLite status code.

FossilOrigin-Name: 1602f6b53698bd3a1a4be218c2e3145dd895f1f1

9 years agoA more compact implementation of the code generator for the
drh [Thu, 17 Mar 2016 19:07:52 +0000 (19:07 +0000)] 
A more compact implementation of the code generator for the
IS and IS NOT operators.

FossilOrigin-Name: 8607e3ac7a9d44372a4a66da21bbb3d28ae2528a

9 years agoSimple test cases for sqlite3_system_errno()
drh [Thu, 17 Mar 2016 17:23:11 +0000 (17:23 +0000)] 
Simple test cases for sqlite3_system_errno()

FossilOrigin-Name: 185bc8644c806597194dc532a4d547a03a2dedaa

9 years agoExperimental implementation of the sqlite3_system_errno() interface.
drh [Thu, 17 Mar 2016 16:01:23 +0000 (16:01 +0000)] 
Experimental implementation of the sqlite3_system_errno() interface.

FossilOrigin-Name: 6782c87b3722fbd09684a5b1e5df05247956f1c6

9 years agoFix some OOM-handling issues in the fts5 changes on this branch.
dan [Thu, 17 Mar 2016 12:39:56 +0000 (12:39 +0000)] 
Fix some OOM-handling issues in the fts5 changes on this branch.

FossilOrigin-Name: 020a0bda59fe93b9361ceeed0d5a8ba4177380c8

9 years agoThe prepared statements for some pragmas can now be reused without invoking
drh [Wed, 16 Mar 2016 21:29:54 +0000 (21:29 +0000)] 
The prepared statements for some pragmas can now be reused without invoking
an automatic reprepare.

FossilOrigin-Name: 97b0e88cc7c3d677217d0bfab4cb4a34a4abb238

9 years agoMerge the changes on the reusable-pragma branch into this one.
dan [Wed, 16 Mar 2016 20:53:33 +0000 (20:53 +0000)] 
Merge the changes on the reusable-pragma branch into this one.

FossilOrigin-Name: 6c4a17b963916d19c9433d7a251338042f32e9fa

9 years agoSome pragmas can be reused without an automatic reprepare. reusable-pragma
drh [Wed, 16 Mar 2016 20:44:45 +0000 (20:44 +0000)] 
Some pragmas can be reused without an automatic reprepare.

FossilOrigin-Name: db1ce7e13e656fcd2766f1b1f225cbfefe8f73ad

9 years agoFix a comment on the freelist_count and data_version pragmas.
drh [Wed, 16 Mar 2016 20:05:57 +0000 (20:05 +0000)] 
Fix a comment on the freelist_count and data_version pragmas.

FossilOrigin-Name: 10a3e2a01db9f80452a2a3369fd25b6fd9798274

9 years agoAdd a cast to an implict (size_t -> int) conversion in fts5_expr.c.
dan [Wed, 16 Mar 2016 19:53:58 +0000 (19:53 +0000)] 
Add a cast to an implict (size_t -> int) conversion in fts5_expr.c.

FossilOrigin-Name: d9b5ff7aba3a8f6ca4505eac308fa9d510254c3e

9 years agoHave fts5 cache the decoded structure of fts5 indexes in memory. Use "PRAGMA data_ver...
dan [Wed, 16 Mar 2016 19:48:10 +0000 (19:48 +0000)] 
Have fts5 cache the decoded structure of fts5 indexes in memory. Use "PRAGMA data_version" to detect stale caches.

FossilOrigin-Name: 33ef2210ef19e55c8d460bfe9d3dc146034c8acc

9 years agoEnhance Lemon so that it reorders the reduce rules such that rules without
drh [Wed, 16 Mar 2016 19:45:54 +0000 (19:45 +0000)] 
Enhance Lemon so that it reorders the reduce rules such that rules without
actions occur at the end and so that the first rule is number 0.  This
reduces the size of the jump table on the reduce switch, and helps the parser
to run faster.

FossilOrigin-Name: d5712f21ec758ff096a7b1bb8ed4fc5ec400ca5d

9 years agoAvoid a few unnecessary fstat()s on journal files.
drh [Wed, 16 Mar 2016 19:10:46 +0000 (19:10 +0000)] 
Avoid a few unnecessary fstat()s on journal files.

FossilOrigin-Name: dbf84705913c0845ca4e75eb30c91536c754efeb

9 years agoFix the query planner so that it is able to use the integer primary key
drh [Wed, 16 Mar 2016 18:26:54 +0000 (18:26 +0000)] 
Fix the query planner so that it is able to use the integer primary key
from an index as part of a multi-column constraint.

FossilOrigin-Name: 96ea9909429f0b3b4a67002e8340ae3f7dc0b73f

9 years agoAdd the SQLITE_OMIT_CODEC_FROM_TCL compile-time option.
drh [Wed, 16 Mar 2016 01:03:10 +0000 (01:03 +0000)] 
Add the SQLITE_OMIT_CODEC_FROM_TCL compile-time option.

FossilOrigin-Name: 45f7f0c80bd91a0c7ff859c27fd9e82e551bd83e

9 years agoRearrange some internal fields in the sqlite3_stmt object to avoid a harmless
drh [Wed, 16 Mar 2016 00:36:19 +0000 (00:36 +0000)] 
Rearrange some internal fields in the sqlite3_stmt object to avoid a harmless
TSAN warning.

FossilOrigin-Name: e0b116edd64a55c971c368685aa343cb6beed0f1

9 years agoChange the OP_IntegrityCk opcode to accept the list of root pages as an
drh [Tue, 15 Mar 2016 22:00:39 +0000 (22:00 +0000)] 
Change the OP_IntegrityCk opcode to accept the list of root pages as an
intarray argument in P4.  Slightly smaller and faster.

FossilOrigin-Name: 15e4a272df46cbad8e71b21551dc06a126d64d46

9 years agoIn the Win32 VFS, use SQLITE_FCNTL_LAST_ERRNO instead of (the older) SQLITE_LAST_ERRNO.
mistachkin [Tue, 15 Mar 2016 19:10:39 +0000 (19:10 +0000)] 
In the Win32 VFS, use SQLITE_FCNTL_LAST_ERRNO instead of (the older) SQLITE_LAST_ERRNO.

FossilOrigin-Name: 9463762c437488970a87093ef13131c39b2adadc

9 years agoImplement FROM-clause subqueries as co-routines whenever they are guaranteed
drh [Tue, 15 Mar 2016 17:52:12 +0000 (17:52 +0000)] 
Implement FROM-clause subqueries as co-routines whenever they are guaranteed
to be the outer-most loop of the join.

FossilOrigin-Name: c7bae50bdccb5bcf3bc22e8ac5bb6725ef13db39

9 years agoMore test-case changes so that everything works when the reserved_bytes
drh [Tue, 15 Mar 2016 12:37:08 +0000 (12:37 +0000)] 
More test-case changes so that everything works when the reserved_bytes
value in the header is non-zero.

FossilOrigin-Name: 2fd095b14b03a508169bba710d2e8e2addf4b8f5

9 years agoFix the shellN.test test scripts so that they work with the --testdir option.
dan [Tue, 15 Mar 2016 09:55:44 +0000 (09:55 +0000)] 
Fix the shellN.test test scripts so that they work with the --testdir option.

FossilOrigin-Name: 051c61ebae921b70f843c55aacf046a9922cc187

9 years agoFix the permutations.test script so that it works again.
drh [Mon, 14 Mar 2016 21:26:25 +0000 (21:26 +0000)] 
Fix the permutations.test script so that it works again.

FossilOrigin-Name: 9f194f90c07d5415b1d6bb10ec049f74999d6885

9 years agoUpdate test scripts so that they work with SEE.
drh [Mon, 14 Mar 2016 21:12:26 +0000 (21:12 +0000)] 
Update test scripts so that they work with SEE.

FossilOrigin-Name: f4693ba4bbd9738b45012cf507fc0d7b6d04b7ee

9 years agoChanging page size using VACUUM or backup is not allowed with a codec attached. see-testing
drh [Mon, 14 Mar 2016 20:49:24 +0000 (20:49 +0000)] 
Changing page size using VACUUM or backup is not allowed with a codec attached.

FossilOrigin-Name: 92be06c1a828d56652fa5269a3029f8cb029b2cd

9 years agoMerge test script fixes from trunk.
drh [Mon, 14 Mar 2016 18:42:04 +0000 (18:42 +0000)] 
Merge test script fixes from trunk.

FossilOrigin-Name: ea1d2cddd59192251ee5fd912b190cded4959879

9 years agoMany more test cases fixed. Only a few remain.
drh [Mon, 14 Mar 2016 18:34:42 +0000 (18:34 +0000)] 
Many more test cases fixed.  Only a few remain.

FossilOrigin-Name: 99b9d7eef68fd6d5c9eecb5fbe3dfe002c1ca4a8

9 years agoMany test cases fixed to work with encryption.
drh [Mon, 14 Mar 2016 17:05:04 +0000 (17:05 +0000)] 
Many test cases fixed to work with encryption.

FossilOrigin-Name: d866fffb8b1af5003a8730ce7029d1edddb24d46

9 years agoTest script changes to support testing the SQLite Encryption Extension.
drh [Mon, 14 Mar 2016 16:16:43 +0000 (16:16 +0000)] 
Test script changes to support testing the SQLite Encryption Extension.

FossilOrigin-Name: 1c70aa5c014fc48ab06215992a61c6f92490abe4

9 years agoFix the backcompat.test script so that it works with the --testdir test option.
dan [Mon, 14 Mar 2016 15:43:03 +0000 (15:43 +0000)] 
Fix the backcompat.test script so that it works with the --testdir test option.

FossilOrigin-Name: f7480e33eb82f2eae219d17ce46cd2d4edac07d2

9 years agoRun TCL tests in the "testdir" subdirectory.
drh [Mon, 14 Mar 2016 15:03:54 +0000 (15:03 +0000)] 
Run TCL tests in the "testdir" subdirectory.

FossilOrigin-Name: 90e0cc7b0be31ee2f155c2c053b0cbac584f6154

9 years agoMore file pathname normalization. test-in-subdir
drh [Mon, 14 Mar 2016 14:59:35 +0000 (14:59 +0000)] 
More file pathname normalization.

FossilOrigin-Name: fa8c12921f8361f1889724bb7c5f7eca9c48b075

9 years agoNormalize the $testdir and $argv0 paths so that they continue to work
drh [Mon, 14 Mar 2016 14:28:43 +0000 (14:28 +0000)] 
Normalize the $testdir and $argv0 paths so that they continue to work
in the testing subdirectory.

FossilOrigin-Name: 19225b8130f1640772fc54250583b571a89063b6

9 years agoRun TCL tests in a subdirectory "testdir".
drh [Mon, 14 Mar 2016 13:42:29 +0000 (13:42 +0000)] 
Run TCL tests in a subdirectory "testdir".

FossilOrigin-Name: f632bba0d6ad3edc60f4127380ce8320378dac42

9 years agoFix a memory leak in fts5 that could occur following a syntax error in a query expres...
dan [Mon, 14 Mar 2016 12:16:23 +0000 (12:16 +0000)] 
Fix a memory leak in fts5 that could occur following a syntax error in a query expression.

FossilOrigin-Name: 54b8968e335760105206b894672213c1d56771a4

9 years agoFix a problem handling 'NEAR("" token)' in fts5 found by fuzzing.
dan [Sat, 12 Mar 2016 19:33:47 +0000 (19:33 +0000)] 
Fix a problem handling 'NEAR("" token)' in fts5 found by fuzzing.

FossilOrigin-Name: 10a827ae5f3f322af836c15e581fdc958a433a5a

9 years agoFix handling of strings that contain zero tokens in fts5. And other problems found...
dan [Sat, 12 Mar 2016 16:32:16 +0000 (16:32 +0000)] 
Fix handling of strings that contain zero tokens in fts5. And other problems found by fuzzing.

FossilOrigin-Name: 72b3ff0f0df83e62adda6584b4281cf086d45e45

9 years agoDo not allow the use of WAL mode with nolock=1 because it does not work.
drh [Fri, 11 Mar 2016 23:07:30 +0000 (23:07 +0000)] 
Do not allow the use of WAL mode with nolock=1 because it does not work.

FossilOrigin-Name: 74f5d3b07f6e5e977858c73957c6f9337ae3ca3e

9 years agoTweak the amalgamation autoconf files so that the --disable-static-shell option works...
dan [Fri, 11 Mar 2016 15:25:13 +0000 (15:25 +0000)] 
Tweak the amalgamation autoconf files so that the --disable-static-shell option works again.

FossilOrigin-Name: 83efcdebfa255cd0663ecc6b74eb99183e2f3a10

9 years agoUpdate spellfix1_scriptcode() to output 215 (latin) for pure numeric text.
drh [Fri, 11 Mar 2016 14:30:18 +0000 (14:30 +0000)] 
Update spellfix1_scriptcode() to output 215 (latin) for pure numeric text.

FossilOrigin-Name: df44308b862e932ff0ad25b6328d13be22047b96

9 years agoCheck for PDB files prior to attempting to copy them in the MSVC batch build tool.
mistachkin [Thu, 10 Mar 2016 19:08:44 +0000 (19:08 +0000)] 
Check for PDB files prior to attempting to copy them in the MSVC batch build tool.

FossilOrigin-Name: d7c20f04e69fb1848b2e2f3b04fbd56e06c7c854

9 years agoAdd tests to cover untested branches in recent fts5 changes.
dan [Thu, 10 Mar 2016 15:12:47 +0000 (15:12 +0000)] 
Add tests to cover untested branches in recent fts5 changes.

FossilOrigin-Name: fa0033edf6ddf3c6631fa95b343225dbc8ac9429

9 years agoUse #ifdefs to remove code that is unreachable in some configurations, replacing
drh [Thu, 10 Mar 2016 14:28:24 +0000 (14:28 +0000)] 
Use #ifdefs to remove code that is unreachable in some configurations, replacing
it with an assert().

FossilOrigin-Name: f96ec84d605fd73c323344a753acf35b76307af9