Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
wherecode.c
44a0367
Merge the latest trunk enhancements and fixes into the empty-table-optimizations branch.
by drh
· 12 days ago
0a5508a
Rework the fix to the problem described by
by drh
· 12 days ago
4fe1ac8
Simplifications to the row-value IN operator logic. Do not let the query
by drh
· 12 days ago
redundant-idx-columns
c701d17
Improvements to the EXPLAIN QUERY PLAN output for EXISTS-to-JOIN.
by drh
· 14 days ago
aa54d7a
Merge in the exists-to-join optimization that has been modified
by drh
· 2 weeks ago
3d21dcc
More aggressive optimization of addrHalt for RIGHT JOIN.
by drh
· 3 weeks ago
ba56f70
Compute WhereLevel.addrBrk and .addrHalt early so that those labels can be
by drh
· 3 weeks ago
4c323ba
Remove unnecessary whitespace and otherwise improve comments in the
by drh
· 6 weeks ago
f429845
Extend the fix for ticket [623eff57e76d45f6] so that it covers RIGHT JOIN
by drh
· 7 weeks ago
890de76
Remove stray tab characters from source files.
by drh
· 9 weeks ago
8488789
Fix a minor typo in a code comment.
by drh
· 3 months ago
8a6f89c
Remove unnecessary "www." prefixes on domain names in URLs.
by drh
· 3 months ago
cebf06c
Make use of the flexible-array feature of C99, when available, to try to
by drh
· 4 months ago
84b0f22
Fix comments on the Parse.nMaxArgs field so that they are correct. Add
by drh
· 5 months ago
2722e2e
Bug fix in the SubrtnSig logic from [c9a3498113074bbc], if a subquery is
by drh
· 8 months ago
98772d6
Fix harmless compiler warnings in wherecode.c. One such warning was
by drh
· 9 months ago
14101a3
Experimental change to explain query plan to identify covering indexes on expressions.
by dan
· 9 months ago
eqp-covering-index-on-expr
d55ab84
Add the SQLITE_INDEX_SCAN_HEX bit to the sqlite3_index_info.idxFlags bitmask.
by drh
· 11 months ago
1521ca4
Refactor the SrcItem object so that information about subqueries is stored
by drh
· 11 months ago
b204b6a
Give unique names to fields in the SrcItem object, to facilitate analysis of
by drh
· 11 months ago
0de7da1
Small performance optimization in the codeEqualityTerm() routine of the
by drh
· 1 year, 1 month ago
d72ca8f
Document the OP_Explain opcode. Add the WhereLoop.rRun value as P3 in
by drh
· 1 year, 2 months ago
4aaf45e
When omitting result columns for the vector-IN optimization, make sure that
by drh
· 1 year, 2 months ago
group-by-consistency
b834f62
Improvements to a VDBE comment. No changes to anything that affects queries.
by drh
· 1 year, 2 months ago
9c0d777
Fix a problem with queries that use "IN(...) ORDER BY ... NULLS LAST" or similar introduced by [d7648e21605a0b38].
by dan
· 1 year, 3 months ago
f3ea92c
Avoid an OP_Next in cases where an IN(...) query against a UNIQUE index may return at most 1 row.
by dan
· 1 year, 3 months ago
unique-in-opt
4f2f6c7
Extra robustness in the code that causes cursors to return NULL when they
by drh
· 1 year, 3 months ago
2c26adb
Continuation of the fix at [8c0f69e0e4ae0a44]: If a viaCoroutine FROM clause
by drh
· 1 year, 3 months ago
0526db3
Correct handling of OUTER JOIN when on or the other operand is a subquery
by drh
· 1 year, 3 months ago
05c6d13
Add comments to note the name abiguity between the MySQL push-down
by drh
· 1 year, 3 months ago
4cd3a59
Improve support for sqlite3_stmt_scanstatus_v2() profiling of sub-queries implemented as co-routines.
by dan
· 2 years, 1 month ago
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
653882e
Simplification, performance improvement, and size reduction in the
by drh
· 2 years, 2 months ago
c1e40a3
Fix a bug in cursor hints that can cause references to tables that have not
by drh
· 2 years, 3 months ago
e4d8e7e
Better handling of OOM errors in the cursor-hint logic.
by drh
· 2 years, 3 months ago
ed36917
New assert() statements to validate the parameters to
by drh
· 2 years, 3 months ago
09db37c
Omit a branch that is no longer needed following [c9c4f287652933eb].
by drh
· 2 years, 4 months ago
e1afa2b
Avoid having OP_SeekScan jump over an OP_IdxGT or OP_IdxGE that follows the OP_SeekGE opcode. Fix for [b50528af4468237c].
by dan
· 2 years, 4 months ago
45163fc
Add an sqlite3_db_config() option - SQLITE_DBCONFIG_STMT_SCANSTATS - for enabling and disabling the collection of sqlite3_stmt_scanstats() statistics in SQLITE_ENABLE_STMT_SCANSTATUS builds. Collection of statistics is disabled by default.
by dan
· 2 years, 5 months ago
0c69938
Allow vector-IN expressions like "(a, b) IN ( (?,?), (?,?) )" to use an index.
by dan
· 2 years, 5 months ago
2adb309
Have sqlite3_stmt_scanstatus_v2() return an NCYCLE value for all loops, not just virtual tables ones. The value returned is the sum of the NCYCLE counts for the various opcodes that move or read data from the table or index cursor associated with the loop.
by dan
· 2 years, 8 months ago
ad23a47
Enhance SQLITE_SCANSTAT_NCYCLE so that it reports on virtual tables.
by dan
· 2 years, 8 months ago
231ff4b
Enhance the sqlite3_stmt_scanstatus() API and add sqlite3_stmt_scanstatus_v2(). For creation of easier to read query performance reports.
by dan
· 2 years, 8 months ago
2a75765
Attempt to rationalize the bits associated with ".wheretrace". Provide
by drh
· 2 years, 8 months ago
f55a7da
This branch attempts to improve the detection of covering indexes. This
by drh
· 2 years, 9 months ago
63b3a64
The generalized indexed expression optimization of [2435112867fbd7b6] makes
by drh
· 2 years, 9 months ago
135c9ff
Remove a use of alloca() that does more harm than good.
by drh
· 2 years, 9 months ago
73c586b
Fix a problem causing the seek-scan optimization to skip over valid rows that could occur when it is used with expressions of the form (a IN (?,?..) AND b >= ?). dbsqlfuzz ab1db6dc0efb04cba1cd3431ee6da4894fdc4520.
by dan
· 2 years, 10 months ago
73ac958
Fix a problem that occurred when using a bloom filter to optimize an (ipk = ?) lookup in the case where the RHS of the expression is a TEXT value. First reported by [forum:/forumpost/f61a8b7053|forum post f61a8b7053].
by dan
· 2 years, 10 months ago
41ce47c
Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both the
by drh
· 2 years, 11 months ago
3a17e2e
Improvement on the previous check-in.
by drh
· 3 years ago
b5a6f33
For an IN operator used with a RIGHT JOIN, use the number of terms in the
by drh
· 3 years ago
058e995
Small performance increase and size reduction by splitting out the
by drh
· 3 years ago
0f4b534
Candidate fix for the problem with row-value WHERE clause constraints on
by drh
· 3 years, 2 months ago
c9dfe2b
Add back in a test case for ON-clauses that was removed yesterday by
by drh
· 3 years, 2 months ago
right-join-bug-20220531
404bf6b
For an outer join, then ON-clause constraints need to be evaluated at just
by drh
· 3 years, 2 months ago
c93bf1d
Improvements to the decision of when to check ON constraints for an inner
by drh
· 3 years, 2 months ago
556527a
Transitive equality constriants do not work on a RIGHT JOIN, since the
by drh
· 3 years, 2 months ago
f69dad8
Walk back the optimization from check-in [cc458317bd77046c] that tries to
by drh
· 3 years, 2 months ago
767bc8d
Defer generating WHERE clause constraints for a RIGHT JOIN until after the
by drh
· 3 years, 2 months ago
67a99db
Improved names for flags on the Expr object: EP_FromJoin becames
by drh
· 3 years, 2 months ago
d631c6a
Ensure that ON clauses are applied to the correct outer join.
by drh
· 3 years, 2 months ago
95cb5cc
Code EP_InnerJoin constraints at the same time that EP_FromJoin constraints
by drh
· 3 years, 3 months ago
joinD
8aa7f4d
Fix the Bloom filter pull-down optimization so that it jumps to the correct
by drh
· 3 years, 3 months ago
56f38db
Remove a testcase() macro taht was made obsolete by [a8da85c57e07721d].
by drh
· 3 years, 3 months ago
3a45d30
Improvement on check-in [a193749730d6cfba] so that the subroutine call to
by drh
· 3 years, 3 months ago
7497364
Simplified fix to the problem with subroutine reuse in the RIGHT JOIN no-match
by drh
· 3 years, 3 months ago
2aa1086
Preserve the COLLATE operator on an index on an expression when resolving
by drh
· 3 years, 3 months ago
a25bbaf
Further improvements to codeEqualityTerm() for cases when an IN operator with
by drh
· 3 years, 3 months ago
3d56653
Enhance the codeEqualityTerm() routine inside the code generator so that it is
by drh
· 3 years, 3 months ago
b77c312
For debug builds, if the RIGHT JOIN body subroutine contains a jump that
by drh
· 3 years, 3 months ago
503ad9c
Make sure the code generator knows to invoke row-value subroutines which
by drh
· 3 years, 3 months ago
7348ca4
Ensure that left-hand side WITHOUT ROWID tables are set to OP_NullRow prior
by drh
· 3 years, 3 months ago
2e1bcc9
Fix problems with WHERE clauses that follow multiple FULL JOINs. This
by drh
· 3 years, 3 months ago
d875c7e
Do not allow an empty table bypass to jump outside of a right-join body
by drh
· 3 years, 3 months ago
2c31c00
Rerun the subroutines that compute row-values if necessary from within
by drh
· 3 years, 3 months ago
f7ecd95
Move the explain comment for the RIGHT-JOIN post-processing loop to the
by drh
· 3 years, 3 months ago
146e64d
Add missing VdbeCoverage() macros on new branch byte-code opcodes.
by drh
· 3 years, 3 months ago
949e2ab
Factor out the RIGHT JOIN non-matched row loop from sqlite3WhereEnd(). This
by drh
· 3 years, 3 months ago
c583719
Show LEFT and RIGHT JOIN processing in the EXPLAIN QUERY PLAN output.
by drh
· 3 years, 3 months ago
189c065
Merge the Expr.w.iJoin name change from trunk into the right-join branch.
by drh
· 3 years, 3 months ago
d198526
Rename the Expr.w.iRightJoinTable to just Expr.w.iJoin, so that the words
by drh
· 3 years, 3 months ago
7c1734b
The interior of the RIGHT JOIN loop is now a subroutine.
by drh
· 3 years, 3 months ago
c2308ad
A few bits and bobs of code generation toward getting RIGHT JOIN to work.
by drh
· 3 years, 3 months ago
c187163
Merge the sqlite3WhereMalloc() routine from trunk into the right-join branch.
by drh
· 3 years, 3 months ago
f8bdcfa
The sqlite3WhereMalloc() routine allocates memory that is automatically
by drh
· 3 years, 3 months ago
a76ac88
Preliminary code to support RIGHT JOIN. Everything seems to work, except that
by drh
· 3 years, 3 months ago
e603ab0
Enhance the EXPLAIN output formatting in the CLI so that the subroutine that
by drh
· 3 years, 3 months ago
6d6ea42
Fix the code generated for vector IN operator constraints on virtual tables
by drh
· 3 years, 5 months ago
07559b2
Restore the ability to push-down OR subterms of the WHERE clause when
by drh
· 3 years, 5 months ago
c9bcc5a
Fix for the problem identified in
by drh
· 3 years, 5 months ago
5694569
Bloom filter pull-down optimization is incompatible with Skip-Scan.
by drh
· 3 years, 5 months ago
7fd6a77
Improved comment on the codeDeferredSeek() routine. No code changes.
by drh
· 3 years, 5 months ago
796588a
Record the position of many identifiers in the parse using the new
by drh
· 3 years, 5 months ago
02e3e04
For the MULTI-INDEX-OR optimization, when pushing down WHERE clause terms from
by drh
· 3 years, 6 months ago
0fe7e7d
Add new interfaces to enable virtual table to process IN operator constraints
by drh
· 3 years, 6 months ago
8f2c0b5
Query planner always honors the aConstraintUsage[].omit flag for the
by drh
· 3 years, 6 months ago
895bab3
Give the virtual table xBestIndex method access to (some) OFFSET and LIMIT
by drh
· 3 years, 6 months ago
0c7d3d3
Remove many redundant checks for sqlite3.mallocFailed now that any OOM should
by drh
· 3 years, 6 months ago
e482fde
When computing a vector to be used as a key for an index lookup, do not
by drh
· 3 years, 6 months ago
Next »