Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
whereexpr.c
bcfe38b
Avoid evaluating special vtab operators (e.g. MATCH) that are part of ON clauses attached to left joins from being evaluated too early. Possible fix for [forum:/forumpost/428ef7c468 | forum post 428ef7c468].
by dan
· 7 days ago
aa12f00
Adjustments to test/incrblob4.test so that it works on both Linux and Mac
by drh
· 11 days ago
a12e92d
Remove an ALWAYS() added by [960a8e6fc91f4] that turns out to be false
by drh
· 2 weeks ago
c525e6e
Make handling of LIMIT clauses in correlated sub-queries on virtual tables more efficient.
by dan
· 2 weeks ago
110055c
Fix a corner-case for [9441fff52cc4e19c].
by drh
· 5 weeks ago
86d9c2d
Fix an issue going back to version 3.39.0 with transitive IS constraints
by drh
· 5 weeks ago
d3a13f7
Improved debugging output for the transitive constraint optimization.
by drh
· 5 weeks ago
454a426
Remove an ALWAYS() added by [2567298f4b0fdfeb] because dbsqlfuzz found a way
by drh
· 6 months ago
276d213
Tweaks to [4b4f33d791fe4318] to make it easier to test.
by drh
· 6 months ago
f6ca35d
Fix a problem with LIKE and GLOB processing in utf-16be databases in cases where the utf-8 encoding of a character ends with the byte 0xBF.
by dan
· 6 months ago
4b0a2e0
Improved handling of unicode characters in the LIKE optimization.
by drh
· 9 months ago
ce527f2
Fix handling of U+fffd in the LIKE optimization.
by drh
· 10 months ago
5648d71
Refactor the SrcItem object to move fields associated with subqueries out
by drh
· 11 months ago
781163a
When the database encoding is UTF-16LE and the GLOB optimization is used,
by drh
· 11 months ago
6ad4e9f
Fix for the UTF-16LE problem reporte by
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
4703b7d
Better optimize queries that use parameters in the LIMIT clause.
by drh
· 1 year, 1 month ago
fd6beda
Adjust the parser so that the value of TK_ISNOT is similar to the value of
by drh
· 1 year, 1 month ago
48f5e52
Small performance optimization in the operatorMask routine of the WHERE
by drh
· 1 year, 1 month ago
b458cbb
Small performance optimization in the allowedOp() routine of the WHERE
by drh
· 1 year, 1 month ago
4c3ab54
Allow virtual table implementations to handle OFFSET but not LIMIT, but not LIMIT but not OFFSET.
by dan
· 1 year, 3 months ago
vtab-limit-fix
3afd5b6
Fix a problem allowing a LIMIT constraint to be passed to a virtual table in cases where there exist WHERE terms that cannot also be passed.
by dan
· 1 year, 3 months ago
99ac232
Fix handling of LIMIT and OFFSET in virtual tables that are part of
by drh
· 1 year, 3 months ago
f696591
Enhance the sqlite3ExprIsConstant() function so that it recognizes
by drh
· 1 year, 4 months ago
5fb718a
Do not allow the query planner to be tricked into thinking that an index on a
by drh
· 1 year, 4 months ago
56a4107
Address various harmless compiler warnings from
by drh
· 2 years, 1 month ago
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
c1e40a3
Fix a bug in cursor hints that can cause references to tables that have not
by drh
· 2 years, 3 months ago
baef844
Further to [46639f682975dac6], the parameters of a table valued function that
by drh
· 2 years, 5 months ago
d7ddec7
When a table-valued function appears as the right table of a RIGHT JOIN,
by drh
· 2 years, 5 months ago
b4dc263
Do not allow WHERE clause terms to match constant string index terms, which
by drh
· 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
9e463e8
In the LIKE optimization, do not analyze the new virtual WHERE clause terms
by drh
· 2 years, 5 months ago
80e936a
Do a better job of detecting when a WHERE clause term might be useful to
by drh
· 2 years, 5 months ago
52c08ee
Ensure that LIMIT clauses may be passed through to virtual table implementations even if the WHERE clause uses operators that may only be optimized by virtual, not built-in, tables (!=, functions, MATCH etc.).
by dan
· 2 years, 7 months ago
fb64359
More frequently send the complete SELECT statement into sqlite3WhereBegin()
by drh
· 2 years, 9 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
4bc1cc1
This experimental branch attempts to use columns for an index-on-expression
by drh
· 2 years, 9 months ago
cf5cab0
More comment fixes. No changes to code.
by drh
· 3 years, 1 month ago
4af6462
Add an ALWAYS() macro to an always-true branch.
by drh
· 3 years, 1 month ago
d748040
Do not allow an ON clause to references tables to its right if there is a
by drh
· 3 years, 1 month ago
bf15436
Avoid a direct use of abort() in debug builds to prevent a compilation issue for Windows CE.
by mistachkin
· 3 years, 2 months ago
0f4b534
Candidate fix for the problem with row-value WHERE clause constraints on
by drh
· 3 years, 2 months ago
6af03b4
When an ON clause on an INNER JOIN references a table to the right of
by drh
· 3 years, 2 months ago
a6e8ee1
Redefine the acccess rules for the Expr.w union so that the Expr.w.iJoin
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
d88fd53
Organize the various flag bits of the ExprList_item object into a substructure
by drh
· 3 years, 3 months ago
3a6e4c5
Make a distinction between (1) WHERE clause constraints, (2) ON/USING
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
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
d44f8b2
Improved technique for parsing the ON and USING clauses of a join is faster
by drh
· 3 years, 3 months ago
6e85b27
When create table/view fails due to name taken, say which took it.
by larrybr
· 3 years, 5 months ago
51896e6
The sqlite3_vtab_in() interface should return false for a vector IN constraint.
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
9ede896
Fix a harmless code indentation issue.
by drh
· 3 years, 6 months ago
ddd166a
Remove a faulty NEVER(). Fix for dbsqlfuzz 4678cf825d27f87c9b8343720121e12cf944b71a
by drh
· 3 years, 6 months ago
f6f7888
Add a NEVER() on an unreachable branch.
by drh
· 3 years, 6 months ago
vtab-limit-offset
cee5cb4
Include hidden columns of table valued functions that are constrained
by drh
· 3 years, 6 months ago
0ae56fb
Enable SQLITE_INDEX_CONSTRAINT_LIMIT/OFFSET even if there are vector
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
233ba1b
Make LIMIT and OFFSET values available to sqlite3_vtab_rhs_value().
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
8a95d3d
Simplify the generation of the sqlite3_index_info object during query planning
by drh
· 3 years, 7 months ago
132f96f
In the WhereClause object, do not assume that all TERM_VIRTUAL terms appear
by drh
· 3 years, 7 months ago
60a8e1b
Fix exprAnalyze() after recent performance enhancements so that it is able
by drh
· 3 years, 8 months ago
11e4fdb
Fix unreachable branches resulting from prior optimizations.
by drh
· 3 years, 8 months ago
65a3c85
Optimizations to exprAnalyze() and sqlite3WhereExprUsage() save about 1.5
by drh
· 3 years, 8 months ago
cbb7746
Remove an unnecessary branch from exprAnalyze(), resulting in a small
by drh
· 3 years, 8 months ago
cdd9050
Small performance optimization in sqlite3WhereClauseClear().
by drh
· 3 years, 8 months ago
220f0d6
Protect the WhereTerm.u union using nearby assert()s and/or branches.
by drh
· 3 years, 9 months ago
477572b
Protect access to the Expr.y union using nearby assert()s and branches.
by drh
· 3 years, 10 months ago
a4eeccd
Protect all accesses to the Expr.x union using nearby assert()s and branches.
by drh
· 3 years, 10 months ago
f975107
Protect all accesses to the FuncDef.u and Expr.u unions using nearby
by drh
· 3 years, 10 months ago
eb61630
Fix a potential NULL pointer deference in the LIKE optimization. The
by drh
· 3 years, 11 months ago
348e002
One of the optimizations of check-in [de9c86c9e4cdb34f] does not work for
by drh
· 4 years ago
10f0827
Ensure that TK_SELECT_COLUMN Expr nodes always have their iTable field set to
by drh
· 4 years, 1 month ago
6a9595a
Avoid adding superfluous virtual WHERE clause terms that might arise due
by drh
· 4 years, 2 months ago
11c8789
Fix an over-length source code comment in whereexpr.c. No logic changes.
by drh
· 4 years, 2 months ago
433a3e9
Back out the EXISTS-to-IN optimization. It slows things down rather than
by drh
· 4 years, 3 months ago
677e62a
Fix a problem with handling expressions like "(col IS NULL AND <expr1>) OR col == NULL" in WHERE clauses.
by dan
· 4 years, 3 months ago
28a314e
Do not do the EXISTS-to-IN transformation if the sub-select has LIMIT clause.
by dan
· 4 years, 4 months ago
2d7a691
Add #ifndef macros so that the build works again with
by drh
· 4 years, 5 months ago
15de3ce
Fix a segfault that could occur when optimizing a NOT NULL constraint against an IPK column of a sub-query.
by dan
· 4 years, 5 months ago
8ddf686
Attempt to optimize "x IS NULL" and "x IS NOT NULL" expressions when x is a column with a NOT NULL constraint.
by dan
· 4 years, 5 months ago
ifnull-opt
7601294
Rename the "struct SrcList_item" object to the more succinct "SrcItem".
by drh
· 4 years, 5 months ago
8729642
Fix harmless compiler warnings.
by drh
· 4 years, 5 months ago
71aff85
Performance optimizations in exprAnalyze()
by drh
· 4 years, 6 months ago
6cca0aa
Always enable the IS NOT NULL optimization, even if STAT4 is not enabled.
by drh
· 4 years, 6 months ago
06afa29
More comments on the EXISTS-to-IN optimization logic.
by drh
· 4 years, 6 months ago
exists-to-in
9fcc8c6
Minor simplification of the EXISTS-to-IN logic.
by drh
· 4 years, 6 months ago
9ffa258
Improved handling of vector equalities in the EXISTS-to-IN translator.
by drh
· 4 years, 6 months ago
4be8bdc
Give the EXISTS-to-IN optimization the ability to handle some cases that
by drh
· 4 years, 6 months ago
2a3be74
Add debugging output about the EXISTS-to-IN optimization when
by drh
· 4 years, 6 months ago
a828d56
Update header comments for routines added by this branch.
by dan
· 4 years, 6 months ago
Next »