drh
b7f4b6ccca
Fix compiler warnings that arise if the PAGERTRACE macro is turned on.
...
This changes does not affect production builds.
FossilOrigin-Name: 831156a4bd7c4408085f7c5584cdeebd1953c539972f80c5ef29bc147008630e
2017-08-11 18:59:00 +00:00
drh
140efc90ea
Improved comments in the header of the LSM1 vtab module. No code changes.
...
FossilOrigin-Name: aa49926dbffaae4f7c486be72ad814f381cca65c549f9d2605f47540a5f4be84
2017-08-11 18:55:04 +00:00
drh
cb96d2a79c
New test cases for LSM1.
...
FossilOrigin-Name: cb0c49cbd1eede157c5bd60d1e28e02c642aefe1ff82553eac1117a4c73dd9db
2017-08-11 13:51:41 +00:00
drh
037a2bacb0
Convert the LSM1 virtual table to be WITHOUT ROWID and get UPDATE and DELETE
...
operations working on it.
FossilOrigin-Name: 2164031b509dc6eae367ffb9d915f3e1d33d26210506b2de8b2bfca38c53465f
2017-08-11 12:49:59 +00:00
drh
f41a8d3d9a
Simplification to the like optimization logic. Remove unnecessary branches.
...
FossilOrigin-Name: 9466d952e169a6a60f6e575e679a61f05887b51c693505764edaf10f62cd829f
2017-08-11 03:47:21 +00:00
drh
21f6b626f5
Allow WITHOUT ROWID virtual tables to be writable as long as they have
...
exactly one column as their PRIMARY KEY.
FossilOrigin-Name: c601d128ff1f1dd6d221ee9f55595a95b58ba07d043e1d530743ea913731560e
2017-08-10 20:43:07 +00:00
dan
7c3ca3611c
Add the "instance" type to the fts5vocab virtual table module. For direct
...
access to the contents of the fts5 term index.
FossilOrigin-Name: 34a7bd7121a478e14982d59be95ad891fab8050ad5e006638f826c57c392b93e
2017-08-10 20:36:56 +00:00
dan
5b156b2bb4
Fix a typo in csv01.test introduced by the previous commit.
...
FossilOrigin-Name: f38ff718278c8ff477d1c6379ced32167063de15f0666c8eac2e4dd30cbd975c
2017-08-10 19:12:04 +00:00
dan
09fc79bd6f
Add extra tests to this branch.
...
FossilOrigin-Name: b0e3b88a792623f7761586d8bfac058ddf939f49944ff0c4376627ff920895db
2017-08-10 19:10:23 +00:00
drh
4dd176eaab
Test case for writing to a WITHOUT ROWID virtual table. The TCLVAR virtual
...
table is modified to add a "fullname" column which is the primary key, and
to accept update operations against the primary key.
FossilOrigin-Name: 6997e00c3221f266f4d9187501d8a9e5bafb85551e88a744cdc8ffe3b75ec2a4
2017-08-10 17:53:11 +00:00
drh
e3740f272b
Experimental changes that allow a WITHOUT ROWID virtual table to be writable
...
as long as it has only a single-column PRIMARY KEY.
FossilOrigin-Name: ab9ee4c1e64c09c7130e385a23d043d78bad95dff5509c7adc9b992350a4a537
2017-08-10 15:19:39 +00:00
drh
6fa9375c01
Add a first draft of the "vtablog" extensions that implements a generic
...
virtual table useful for experimentation using the command-line shell.
FossilOrigin-Name: e49279e65169a939b6058a0960dc1fe09ce4ee2d78992a1969773cbc7ce1043b
2017-08-10 03:27:27 +00:00
drh
7524b613c5
Preserve the error code from xConnect or xCreate methods in virtual table
...
implementations when they are encountered during parsing.
FossilOrigin-Name: dcdf091388251292ff9939bdff920708320bc64dacfe0fa1878c5ffd11b679c9
2017-08-09 22:55:09 +00:00
drh
73e00cf056
Various bug fixes for the new LSM1 virtual table design.
...
FossilOrigin-Name: 94434a252f0f2b57f325fd8fb82534f20cc1340ff13076cd88deeb47740ef6a2
2017-08-09 19:27:24 +00:00
drh
2e27d28fec
Work toward redesigning the interface to the LSM1 virtual table.
...
FossilOrigin-Name: 313df946668b943b0a9a9a91fd7bafa7212d05765c7714fa6c0de46aa9062a74
2017-08-09 18:40:35 +00:00
drh
ca03bdaf6e
The identifier "vsnprintf" appears to be a reserved word in recent versions
...
of XCode, so avoid using it as a structure field.
FossilOrigin-Name: 795eede331b832a53e886318466dedc12504f7181c1d7295af7935864a04b72c
2017-08-08 21:40:23 +00:00
drh
b8313cc998
Fix a faulty signed/unsigned character comparison in the LIKE optimization
...
logic.
FossilOrigin-Name: f4a4b1497355c1b27d3d0770550fffcc3b2d2d51ab284101f19e8fc4264ee675
2017-08-08 21:30:43 +00:00
drh
4f57352937
Enhance the CSV virtual table extension so that it accepts the last row of
...
the CSV file even if the last row omits the closing \n, as long as the last
row has a full set of columns.
FossilOrigin-Name: 537e3be2e9503183799afffcd91defc751fea2c779e9b77b77f9485f7de5d170
2017-08-08 20:03:10 +00:00
dan
b46dfdb81c
Avoid casting a value larger than 2^31 to a (size_t) or (SIZE_T) on systems
...
where it is a 32-bit type.
FossilOrigin-Name: b26d7a1c7b5d59a2ceabc3716ccea32e26de729eb164a9c0e47f2d8f6ad3df37
2017-08-07 19:12:49 +00:00
mistachkin
e35395a45a
On Windows, avoid casting a value larger than 2^31 to a (SIZE_T) on systems where it is a 32-bit type.
...
FossilOrigin-Name: f08d63b413601b22726e8b96ff8eb779857321b9df30db0333f71e50ffb5077d
2017-08-07 19:06:54 +00:00
dan
089df50687
Fix a problem with handling SQLITE_FCNTL_MMAP_SIZE requests with a negative
...
parameter in os_unix.c.
FossilOrigin-Name: 4249fcf7b0c0233f9b3ba5139702738d5221c5309240e6e91dc139eff59471fe
2017-08-07 18:54:10 +00:00
dan
010a016ac9
Update bigmmap.test to account for builds that use
...
"-DSQLITE_MAX_MMAP_SIZE=<integer-constant>LL".
FossilOrigin-Name: 7c8b6f1cace42ee1182c252c8e66e5679f523f4248c27d38c075ae21e7c25374
2017-08-07 18:27:19 +00:00
dan
43c1e622cd
Avoid casting a value larger than 2^31 to a (size_t) on systems where it
...
is a 32-bit type.
FossilOrigin-Name: 46c3085dcad6372ac20eff499e17fe11680fdf4adb9186bf8b12221a5047e485
2017-08-07 18:13:28 +00:00
mistachkin
54640de156
Fix an out-of-order test number.
...
FossilOrigin-Name: 38f30091f9b1e2c393396da7257f3487fa374e1ee6d610577291909768ff9626
2017-08-07 17:28:18 +00:00
dan
969012e534
Add new test file "bigmmap.test". For testing builds with
...
-DSQLITE_MAX_MMAP_SIZE > 2GB.
FossilOrigin-Name: 17447062799239ee978bedbf7fcc67f4c7d2cad2e82dcf9349a966fc8f67d390
2017-08-07 17:14:30 +00:00
dan
226744d11b
Fix a segfault in swarmvtab that could occur if there was an error in the SQL
...
statement passed to the constructor. Add other test cases.
FossilOrigin-Name: 6ce8b7ca62fcf97875395fc1a989179309e0abb48d4465658ef0d871434ea057
2017-08-05 16:15:33 +00:00
drh
eabb67fb61
Microoptimization in pcache1.c makes the code slightly smaller and faster.
...
FossilOrigin-Name: 422cd9f39403feeacd70133c7a147e23572c75d617ac564344f016ae6611162c
2017-08-05 15:49:03 +00:00
dan
7d90417733
Fix memory leak in swarmvtab.
...
FossilOrigin-Name: 002a9c7baccf3417c56ec7d16755ea32fdd70a654ffc75f2fc4624fd2b688aed
2017-08-05 15:30:46 +00:00
drh
1451778a88
Add the swarm virtual table to the existing union virtual table module.
...
FossilOrigin-Name: 0f6f6f03deaba2f4bdd168980647136e8ddff4907863b62b3056b8e4665599df
2017-08-04 20:27:13 +00:00
drh
a5aed4b10b
Add the optional non-found-callback to the swarm-vtab.
...
FossilOrigin-Name: a94e2f600bc766fb459418e674b842628ba21e27cf9942c00cd533507d7b35fe
2017-08-04 20:15:08 +00:00
dan
d83e082524
Add further test cases for swarmvtab. And minor code changes.
...
FossilOrigin-Name: 0f82d3b9dd5bd2e34a984c78e4a4a87921cf3e15b01b611133378c0ea9901010
2017-08-04 17:39:13 +00:00
dan
0ff2217035
Add test cases and associated fixes for swarmvtab.
...
FossilOrigin-Name: 7ae20eac83fc053dc1bbc42501dd41f77445a6b9a33cfa42b899fc7a18c637ab
2017-08-04 16:16:32 +00:00
dan
f12228fa23
Add SQLITE_API qualifiers to public API functions in header file sqlite3rbu.h.
...
FossilOrigin-Name: e11e6eb1d98518ba3f0361efa1c274084c5d6325b52e8470b6873e14e00c4eff
2017-08-04 08:24:52 +00:00
dan
f5f0e43a6d
Update script tool/mksqlite3c.tcl to avoid duplicating the SQLITE_API
...
qualifier when copying sqlite3rbu.h into the amalgamation.
FossilOrigin-Name: 61ab112f326a51d2d524a6371d8c93851ca2c6917414a802ac72d7cf5a2413fb
2017-08-04 08:23:33 +00:00
dan
a64d1fbc23
Modify swarmvtab to use a separate database connection for each database file.
...
FossilOrigin-Name: 1f05ad29c3a540408470da7f8111f1319f961539c1a96b1a81abf1423af90f15
2017-08-03 20:13:00 +00:00
dan
f48d4ef8bc
Add SQLITE_API qualifiers to public API functions in header file sqlite3rbu.h.
...
FossilOrigin-Name: d8637badf63b90b650e9d6dc970c7e1ce46669ce8272f46f01fac9bd97c1b0fc
2017-08-03 15:50:10 +00:00
dan
0c2e5cfda5
Fix some problems in RBU test cases. Also update RBU source code to better
...
handle the trivial case where an RBU update is applied to a database zero
pages in size.
FossilOrigin-Name: 7676b39bc120ae23da0c6a14452eb99a58901ee45c3d43b8beae426f9e4dc0c3
2017-08-03 15:43:55 +00:00
drh
5859636fb1
Optimization to the comparison opcodes in the byte-code engine.
...
FossilOrigin-Name: 654935c7737f1a9e08fde9b220c543e86ff6e05910e2f08973a2f93ab2b3e028
2017-08-03 00:29:23 +00:00
drh
a485ad191f
In the KeyInfo object, refactor the nField and nXField elements into
...
nKeyField and nAllField, which are more useful and run a little faster.
FossilOrigin-Name: aea5990eab5e85f92df966aa641db2271c81052010ad2d80982475c4275a1284
2017-08-02 22:43:14 +00:00
dan
63331b1af3
Enhance the code in unionvtab.c to also provide the "swarmvtab" virtual table
...
module. There are still several problems on this branch.
FossilOrigin-Name: 03d94388d62fd0f1fae377d273bbd5561208adc34bd97f7ce27783b30a369fd7
2017-08-02 19:59:56 +00:00
drh
754ee285fa
Avoid redundant calls to sqlite3ApiExit() in sqlite3_step().
...
FossilOrigin-Name: 527974d4caba8bce7c89a28ea04a573b14c558657c14d9ad3c64bf1e0884caf8
2017-08-02 19:04:37 +00:00
drh
59533aa5e0
Only attempt to invoke WAL callbacks when a transaction has committed.
...
FossilOrigin-Name: bcc6dacb9114df709ef1bde24264c2193d9e39fc7fab024d5ebfc6056033274c
2017-08-02 18:28:26 +00:00
drh
60172a5a93
Minor optimization on clearCell()
...
FossilOrigin-Name: f3c39c2986be08683c2af4df610bc12e3c6bc6bec265c94ce01b94a950723524
2017-08-02 18:27:50 +00:00
drh
85ef630fde
Optimizations associated with error handling in btree cursors.
...
FossilOrigin-Name: 49ba54e26731ed371745d4bdd9dd1dfeb73357b6d206c85a4252ec866be971d0
2017-08-02 15:50:09 +00:00
drh
57498ae9cf
Remove unused token codes.
...
FossilOrigin-Name: c45078c062f41f43c71965b2e5a97932ff79123eeb017ba853314987bebc2bca
2017-08-02 12:38:10 +00:00
drh
13aa88d956
Rearrange some of the added token codes for a very slight size decrease and
...
performance increase.
FossilOrigin-Name: cb3742f51f4b3aa0fd8dc373af771e93ddb4100787115705955f2008aef92745
2017-08-02 11:36:16 +00:00
drh
6a8700b97b
Rearrange integer token values in the parser and logic in the
...
resolveP2Values() routine for a small size reduction and performance increase.
FossilOrigin-Name: 1cad2926ad88b83becab1326bd189d7bac8ba6d470b36ba5d29af5c9fb016014
2017-08-02 11:04:00 +00:00
drh
a02860511d
Show which opcodes are jumps in the comments when generating
...
the opcodes.h header file.
FossilOrigin-Name: eef643a369250f1acac4c01a9b3d29068a510e5bf7fa843d565df5e2523e4dd9
2017-08-02 03:21:52 +00:00
drh
59c435a015
Add the "%token" control to the lemon parser. Not currently used by SQLite.
...
FossilOrigin-Name: a6e4c5ae8f29bc2e7f2088426341254e9281d19db9dc9a14abc376d56dad4c4b
2017-08-02 03:21:11 +00:00
drh
0019881e08
Faster implementation of resolveP2Values().
...
FossilOrigin-Name: 82e46fe0d497f871e652a579f25e77de7ef05d56484418961a1296f65f19415e
2017-08-02 02:46:43 +00:00