drh
2fba394c97
Disallow ORDER BY and LIMIT on UPDATE and DELETE of views and WITHOUT ROWID
...
tables. This is a temporary fix for ticket [d4beea1633f1b88f] until a better
solution can be found.
FossilOrigin-Name: 62fe56b59270d9d7372b1bb8a53788a40d20d0f111fe38c61dd6269848592c70
2017-11-09 03:55:09 +00:00
drh
9214c1efe8
Extra comments on the sqlite3OsShmMap() call in walBeginUnlocked(). No
...
changes to code.
FossilOrigin-Name: 033ee92bf4d5dc57f5cb8fd02d1154ae06f2d3261d214e7191a82c70c8ffebf7
2017-11-08 19:26:27 +00:00
drh
7316960cec
Turns out that SQLITE_READONLY_CANTLOCK is an historical name that must
...
be preserved. So make a new SQLITE_READLOCK_CANTINIT name instead.
FossilOrigin-Name: 04974a8b5c0e6748216226006ca9125529c8bb2a7a9df4641217eb1413426a14
2017-11-08 17:51:10 +00:00
drh
7e45e3a5d7
Change the name of SQLITE_READONLY_CANTLOCK to SQLITE_READONLY_CANTINIT.
...
FossilOrigin-Name: 6d7f94faa7e6de62f82bc6cac019508a9c1ffd6fa1d14f52fa93e9c06afdd32f
2017-11-08 17:32:12 +00:00
dan
3e846cb81f
Fix a problem causing LSM to add unnecessary padding to empty segments in
...
compressed databases.
FossilOrigin-Name: 1bc2d04645c5239ba9a30a13f6fb3c8cc46461c864e7927012bc0ad305eb705e
2017-11-08 11:14:53 +00:00
drh
592eca1fda
Improved comments used for documentation of sqlite3_vfs. No changes
...
to code.
FossilOrigin-Name: db8f22d069b1725f16b208c96c0c47b6ab0e30236feeac43cca4217ef80316b8
2017-11-08 02:50:09 +00:00
dan
6c9d8f640b
Update an assert in wal.c.
...
FossilOrigin-Name: 94527b897bac66d100ca92161f18b6f0e0768dd77ebcb06e3fb106f0e0e380ee
2017-11-07 21:25:15 +00:00
dan
08ecefc5b1
Handle the race condition that may occur if another process connects and then
...
checkpoints and truncates the wal file while a readonly-shm client is building
its heap-memory wal-index.
FossilOrigin-Name: 5a6703fc3f2174b3e9a624c7272ae013b73c42d6c97ffa62b58553efdb54e3bc
2017-11-07 21:15:07 +00:00
dan
0e90ad6a37
Fix handling of partial indexes in checkindex.c (sqlite3_checker).
...
FossilOrigin-Name: 31932a9eb8dbb33d5535715ae8bbfdc55ce66b1a1a0abd57cefe720eeb31e231
2017-11-07 19:02:00 +00:00
dan
85e1f46eb9
Fix a problem causing an INDEXED BY specifying an unusable partial index to be
...
mishandled.
FossilOrigin-Name: 292a04086a902634fc514b379a2b245eb2681c1b84d9bb950b6ecb9aab28b468
2017-11-07 18:20:15 +00:00
drh
0714a0dee1
Add the --trace option to the sqlite3_checker utility program.
...
FossilOrigin-Name: dc217b7cfe680044d8742e317701abd0269162da8f5cb097361ae7f47fd9ba2d
2017-11-07 16:54:20 +00:00
drh
7031b12c57
Enhance the checkindex.c virtual table so that it will output the
...
index_name and after_key parameters. Also add a new diagnostic output
column named scanner_sql which shows the SQL statement used to implement
the current index scan.
FossilOrigin-Name: 32e2520ce91351acceda845d81c9567f7a634257dc2b5b90fe6fb6583d8c0f87
2017-11-07 16:23:24 +00:00
dan
f12ba66cf8
On unix, if the *-shm file cannot be opened for read/write access, open it
...
read-only and proceed as if the readonly_shm=1 URI option were specified.
FossilOrigin-Name: ba718754fa5ab8596cb84b751051de98afa2706fe6c5df39ad6d925d790719ee
2017-11-07 15:43:52 +00:00
dan
d24c5b1c98
Add fault-injection tests for the code on this branch.
...
FossilOrigin-Name: a7d949fb735f60c19e7257a1a7a12568a9c15be9cd980c018f3a0d6bf112c339
2017-11-07 09:08:43 +00:00
dan
ab54838452
Add further test cases for the new code on this branch. And a couple of fixes.
...
FossilOrigin-Name: 71af9acb227a91d9ad8798c9d0b12d6967e863d050f5cb1fddb45f25ee1f47db
2017-11-06 19:49:34 +00:00
drh
12f84e5ee5
Fix a harmless compiler warning from Xcode 9.1.
...
FossilOrigin-Name: 66d98310b91c69fd01c6a9a958ef1eabda14ec6cd0e4b6612f877f2dfe486c54
2017-11-06 09:34:45 +00:00
dan
cbd3321978
Add further tests for the code added on this branch.
...
FossilOrigin-Name: a6716fcde38b28b8a03b40f9d16f78a57ec20f60cf391ff553692641cb7f0d3f
2017-11-04 21:06:35 +00:00
dan
11caf4f4b7
In cases where a readonly_shm client cannot take the DMS lock on the *-shm
...
file, have it parse the wal file and create a wal-index to access it in heap
memory.
FossilOrigin-Name: 18b268433d739486eac1b04947bd418655e4bc56e8dc63ffa558aa4552a32e30
2017-11-04 18:10:03 +00:00
dan
a3bc84255a
Fix an LSM problem with read-only connections and compression (not
...
compression-factory) callbacks.
FossilOrigin-Name: 51ee5188b03c4b9508e94afaee4bf1f224aef28875efabda8ce09a5ab641d99e
2017-11-04 08:53:37 +00:00
drh
537e70289f
The extensions functions in spellfix are all deterministic.
...
FossilOrigin-Name: 29ec855e13e0dcd675dcf12948b42f9e669d0a31c5d9efb95857888aba0beeee
2017-11-03 08:46:48 +00:00
mistachkin
53be36b026
Fix harmless compiler warnings.
...
FossilOrigin-Name: d088c5a3f1a803118cb67560fc35c11178e1b7e54c0e1511677559906b9da980
2017-11-03 06:45:37 +00:00
dan
44c8a97e01
Fix test cases in wal2.test broken by the locking change in the previous
...
commit.
FossilOrigin-Name: f569c3517234881f9425075aab65a32ffd0deb8e793f421a241d8cca881da33f
2017-11-02 18:57:46 +00:00
dan
dea5ce36f5
Avoid locking shm-lock WAL_READ_LOCK(0) during recovery. Doing this allows
...
recovery to proceed while a readonly_shm connection in unlocked mode has an
ongoing read transaction.
FossilOrigin-Name: 5190d84a296b7cf716ef43bf7b6d4d351ef1a4d650de37dc01a5ab333da7c05d
2017-11-02 11:12:03 +00:00
dan
92c02da33e
If a readonly_shm connection cannot map the *-shm file because no other
...
process is holding the DMS lock, have it read from the database file only,
ignoring any content in the wal file.
FossilOrigin-Name: ce5d13c2de69b73378637d4f7e109714f7cd17bf1d1ad995e0be442d517ed1b3
2017-11-01 20:59:28 +00:00
drh
a48a290bcc
Fix harmless compiler warnings in sqlite3_checker.exe
...
FossilOrigin-Name: 491f867b377b3b9e00bd713fb07df00207673f9eca0e7d5b7af7974082c8e3f0
2017-11-01 19:58:25 +00:00
drh
7dcde38f59
Make sure the JSON1 extension is available to sqlite3_checker.exe
...
FossilOrigin-Name: a946a8ed46ba76b9a09bcbac58000d3d92db1f08a98f6cc12365be696d8921de
2017-11-01 19:50:11 +00:00
drh
b1eb131247
Add the checkindex.c extension and the sqlite3_checker utility program used
...
for doing live validation of large databases.
FossilOrigin-Name: 0c5d18a01ec77f784d5434c5465ab8da9a0c365a58d4bd8551872ca90aaf42d6
2017-11-01 19:44:19 +00:00
drh
9b37b366c2
Adjust page numbers in the ext/repair/test/checkfreelist01.test module due to
...
the fact that the pending-byte page is no longer shifted down to a low-numbered
page but is in its rightful place.
FossilOrigin-Name: c1641affae31a4350727ce940c92499263880e672dc2c3f47e78e1c23ae99b78
2017-11-01 19:22:08 +00:00
drh
3680e89b1e
Add the "sqlite3_imposter DB SCHEMA ROOT SQL" command to sqlite3_checker.
...
Use it to fix the checkindex01.test module. There are still errors reported
by the checkfreelist01.test module.
FossilOrigin-Name: 0593a2ba74c886afe8a65cea1310025bb9777c320d093278044719210c9f6ba2
2017-11-01 18:31:34 +00:00
drh
37ab9523fa
Move the test scripts for checkfreelist and checkindex over into the
...
ext/repair/test directory. Run them now using the sqlite3_checker utility
with the --test option. Some tests are currently failing due to an
incomplete port. This is an incremental check-in.
FossilOrigin-Name: 17f8d5e111a9fe5b074f946e23936ae5a2a7a8d8018bad4212660d8eb81c04b7
2017-11-01 18:05:32 +00:00
drh
02c21b7e34
Minor cleanup in checkindex.c. Add progress displays when checking a
...
single index in the top-level TCL script for sqlite3_checker.
FossilOrigin-Name: 3ca31cc3ffe1cce4a9961d29801eebd47f0093d1b53d0ea63386338a1d434fd3
2017-11-01 13:09:02 +00:00
dan
514c4b7e5d
Merge latest trunk changes into this branch.
...
FossilOrigin-Name: 985bfc992950625a45a7521bf4c8438cd0170de974dff976968be158ac5922a9
2017-11-01 07:06:41 +00:00
dan
176b2a916b
Fix a race condition in os_unix.c that might allow a client to use a *-shm
...
file corrupted by a power failure if another client fails between locking the
*-shm file and truncating it to zero bytes.
FossilOrigin-Name: d655bfabd110999b6808073c334869c5b6a8334df56811df883e47e56d3f1cbb
2017-11-01 06:59:19 +00:00
drh
24fa4d57a7
When sqlite3_checker finds a problem, show the row key as part of the error
...
message, not the row index number.
FossilOrigin-Name: 6ffe917d10e298cd80cd3a8c8c5116a2819145a176fb8cfccd5dbd88b10f39df
2017-11-01 01:05:41 +00:00
drh
1fae37319e
Actually perform index checks when running sqlite3_checker
...
FossilOrigin-Name: 54530020260ea9e4cfd021f5ffccb74d78c469b717dce377d3df6eaf84b63719
2017-11-01 01:01:20 +00:00
drh
4e8ad3bc14
Begin putting functionality into the sqlite3_checker binary.
...
FossilOrigin-Name: e82e883b93128e4d1105a82abe8d1860c0a15505b6ca421e187b9bbbc2fdc659
2017-11-01 00:10:34 +00:00
drh
1884d00dd0
Merge all recent enhancements from trunk.
...
FossilOrigin-Name: 24adf90ffb3ce9ff3c26efef0357f3a47312e8d11dc391ef2cc7e6873ef25895
2017-10-31 18:15:36 +00:00
drh
927dd51fce
Add the checkfreelist extension to the sqlite3_checker binary.
...
FossilOrigin-Name: 0c22f0d6d19e595c0577b0bad416522e71647f54d2eb5cda587e2ccc5f63dd6a
2017-10-31 18:09:40 +00:00
drh
2091f0fb3e
Fix an error in the Makefile.msc for the sqlite3_checker.exe target.
...
FossilOrigin-Name: 49d0c6f1f62dccc3c4609760950f7b28bf94a9520996a80d10ff45096b0dd9a0
2017-10-31 15:55:48 +00:00
drh
2737fa0376
Add build infrastructure for the sqlite3_checker command-line utility.
...
FossilOrigin-Name: 429e3c3c85d6b677038be93567f93e69eb756442bb421bb02ee5d5d69290fa09
2017-10-31 15:49:19 +00:00
drh
d59fde3da5
Update the built procedures for the sqlite3_analyzer utility to allow it
...
to be linked with an external sqlite3.o library. Automatically detect a
missing dbstat extension and report the compile-time error.
FossilOrigin-Name: bb39744f4b2b25c10d293e85db7579e2a99c639fdab45e93d1de75952b68b2de
2017-10-31 14:56:44 +00:00
drh
6f09910779
Fix redundancies in the makefiles that resulted from moving shell.c over
...
to shell.c.in.
FossilOrigin-Name: bf09fa683ea42b7552bd2f29ab5371bd175f0055cf9a453e6f8c6f4408cd168f
2017-10-31 12:20:43 +00:00
drh
183f0aa6c4
Fix a minor comment typo. No changes to code.
...
FossilOrigin-Name: 5f79e6d9c3d44b0cc7cf805429006f7b29a69e8d863b58472172a56b29a7bb4e
2017-10-31 12:06:29 +00:00
dan
7eded5925b
Fix a couple of issues in incremental_index_check to do with CREATE INDEX
...
statements that contain embedded SQL comments.
FossilOrigin-Name: 2aef41815a9f1786ebdf09d8f6cfa59a8e7d733253eafeae24fa6e2a093bb1d8
2017-10-31 12:01:01 +00:00
drh
9d9c41e25e
Remove unnecessary NEVER() and ALWAYS() conditionals.
...
FossilOrigin-Name: 1c80c75d4be2f3d44fb18bb4c07eccac2aba79b688215a741317dfc47dc7c2ce
2017-10-31 03:40:15 +00:00
drh
666fb6914d
Add the showshm utility program for printing out the shm header in a
...
human-readable format.
FossilOrigin-Name: f6304fd142c998aba44f02c6018223af2630671b4791d750b70a59ab1adb8d6d
2017-10-30 23:25:06 +00:00
drh
07dae088b9
Clarify some comments describing the WAL index file. No changes to code.
...
FossilOrigin-Name: 3be3aad9ecbe33060cfa9c6059b9206ed221d1fd72a69c355a9387f9f4e075e7
2017-10-30 20:44:36 +00:00
dan
e7a579d27d
Add support for indexes on expressions to incremental_index_check.
...
FossilOrigin-Name: 8c1c701fdbe0d56ee7f6f7d7b583aafde9fa14acc93ee8ecaddc8bb311e2bf52
2017-10-30 19:38:41 +00:00
drh
eba21f9eb2
Improve the performance of the LIKE operator by using strcspn() to aid
...
wildcard matching.
FossilOrigin-Name: 37284d4e8f501a37c582aa899419a3dfe0932e2a8e2ef2fdf59addd1d3cdacb4
2017-10-30 18:49:11 +00:00
dan
75650d4f94
In checkindex.c, use C code instead of SQL/group_concat() to compose various
...
SQL clauses. This is to make it easier to support indexes on expressions.
FossilOrigin-Name: 940606b3af059eb3f79d71fec871ea88df8bce0349f5b33b79c147a85610e269
2017-10-30 17:05:18 +00:00
dan
6fc6617909
Fix an issue in incremental_index_check with indexes that use non-default
...
collation sequences.
FossilOrigin-Name: 3ebb2351e2650d263029d2c0042683cba3529c9d3f76b5f994f2e737b84d3f67
2017-10-30 08:04:38 +00:00
drh
b68db3187b
Increase the version number for the next release - which is still months
...
away but there have been significant query planner enhancements since the
previous release.
FossilOrigin-Name: 457eedfac0ff652912c4cfb89682acb3d2e372ef00745139adf8492a0b61fa09
2017-10-28 20:54:51 +00:00
drh
fca23557fe
Reactivate query flattening when the result set of the outer query has
...
no function calls or subqueries. This is a partial reversal of
check-in [c9104b59]. Co-routines are still preferred if the outer
query has a complex result set, but for simple results sets, query flattening
is used. Check-in [4464f40ccd7] is completely backed
out due to this change.
FossilOrigin-Name: d17ef7d153058f7332b3fec421ade42c67e26b06f36fc1629e6799537a5afc5f
2017-10-28 20:51:54 +00:00
dan
19465e7380
Fix "after" parameter handling in the incremental_index_check code.
...
FossilOrigin-Name: c40c3c62e996044f31ca49ffc2edb2cc0320e69956f7ee6fe3e9012200e0d9a0
2017-10-28 20:31:25 +00:00
drh
6d6e76f75f
Add test cases from OSSFuzz to prevent a regression in co-routine
...
processing.
FossilOrigin-Name: 689743d8e3fa81e65dcb067bbf61bab09210b3b39586c865c00d9f1d6692daf2
2017-10-28 12:20:09 +00:00
dan
bde13e2694
Add the start of the "incremental_index_check" virtual table in
...
ext/repair/checkindex.c. For incremental verification of index contents.
FossilOrigin-Name: d5b9dada471358a2864727759648b763bf6890fc2521fac53c0d8216017d39b7
2017-10-27 20:53:16 +00:00
drh
0503f2acfa
Fix a Pager ref-count leak in the sqlite_dbpage virtual table.
...
FossilOrigin-Name: c063bb04da77d6847e4e254b6bb939c860e781382e34ddff8e0454d9db7552e2
2017-10-27 18:24:11 +00:00
mistachkin
b4bab90b31
Handle the Ctrl-C event for the shell on Win32.
...
FossilOrigin-Name: c8aaf37117ed4a23bbd15dc481788735efcb77bff98be423eca3521c0a9270de
2017-10-27 17:09:44 +00:00
drh
6e61c5f895
Additional test case demonstrating the ability to access structure elements
...
using quoted names in the JSON1 extension.
FossilOrigin-Name: 8d3cc928a8f0c7b2616c5c75af9d3a50bd4f0fe8e4ccab545ab8648cbfbb4b7f
2017-10-27 12:27:25 +00:00
drh
47d9f83982
Enhance the min/max optimization so that it works with indexes on
...
expressions.
FossilOrigin-Name: 6caec9082b3ad6d3f89f6291084a8f5c80f296630e2e94bc764389ac1a47a833
2017-10-26 20:04:28 +00:00
drh
7ea11066b6
Extra ".selecttrace" output following aggregate analysis. No changes to
...
production builds.
FossilOrigin-Name: 6fbf74ab3189b9cb20cf7cc8db0226eb935a8eab477cc83b8390492fcf2f1f76
2017-10-26 18:43:19 +00:00
dan
ab04eff809
Fix an error in the previous commit on this branch.
...
FossilOrigin-Name: f71dfee06ce1e0eee760cfca19482bdec7729d6c7d28f10f4cfd21e1f92a04b0
2017-10-26 17:34:50 +00:00
dan
9181ae990a
Instead of extra locks, use F_GETLK to ensure that readonly_shm clients cannot
...
connect to a wal-mode database if there are no writers.
FossilOrigin-Name: 5492f457dc7cc5c416de4b4e61e84bd2f10b4e6ce54011b7a60feb47f629c923
2017-10-26 17:05:22 +00:00
dan
4544e28425
Fix a bug causing "make amalgmation-autoconf" to create an invalid package if
...
either the current or parent directory contains a file named install.sh or
install-sh.
FossilOrigin-Name: e1faa7859451ee969f0ce02d2d4e4c54d0e2e018b37b8faf690e6b87593cce7d
2017-10-26 15:21:56 +00:00
drh
b5039fb7d3
Use extra locks to prevent a readonly_shm=1 process from connecting to a
...
WAL-mode database if there are no writers.
FossilOrigin-Name: 35d979082b4ab36d6a8975f8f15a50e69f46b72a173164d2b353377b9f758bd8
2017-10-25 23:28:13 +00:00
drh
3cd8aaa748
Fix the sqlite3_dbpage virtual table so that it can read and write from
...
any attached database.
FossilOrigin-Name: d4f893e1ae53a0445939ea2920af87d21dd36270494381028b2eaebe5c188f18
2017-10-25 19:18:33 +00:00
dan
7e2b38c53b
Add tests cases and fix minor issues in the rtreecheck() function.
...
FossilOrigin-Name: d6130cd226c0ca95e02f0cbabfdc27071acdcf83e0d0cb0eaa47d992479ed9a1
2017-10-25 18:17:24 +00:00
mistachkin
2c0d084400
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent.
...
FossilOrigin-Name: 7d26498063bbc4525976ace698fafcf161d939908f4ffb36d7a4df8fb1bce1fb
2017-10-25 18:01:58 +00:00
mistachkin
8c66e5b73e
Fix compilation issue (C99-ism) seen with MSVC.
...
FossilOrigin-Name: 61870b42b033189509b244c76d28932f7a447b887ffe04a3c81461148e54cfb5
2017-10-25 18:00:58 +00:00
dan
1917e92fdb
Add SQL scalar function rtreecheck() to the rtree module. For running checks
...
to ensure the shadow tables used by an rtree virtual table are internally
consistent.
FossilOrigin-Name: dde0bb3eab1316c3247b1755594527ca70955aab4ad4907190731f7ec092b327
2017-10-25 16:38:34 +00:00
drh
b5d013edd1
Do not reference the ioctl() system call in the unix backend unless it
...
is actually needed by the Batch Atomic Write extension. This should allow
the build to work on VxWorks.
FossilOrigin-Name: adfa7ed2de3e833fff65935455e71236a59602aaf7b97ece667ab300dca9f673
2017-10-25 16:14:12 +00:00
drh
98d529b541
Add the sqlite_btreeinfo eponymous-only table for introspecting the schema
...
and estimating the sizes of various btrees.
FossilOrigin-Name: 1e30f4772db1e1086096f72d32e87c552923be8b264aa13cf822fae754eb083d
2017-10-25 01:34:24 +00:00
mistachkin
ea78f64dc1
Force the autoconf makefile for MSVC to always use the 'find.exe' included with Windows.
...
FossilOrigin-Name: b76bffd332585e8412a0a994ae6dee79a83213d8b709d7f858c5c05678ab0887
2017-10-24 21:17:12 +00:00
drh
e2f3b671ed
Merge all of the fixes from the 3.21.0 release.
...
FossilOrigin-Name: 5ab662b443df17c5ebdadc0bdac2f447c5c7e86f7a32a6943bb4ac8605879441
2017-10-24 19:05:26 +00:00
drh
39f2b329f6
Version 3.21.0
...
FossilOrigin-Name: 1a584e499906b5c87ec7d43d4abce641fdf017c42125b083109bc77c4de48827
2017-10-24 18:55:49 +00:00
dan
952523f618
Fix a problem in the incr-blob code causing a new cursor to be opened for
...
every sqlite3_blob_reopen() call.
FossilOrigin-Name: 41ef34a1f0650c50cacb203665cd9d57db53a49c979bf0d5a78937517f763a2c
2017-10-24 17:28:25 +00:00
drh
f7902a543e
On the amalgamation package, enable the sqlite_dbpage virtual table so that
...
the .dbinfo command works in the CLI.
FossilOrigin-Name: 54b90b4f27f6f213825e881929fa04a6282e5b909a12e881366f9aef6872dcb6
2017-10-23 21:24:38 +00:00
dan
685bea66ce
Merge trunk fixes to swarmvtabfault.test and the lsm extension into this
...
branch. No changes to core SQLite code.
FossilOrigin-Name: f632b87002a7ee9be569aacb5ce85bb7e9c86b7d77bb8d1bf8b55eb5be4ecc77
2017-10-23 20:20:42 +00:00
mistachkin
0295774ca0
In the 'swarmvtabfault' test module, make sure to close the database handle prior to raising an error from the 'not found' callback script.
...
FossilOrigin-Name: f317037b31b19007e30bb41c54506d9d241a6d590c2b31e2ddda10d4f6e7605b
2017-10-23 20:17:19 +00:00
mistachkin
15dd780a9e
Cleanup a test database file prior to using it.
...
FossilOrigin-Name: e1bf5e1d06dbe573671c6b5472b45f5bfa3cf82374f70a76b4c80815bf15a29b
2017-10-23 17:36:52 +00:00
drh
efeaec365f
Updates to test procedures so that they all work with encryption. No changes
...
to the core SQLite code.
FossilOrigin-Name: 0481330756e861de8e1eb7136e7dca2f333b2a82377949d2e0eba401af7d73dd
2017-10-23 16:34:07 +00:00
dan
21cd29ab15
Avoid passing a NULL value as the second argument to memcpy().
...
FossilOrigin-Name: 58e5bb491bc0e28412ca188ba8fbe94adc67b5b1e9d7c112c36011400528d577
2017-10-23 16:03:54 +00:00
dan
b5ef728db6
In lsm (not SQLite), avoid opening the *-shm file before the database file is
...
locked. Otherwise, there is a race condition whereby a connection in another
process process may unlink() it while it is still in use.
FossilOrigin-Name: c8b8b9b573665c2b4d278bb679a48ac407374b8d860f0c3f4d50a303043464ad
2017-10-23 11:48:00 +00:00
dan
104a3b18b4
Fix minor test script problems revealed by releasetest.tcl.
...
FossilOrigin-Name: c333ee7e9677bda1dad8e80cf94755350bfe20bc0754577442727b6f807ad831
2017-10-23 07:53:00 +00:00
dan
f970372698
Fix minor test script problems revealed by releasetest.tcl.
...
FossilOrigin-Name: 15e87d9bc81812fb9de86f9870389217dddb9f9c4d48e42acefce2d35ba293f1
2017-10-23 07:52:07 +00:00
dan
123e1b5be5
Fix test cases in dbpage.test so that they work with
...
SQLITE_DEFAULT_AUTOVACUUM=1 builds.
FossilOrigin-Name: 9474f061d634721ca462bbad375270b8b39dea44011df3e1aac72021e8bf70fc
2017-10-22 08:03:39 +00:00
dan
063cf17a11
Fix test cases in dbpage.test so that they work with
...
SQLITE_DEFAULT_AUTOVACUUM=1 builds.
FossilOrigin-Name: 0fcf1e61ef2b6c1fb8f4846f973d2d427598ffbc80dbc49e56e71513b194bae7
2017-10-22 08:02:56 +00:00
dan
f4af5dbae4
Avoid running tests that use sqlite_dbpage with SQLITE_OMIT_VIRTUAL_TABLE
...
builds.
FossilOrigin-Name: 6dde8d6154c5b4d36c7aad17d6eaafdb13c66a09d17d4c79f52b2417846ea0b5
2017-10-22 07:58:09 +00:00
dan
9499b4a614
Avoid running tests that use sqlite_dbpage with SQLITE_OMIT_VIRTUAL_TABLE
...
builds.
FossilOrigin-Name: 7bd20a20a0f422765a6e469d1a1b67b95c4a441931688e04a2b1b491a5238528
2017-10-22 07:57:29 +00:00
drh
aa79e434f1
Merge all the enhancements and bug fixes from trunk, since none are
...
destablizing. Call this the second beta.
FossilOrigin-Name: fb3ee1b7cac09e4950e4f48b44c277e4f391cb6c8f069644732d2389ca653da4
2017-10-21 17:17:17 +00:00
drh
6fe3733ba9
Catch and avoid a 16-bit integer overflow on the number of columns in a
...
common table expression. This fixes a problem found by OSS-Fuzz. The
test case is in TH3.
FossilOrigin-Name: 6ee8cb6ae5fd076ec226bb184b5690ba29f9df8cfaef47aaf13336873b4c1f6c
2017-10-21 14:17:31 +00:00
drh
316ab93e2c
Remove unnecessary "#if SQLITE_MAX_COLUMN". SQLITE_MAX_COLUMN is always
...
defined.
FossilOrigin-Name: 6ec82acde81a46a75ed5931fc7dd813f2523753106ad7b8f0b544b9da9824d5a
2017-10-21 13:29:26 +00:00
dan
f2f72a0f9f
Take extra care to avoid an OOB read caused by a corrupt b-tree page.
...
FossilOrigin-Name: 04925dee41a21ffca9a9f9df27d8165431668c42c2b33d08b077fdb28011170b
2017-10-19 15:17:38 +00:00
dan
c1abf2d360
Avoid using snprintf as a member variable of a struct in sqlite3ext.h. This
...
causes problems on OSX. Similar to fix [a1fd3aa8].
FossilOrigin-Name: cd0471ca9f75e7c8be74536ff4ec85b5d70f0d7994b680ed5f45b9f12a46cf46
2017-10-18 15:02:01 +00:00
dan
af124faf3e
Avoid using snprintf as a member variable of a struct in sqlite3ext.h. This
...
causes problems on OSX.
FossilOrigin-Name: b066d5a69f5391b2cef04b4e288f7d33e63a4ff54325b7e9fbd6aa42529c2f3c
2017-10-18 14:29:36 +00:00
mistachkin
f7fc4c22f4
The source code files generated for the 'sqlite3-all.c' target should not have Windows line-endings.
...
FossilOrigin-Name: 6a08c43431be18a08bdcbf33d327513f72fff72dac5d02103dab8399d8c3d668
2017-10-17 18:33:22 +00:00
drh
f30d345241
Fix the ".check" command of the command-line shell to return 1 (error)
...
rather than 2 (exit) on a test failure.
FossilOrigin-Name: e2af0cc6ef5fafc785b8b73f51995901f50822972dcfb632494e22402596186d
2017-10-17 13:44:46 +00:00
drh
989d7278b0
Improved comments, including a typo fix, on the whereLoopCheaperProperSubset()
...
function.
FossilOrigin-Name: 700a3c694438ca6cca185d0097f24799e82717ef38cb47bd83666c80f0e3cb2f
2017-10-16 11:50:12 +00:00
drh
47b1d68f25
In the query planner, do not consider index X to be a proper subset of
...
index Y if X is a covering index but Y is not.
FossilOrigin-Name: ee31c04353cd75ea4bbadee2994c30d3808b696a4f680187502d104902988a5d
2017-10-15 22:16:25 +00:00
mistachkin
82cae9ffd6
Updates to the Makefiles for MSVC. Cherrypick of [ac8786f3f9f35cb6].
...
FossilOrigin-Name: 92eb721faefcdd8396072722d3e4d7ca41b860b306e4bb0f0191dde8f30d0add
2017-10-14 19:58:37 +00:00