0
Files
src/sql
Darwin Huang 85d016374f Roll src/third_party/sqlite/src/ 3478eafd0..b5399f70d (246 commits)
3478eafd05..b5399f70d4

Also, update RecoverModuleTest integer expectations for sqlite v3.32.1.
This behavior changed between sqlite v.3.31.1 and v3.32.1.

$ git log 3478eafd0..b5399f70d --date=short --no-merges --format='%ad %ae %s'
2020-05-28 huangdarwin Amalgamations for release 3.32.1
2020-05-25 drh Version 3.32.1
2020-05-25 drh Extra assert() statements in the printf() logic.
2020-05-25 drh Defensive code that tries to prevent a recurrence of problems like the one described in ticket [7a5279a25c57adf1]
2020-05-25 drh Fix minor compile issues with optional extensions.
2020-05-25 drh Make sure variable declarations are at start of scope even when SQLITE_ENABLE_SNAPSHOT is used.
2020-05-24 drh Version number to 3.32.1.
2020-05-24 drh When rewriting a query for window functions, if the rewrite changes the depth of TK_AGG_FUNCTION nodes, be sure to adjust the Expr.op2 field appropriately.  Fix for ticket [7a5279a25c57adf1]
2020-05-24 drh Move some utility Walker callbacks into the walker.c source file, as they seem to belong there better.
2020-05-24 drh Improvements to parse-tree tracing logic.  No changes in deliverable code.
2020-05-24 drh Minor fix to a comment.  No code changes.
2020-05-23 drh Limit the "precision" of floating-point to text conversions in the printf() function to 100,000,000.  Fix for ticket [23439ea582241138].
2020-05-23 drh Improved bytecode comment.
2020-05-22 drh Version 3.32.0
2020-05-21 drh Change a NEVER macro into a NO_TEST comment, as the conditional is reachable, but only when compiling for Windows 32-bit.
2020-05-21 dan Avoid another potential OOB read in sqlite3expert.c.
2020-05-20 drh Back out the change from [7fab1393c2b22b1f] that tries to convert invalid surrogate characters in UTF16 into the replacement character 0xfffd, as we find that this breaks some software.
2020-05-19 drh Add compiler hints to disable TSAN for the routines that access the -shm file header in WAL mode using a double-read with memory barrier.
2020-05-19 dan In os_win.c, avoid calling sqlite3_uri_boolean() on anything other than a main-db filename.
2020-05-19 drh User-suggested improvement to the README.txt for the ICU extension.
2020-05-19 drh In wal.c, improved comments on concurrency issues.  More use of AtomicLoad() and AtomicStore().
2020-05-18 dan Add vdbevtab.lo to build of libsqlite3.lib in Makefile.msc.
2020-05-17 drh Avoid harmless UB in memcpy() in the JSON extension.
2020-05-17 drh Use the sqlite3Realloc() interface internally, rather than the public sqlite3_realloc64() equivalent, to avoid unnecessary calls to sqlite3_initialize().
2020-05-16 drh Performance optimization for the sqlite3FindTable() subroutine.
2020-05-16 drh The OP_RealAffinity opcode is not necessary after reading values from a virtual table (such as rtree).  It is harmless, but it does use CPU cycles.  Might as well leave it off.
2020-05-16 dan Fix a use-after-free bug in the fts3 snippet() function.
2020-05-16 drh Extra memory barrier during initialization.
2020-05-16 dan Add sqlite3BeginBenignMalloc() and EndBenignMalloc() calls to debugging function sqlite3VdbePrintOp().
2020-05-15 dan Update code in sqlite3expert.c to account for the fact that "-- TRIGGER xyz" VM comments are now omitted for some builds.
2020-05-15 dan Fix another build problem for SQLITE_OMIT_VIRTUALTABLE builds.
2020-05-15 drh Fix a documentation typo.  No changes to code.
2020-05-15 drh Adjust some requirement marks.  No changes to code.
2020-05-15 dan Update test file e_fkey.test to account for the fact that new columns with REFERENCE clauses and non-NULL default values may now be added using ALTER TABLE if the table is empty.
2020-05-15 dan Fix SQLITE_OMIT_VIRTUALTABLE testfixture builds.
2020-05-15 dan Test script changes to account for the fact that the "p5" column in the EXPLAIN output is now an integer, not a text values containing a 2-digit hex value.
2020-05-15 mistachkin Enhancements to long-path support in the Win32 VFS.
2020-05-15 drh Move some new test cases from fts3snippet.test into fts3snippet2.test.
2020-05-15 drh Add the SQLITE_ENABLE_FTS3_PARENTHESIS option to fuzzcheck.  Add a new test case that uses that option.
2020-05-14 drh Fix a null pointer deference that can occur on a strange matchinfo() query.
2020-05-14 drh Do not allow a virtual table to be renamed into the name of one of its shadows.
2020-05-13 drh Implement the IIF(x,y,z) SQL function that is short-hand for "CASE WHEN x THEN y ELSE z END".  For compatibility with SQL Server.
2020-05-13 drh Remove unused constant SQLITE_FUNC_COALESCE.
2020-05-13 dan Use AtomicStore() and AtomicLoad() in a few more places to avoid a theoretically undefined behaviour. This is not actually problem on any known hardware.
2020-05-11 drh New test case in test/fuzzdata8.db.
2020-05-11 dan Fix a problem handling constant integer expressions with collation sequences in PARTITION BY clauses.
2020-05-08 drh Release some restrictions on columns added by ALTER TABLE so that they only apply if the table contains one or more rows.
2020-05-08 drh Fix the count-optimization so that it honors the NOT INDEXED clause.
2020-05-08 drh New test cases added to test/fuzzdata8.db.
2020-05-08 drh Do not retry on a failed realloc() unless SQLITE_ENABLE_MEMORY_MANAGEMENT is available, meaning that the retry has some possibility of success.
(...)
2020-02-24 drh Disable the new analyzeG.test module if not building with STAT4.
2020-02-23 drh Fix a problem with ALTER TABLE for views that have a nested FROM clause. Ticket [f50af3e8a565776b].
2020-02-22 drh Do not activate the truthProb adjustment mechanism if the truth probability is less than the heuristic value, as there could be correlations unknown to stat4.  Also add additional tracing output to make truthProb adjustments more visible.
2020-02-22 dan Add new test file analyzeG.test, containing a test for the change on this branch.
2020-02-22 drh When stat4 information is available, try to use it to improve the truth probability of WHERE clause terms that do not participate in the index.
2020-02-22 drh In the OP_Column opcode, if the cursor is marked NullRow (due to being the right table of a LEFT JOIN that does not match) and the cursor is the table cursor for an OR-optimization with a covering index, then do not substitute the covering index cursor, since the covering index cursor does not have the NullRow flag set.  Ticket [aa4378693018aa99]
2020-02-20 dan Add test case for previous commit.
2020-02-20 drh Early-out on the INTERSECT query processing following an error.
2020-02-19 drh Fix a potential NULL pointer dereference following OOM.  Problem discovered by dbsqlfuzz.  Test case in TH3.
2020-02-18 drh Remove a NEVER() macro and add a test case to cause its argument to be true.
2020-02-18 drh Add the new sqlite3_create_filename() and sqlite3_free_filename() interfaces for use by Shims.  Use these interfaces inside the multiplexor.
2020-02-17 drh Convert invalid surrogates to 0xfffd when translating UTF.
2020-02-17 drh A better (smaller and faster) solution to ticket [4374860b29383380].
2020-02-17 drh Take care when checking the table of a TK_COLUMN expression node to see if the table is a virtual table to first ensure that the Expr.y.pTab pointer is not null due to generated column optimizations.  Ticket [4374860b29383380].
2020-02-16 drh Avoid an infinite recursion on an illegal recursive definition of an fts5vocab table.
2020-02-13 drh Fix problems in the constant propagation optimization that were introduced by check-in [1c3e5c20a9e6f501].  Fix for ticket [1dcb4d44964846ad]
2020-02-13 drh Disallow the skip-scan optimization in the absence of sqlite_stat1 data.
2020-02-13 drh Omit O_NOFOLLOW from the open() call when opening /dev/null, since /dev/null is a symlink on Solaris, we are told.
2020-02-13 drh Fix an incorrect assert() statement that was added yesterday. Tickets [41c1456a6e61c0e7] and [fb8c538a8f57ae2a].
2020-02-12 drh Increase the default upper bound on the number of parameters in a single SQL statement to 32766 (from 999).
2020-02-12 dan When determining whether an == or IS constraint in a WHERE clause makes an ORDER BY term redundant, consider the collation sequence used by the == or IS comparison, not the collation sequence of the comparison expression itself. Possible fix for [fb8c538a8f].
2020-02-10 drh Mark the sha1() extension function as SQLITE_DETERMINISTIC.
2020-02-10 drh Fix the build for when SQLITE_VDBE_COVERAGE is used.
2020-02-07 drh During byte-code generation, strive to avoid jumps that merely jump to the following instruction.
2020-02-07 drh Simplify the code by removing the unsupported and undocumented SQLITE_HAS_CODEC compile-time option
2020-02-06 drh There is no need to keep track of the number of changed rows or of the last-insert-rowid while running VACUUM.
2020-02-06 drh Unroll the comparison loop inside keywordCode() for to avoid unnecessary comparisions and thus help that routine run faster.
2020-02-06 drh Separate OP_IdxInsert and OP_SorterInsert into completely separate opcodes, helping each one to run a little faster.
2020-02-06 drh Remove dead code from the sqlite3_filename_database() function.
2020-02-06 dan Fix some fts3 problems found by usan.
2020-02-05 drh Small size reduction and performance improvement in the sqlite3VdbeMemFromBtree() interface used to pull content out of the b-tree and into an sqlite3_value object.
2020-02-04 dan Enable more detailed log messages in SQLITE_ENABLE_CORRUPT_PGNO builds if database corruption is encountered.
2020-02-04 drh Extend the OP_Copy-coalesce optimization fix of check-in [b36126c1889e323c] so that it is also correctly disabled by the CASE operator. Ticket [9d3666754ac37d5a].
2020-02-04 drh Fix a problem with the byte-code decompiler that was inserted by the enhancements at [4248980a356f659b]
2020-02-03 drh Cosmetic change to the xfer-optimization to put the OP_RowData opcode closer to the corresponding OP_Insert opcode.  This makes it slightly easier to read and understand the code.
2020-02-03 drh Increase the version number to 3.32.0.
2020-02-01 drh On an INSERT or UPDATE, perform affinity conversions on new data prior to running CHECK constraints.  Ticket [86ba67afafded936].
2020-02-01 drh Fix the comment display for the OP_Function opcode.  And at the same time, improve the comment generating logic to make use of the newer sqlite3_str_appendf() interface.
2020-02-01 drh Fix a problem in sqlite3CodecQueryParameters() that was introduced by the query parameter encoding changes for the 3.31.1 release.
2020-01-31 drh Fix a minor typo in a comment in the btreeinfo extension.
2020-01-29 dan Fix a problem with the processing of IN(...) constraints handled by virtual table implementations that do not set the "omit" flag when the virtual table column contains at least one NULL value.
2020-01-29 dan Add a test case for commit [ffd8bb93].
2020-01-29 drh Remove a NEVER() that is in fact reachable.  Test cases in dbsqlfuzz and TH3.
2020-01-29 drh Add new memory barriers during initialization.
2020-01-29 drh Modify a couple of FTS test cases so that they work on big-endian platforms.
2020-01-28 drh Faster decoding of 32-bit variable-length integers in cases were we do not need to know the number of bytes in the encoding.
2020-01-28 drh Small performance improvement to the key-comparision routine for strings.
2020-01-28 drh Reinstate the optimization of converting "a IN (C)" into "a=C" but only if C is a constant.  If the RHS is a table column, the complications of managing affinity and collations become too involved to mess with.
2020-01-28 dan Fix a 4 byte OOB read in test_multiplex.c.
2020-01-28 drh Minor change for compatibility with the s390 architecture.

Created with:
  roll-dep src/third_party/sqlite/src

Bug: 1087629
Change-Id: Ic27525b0b6d4011b77b096651a318358c5df14cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222913
Auto-Submit: Darwin Huang <huangdarwin@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#773475}
2020-05-30 03:34:51 +00:00
..