dan
26caf5bef1
Fix a problem with (DELETE...LIMIT) statements against WITHOUT ROWID tables
...
with a single column PK.
FossilOrigin-Name: 35477a3dcceadf5dade8e036d5a2ce91b9ca83c4b85d309db233bdbcf538b1cc
2017-11-10 15:42:21 +00:00
mistachkin
aca84e6a8b
Fix harmless compiler warning seen with MSVC.
...
FossilOrigin-Name: 3711ef2366af8fefccaaa0a6ee520ce6bc9c74a4fe0666f0a85ef96be46e02d3
2017-11-10 12:41:21 +00:00
mistachkin
0e026f403b
Avoid superfluous SHM unlock call in the Win32 VFS.
...
FossilOrigin-Name: 5a384be6979b783d1f3af2ac6307e7e731c415d052f9405f04c0216f59414633
2017-11-09 23:24:29 +00:00
mistachkin
10813713ba
Cleanup superfluous whitespace changes.
...
FossilOrigin-Name: a2908e2c88f7a30638a7e791fc7ad0325b663097c12cecd1f4726b0d60a9a3ed
2017-11-09 22:25:58 +00:00
mistachkin
7b7f224c62
Revise and vastly simplify the Win32 SHM file locking semantics, allowing all new tests to pass.
...
FossilOrigin-Name: d0997b0f5bc9a9869684e39a17a01c430d6383c8b31d6c00ea17a5eac15bc6f0
2017-11-09 22:23:50 +00:00
mistachkin
95a05aae67
Add an assert() in the Win32 VFS.
...
FossilOrigin-Name: 22e58330461736ca22d6f4d7eab897a3597de2e7434a6f4a474f0f0d7f964281
2017-11-09 20:37:37 +00:00
dan
e941877806
Enhance walro2.test to better ensure that readonly_shm clients are not using
...
invalid *-shm files.
FossilOrigin-Name: ff630b66714b20c09888ead0a45f344d63e0d9a5208867d6266e74f79187076c
2017-11-09 20:34:35 +00:00
mistachkin
bcb416a9ff
Get read-only SHM file tests passing on Win32.
...
FossilOrigin-Name: abef05353554e72f4d08aff562b87ff8530e8537a79e58d831205ea8c46eed07
2017-11-09 20:02:44 +00:00
dan
b3c16b899b
Add SQLITE_ENABLE_UPDATE_DELETE_LIMIT for views and WITHOUT ROWID tables.
...
FossilOrigin-Name: 584b88aaf89ab30cb51185396b7b50c6ecba286add023a26ab41d865b9c605ce
2017-11-09 19:53:06 +00:00
mistachkin
9f4aad446b
Further corrections to read-only SHM file handling on Win32.
...
FossilOrigin-Name: 43c311701bdf1202918cd46fa6133a11458e0ef8ddb09e46290a231083f395ce
2017-11-09 18:53:51 +00:00
mistachkin
a515065649
Corrections to Win32 lock detection for SHM files.
...
FossilOrigin-Name: 3a91be975daee65c3e1199855613066015d5df8ad44ababdef31d1c698b5e746
2017-11-09 18:21:51 +00:00
mistachkin
8a6fa5d41c
Corrections to the Win32 porting changes on this branch.
...
FossilOrigin-Name: 0b26a5a26d700e20eea5ebbd620af0af6f2d61c652cfca5b8563267588cb2be6
2017-11-09 17:29:18 +00:00
mistachkin
4a9ff91852
Make it possible to use OSTRACE for multi-process testing.
...
FossilOrigin-Name: 0a7d416c4c43632725dc89cda8667cd9726b5152ee4692e4d0c9e2031e60cfb4
2017-11-09 17:29:04 +00:00
mistachkin
4ff8431fd1
Initial work on porting the changes on this branch to Win32.
...
FossilOrigin-Name: 3738bfd0c0eadb10eea58954af5052cb6ce164059f3aacfe65d7da6a400c63c7
2017-11-09 16:30:55 +00:00
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