aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| | * Improved detection of database corrupting when moving pages on andrh2022-10-10
| | | | | | | | | | | | | | | | | | autovacuumed database when creating a new btree. dbsqlfuzz 9a55397eae13cec64aebf1fd35489c3a90bdaac5 FossilOrigin-Name: 327965bc71023d9380a9d6805062659108dab4bfcd386b7aba813754f270d33a
| | * When casting an odd-length BLOB into a TEXT with encoding UTF16, omit thedrh2022-10-08
| | | | | | | | | | | | | | | last byte. dbsqlfuzz c5df68b5bbdf6c9f3c1851e41e88f49ac05c9969 FossilOrigin-Name: 1e2796b3741a4c0b966e6c01a7d62dea8de9d1f4bededea3d7ba7004dabc2ffe
| | * Fix a problem causing the seek-scan optimization to skip over valid rows ↵dan2022-10-07
| | | | | | | | | | | | | | | that could occur when it is used with expressions of the form (a IN (?,?..) AND b >= ?). dbsqlfuzz ab1db6dc0efb04cba1cd3431ee6da4894fdc4520. FossilOrigin-Name: 63d9efe277759d4daa29794846b60c6f55491496618f423f61468df72d0a4633
| | * Improved tracing output for showing all registers used by thedrh2022-10-07
| | | | | | | | | | | | | | | OP_SeekGE opcode. This applies to debugging builds only. FossilOrigin-Name: 0aa6dee7f72279114a47cbb69fdbda0b916a2c365f7a147946869f167bd018b7
| | * Fix a problem that occurred when using a bloom filter to optimize an (ipk = ↵dan2022-10-06
| | | | | | | | | | | | | | | ?) lookup in the case where the RHS of the expression is a TEXT value. First reported by [forum:/forumpost/f61a8b7053|forum post f61a8b7053]. FossilOrigin-Name: 8e14c351b29bb434ac4e2510681e95716424a73e340d39feff4919f0431c2e00
| * | Refactor os_kv.c so that the kvvfs read/write/delete methods can be swapped ↵stephan2022-10-09
| | | | | | | | | | | | | | | out at runtime by JS implementations. This eliminates the kvvfs dependency on Emscripten. Checkin part 1 of 2, to account for cherrypicking. FossilOrigin-Name: ea370b9b05f7ed7eaa154ba58019f6642217eabc18517e721567adf948d93980
| * | Omit WAL mode from the wasm build.stephan2022-10-03
| | | | | | | | | FossilOrigin-Name: 88efe2a62b81e5ee9119f54204e397fda59666a327158c7b7c972e84a716869e
| * | Reimplement fiddle_reset_db() so that it works with all VFSes.stephan2022-10-03
| | | | | | | | | FossilOrigin-Name: 18462052903bfeb037dd9af3a1fe1898d141eff5d6f527721858120553de808d
| * | Fiddle: fix makefile dependency issue and duplicate inclusion of post-js.js. ↵stephan2022-10-01
| | | | | | | | | | | | | | | Reimplement db export using sqlite3_serialize(). FossilOrigin-Name: 29db7de79232c21d19b91bb0fc253114e02e21dd9bf90619453dbe72a4c8bf7f
| * | Merge trunk into fiddle-opfs branch.stephan2022-10-01
| |\ \ | | | | | | | | FossilOrigin-Name: 64ebcbe41615a6d7776597564105ea7638e4a9095a764ea558c2620640429cf8
| * | | Tweak sqlite3-worker1.js to be able to load either sqlite3.js or ↵stephan2022-10-01
| | | | | | | | | | | | | | | | | | | | sqlite3-wasmfs.js, noting that the latter still does not load in a Worker because of an Emscripten loader bug. FossilOrigin-Name: 000ef7059bfb54dc4f829b81a8d8c927c0382980218d8a3d60cd2c4d89151c90
| * | | Fiddle: replace db export routine with a C-side one which works for both ↵stephan2022-09-26
| | | | | | | | | | | | | | | | | | | | Emscripten FS-hosted and OPFS-hosted db files. Minor code-adjacent cleanups. FossilOrigin-Name: 3579a8d6f1f6cd3cd8aad9949536870c5fe7bae8c1778f700dd85d763e266b94
| * | | Get fiddle db export working for OPFS VFS. Add root dir handle to the main ↵stephan2022-09-26
| | | | | | | | | | | | | | | | | | | | OPFS VFS worker to enable creation of certain utility functions without delegating to the async worker. Add sqlite3.capi.sqlite3_wasm_rc_str() to map integer result codes back to their SQLITE_xxx counterparts. Minor doc touchups. FossilOrigin-Name: 9b2244e1c8a40efe6547094a1b57acc8f2173145a8731abb0e36268ce0a8ef41
| * | | Refactoring towards getting fiddle to support OPFS as a first-class citizen. ↵stephan2022-09-24
| | | | | | | | | | | | | | | | | | | | Certain operations, e.g. import, export, and unlink, are not OPFS-aware. FossilOrigin-Name: 1b923ed6438d7fef4508936e0c4bc026a368721698b1539961e3fb3140a185cb
| * | | shell.c.in: when building in fiddle mode, define _POSIX_SOURCE (ifndef) so ↵stephan2022-09-21
| | | | | | | | | | | | | | | | | | | | that emcc's string.h reveals strdup(). FossilOrigin-Name: fb85b269c43147f153977606dd8ede7b93744bf955e4c1a2b198907fd8a94620
| * | | When compiled with SQLITE_OS_KV_OPTIONAL, the magic names ":localStorage:"drh2022-09-20
| | | | | | | | | | | | | | | | | | | | and ":sessionStorage:" are recognized and converted to use the kv-vfs. FossilOrigin-Name: c5db9262d0388ccb0e84c6a4b4e2e786dd634f13874e4034ba7b175befa4ce90
| * | | Fix an uninitialized variable in the decoder kv-vfs.drh2022-09-17
| | | | | | | | | | | | FossilOrigin-Name: 354726aa6c399053785f29104de15091629ce4bc275b9e2205cb3656a9e81cd7
| * | | Include the kv-vfs as an optional VFS on unix builds if thedrh2022-09-17
| | | | | | | | | | | | | | | | | | | | SQLITE_OS_KV_OPTIONAL compile-time option is present. FossilOrigin-Name: 852812d1e2ec3c53ad7c6c64662b37d861fefcf1baeee3d58eba88bcb3f6d8df
| * | | Merge the latest trunk enhancements into the kv-vfs branch.drh2022-09-17
| |\ \ \ | | | | | | | | | | FossilOrigin-Name: 37c7ca25a6e837e7f83b96a32e2b1a455730e48a48012c458ae2e734a3ccdd1f
| * | | | Corrections to the xRead method for databases in the os_kv.c VFS so that itdrh2022-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correctly reads the header, and thus avoids unnecessary cache flushes. This changes also includes an optimization to the header read logic. FossilOrigin-Name: ef54961ce69fddb4cfeeff0860288de2858a6f7a5aa396691e8e99933eb9af54
| * | | | Fix os_kv.c so that it uses SQLITE_FCNTL_SYNC and hencedrh2022-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | works even with PRAGMA synchronous=OFF. FossilOrigin-Name: 21915af560b111aeeaee751790356151a5f063c2fc703dd4b35b22dc393409fb
| * | | | Pull the src/os_kv.c part of [13839759f8f4] into the kv-vfs branch.stephan2022-09-16
| | | | | | | | | | | | | | | FossilOrigin-Name: e334449912d5176e355d02024a07ed867741f71c9d10ce6744ca800414bf3eeb
| * | | | Remove an extraneous key-copy op in the EM_JS impl of kvstorageDelete().stephan2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: 1c5aeee45564c14e7e2e7730f3f52106339ea3148fb5aa786fa767a35db46f51
| * | | | Fix the <sys/time.h> include in os_kv.c.drh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: 878cc93e779c3857adc711f212520f007256274fcd3f6f3d72c754a937fcd198
| * | | | Add a gettimeofday()-based implementation of xCurrentTimeInt64() to os_kv.c.drh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: e393ed650ef124143f84e9d787fb996e308dd7af6b8f50df72a6f085b67bf9c3
| * | | | Fix a debugging/testing edit in the previous check-in.drh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: 6fc8d34c0ae1f8277544be741f2f0835fad8e475d35bd24573224ccc1699b8bd
| * | | | Faster text decoder for kv_os.c.drh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: 3354a2edb762d70ccc31d4d25f81b70e644d76e01cb1e81d2e97b5414d809d30
| * | | | Fix uninitialized variable in rollback-journal processing in os_kv.cdrh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: e49682c5eac91958f143e639c5656ca54560d14f5805d514bf4aa0c206e63844
| * | | | Fix the amalgamation so that it builds with the standard unix backend again.drh2022-09-12
| | | | | | | | | | | | | | | FossilOrigin-Name: 0adf158f4e5791339988185cc29347c75056b062e0db65b5999fdfa1f433c1ed
| * | | | Initial build of kvvfs in wasm. It loads but cannot find the VFS for ↵stephan2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | as-yet-unknown reasons (sqlite3 shell works fine), and most APIs throw "null function or function signature mismatch" from deep within wasm, presumably as a side effect of the "missing" VFS. FossilOrigin-Name: 1a2f24a0bdfc6eaae478916b8f4f9c6b63ead9964534fc2951fb4e995ffe61f1
| * | | | Improved comments in os_kv.c. Better names for the key/value name spaces.drh2022-09-10
| | | | | | | | | | | | | | | FossilOrigin-Name: 8e1652a3856765c9146cc2a7e3b598a2dc7dc84c556b35eab9a35184514384b9
| * | | | Move the vfskv.c extension to src/os_kv.c and make it part of the amalgamation,drh2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | activated if and only if SQLITE_OS_KV is true. FossilOrigin-Name: f6632e69c2ec1a7ddc4e51f3567e3bc082ee94a6dd51fdafdc0c3bf386a32d4c
* | | | | Merge latest trunk changes.dan2022-10-04
|\ \ \ \ \ | | |_|_|/ | |/| | | FossilOrigin-Name: b0feecaa84b88f534edb49056cf7e92256f4a687c8b4c44e1d1186709a304378
| * | | | Attempt to clarify the operation of the xLock and xUnlock VFS I/O methods.drh2022-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | Assert() statements added to prove that they behave as the documentation says. FossilOrigin-Name: 3efa811251d4510a074231a1e0b667783cc5f90777466b9dcae675cd9892b423
| * | | | Change the name of the autoconf-generated configuration file from "config.h"drh2022-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to "sqlite_cfg.h" to work around a bug in a dependency checker, reported in [https://twitter.com/josecastillo/status/1577136108097314816|a tweet from Jose Castillo]. FossilOrigin-Name: 897e187cad981126fc5f6ea8e382e937825af10b0c9589b0a23b9fbaa4ca58b8
| * | | | Minor doc typo fix in sqlite.h.in.stephan2022-10-02
| | | | | | | | | | | | | | | FossilOrigin-Name: 372802aaa22a830bf498bb0d9561ae02b32e5e191c4d7d771ea152140f6685a1
| * | | | Performance optimization in sqlite3_prepare() (discovered while workingdrh2022-10-01
| | |_|/ | |/| | | | | | | | | | | | | | on the stmt-cache branch). FossilOrigin-Name: cd494240cc6184bb028d1f1049086f57c0a71a43d7ed1405fd4205240e1b9e61
| * | | Replace the Parse.disableVtab field with Parse.prepFlags for increaseddrh2022-10-01
| | | | | | | | | | | | | | | | | | | | generality, a small size reduction, and a small performance increase. FossilOrigin-Name: b7da0bcdf70e53ab1ec00a0694e17c7429e23bc6eb3f39b622d06a930aa2f6a3
| * | | Remove one of the NEVER() macros added by [5166acf3f0040459] because itdrh2022-09-30
| | | | | | | | | | | | | | | | | | | | is reachable after all. FossilOrigin-Name: bd8ae5febbb8d3122f1e2e09b9fcdd6ac20c075ae1cf60bcdbd36080f3736417
| * | | Fix a bug in the demoDelete fix from [d76a301e22e05722].drh2022-09-30
| | | | | | | | | | | | FossilOrigin-Name: 7e761a02530ffbb055a766eb6c995f11fc2adbabb9a52502124f672fdcff0d10
| * | | Add NEVER() to two error-detection tests that were made unreachable bydrh2022-09-30
| | | | | | | | | | | | | | | | | | | | the previous check-in. FossilOrigin-Name: 5166acf3f00404597e77910aee88920ab833af8447766f50bf4f70525606cf95
| * | | Better handle a case of database corruption where a b-tree page is one of ↵dan2022-09-30
| | | | | | | | | | | | | | | | | | | | its own ancestor pages. FossilOrigin-Name: a24e46804893a7e6e8f3130abca882f9a3aa3b7b2b82aa39a0a20856172766d5
| * | | Improvements to the "demoDelete" method in the demovfs, suggested bydrh2022-09-30
| | | | | | | | | | | | | | | | | | | | [forum:/forumpost/cad18961c2|forum post cad18961c2]. FossilOrigin-Name: d76a301e22e0572262917dfe9557a5051339a65416a473dd2d9989a49975403e
| * | | Provide the SQLITE_MAX_ALLOCATION_SIZE compile-time option for limiting thedrh2022-09-27
| | | | | | | | | | | | | | | | | | | | maximum memory allocation size. FossilOrigin-Name: 584de6a996c78b8e41bdfcd05a8e2a3844664c6b4efedb5883c8b8af388462b5
| * | | Enhance defensive mode so that it disallows CREATE TRIGGER statements if thedrh2022-09-27
| | | | | | | | | | | | | | | | | | | | statements within the trigger attempt to write on a shadow table. FossilOrigin-Name: 3283bbd12a60f472ed03cb7c6209a605a3bf9f3d9083371e17840b56e8b3f559
* | | | Fix various compiler warnings in new code on this branch.dan2022-09-23
| | | | | | | | | | | | FossilOrigin-Name: ae49e9efde3012158061def6e0a8d993abbc5933514a21f84bc10f700f61b5e2
* | | | Merge latest trunk changes into this branch.dan2022-09-23
|\| | | | | | | | | | | FossilOrigin-Name: e87fa70ab0f9b95bbcde18567f47906a222a3fd02b4f3c2903d2bb087d361b7c
| * | | Reduced and improved comments on the constraintCompatibleWithOuterJoin()drh2022-09-21
| | | | | | | | | | | | | | | | | | | | function. FossilOrigin-Name: 38aaf26e082bd95df6b64df43e1772fe6e20c4eb71307dcd97559cac7f11f8f1
| * | | Break out the decision of whether or not a constraint term is usable bydrh2022-09-21
| | | | | | | | | | | | | | | | | | | | an outer join into a subroutine: constraintCompatibleWithOuterJoin(). FossilOrigin-Name: c7fbc9b0453050e2746af27e3a11e0c3701bef8c56da8e19173242c6ea3aff8b
| * | | Do not allow EP_InnerON terms to be used on a outer join.drh2022-09-20
| | | | | | | | | | | | FossilOrigin-Name: f47aa745690c018800243bf76930b2499ff4537411c4e27b4b16ba3854cc2bf8