Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
resolve.c
daa4cdf
Fix a minor comment inaccuracy.
by drh
· 11 hours ago
8c8443a
Small performance optimization in the resolver.
by drh
· 11 days ago
debc8f7
Minor tweaks to the exists-to-join optimization.
by drh
· 2 weeks ago
aa54d7a
Merge in the exists-to-join optimization that has been modified
by drh
· 2 weeks ago
733aff3
Fix PRAGMA trusted_schema=OFF and similar so that it restricts the kinds
by drh
· 2 months ago
cc28137
Internal doc typo fix. No code changes.
by stephan
· 2 months ago
cebf06c
Make use of the flexible-array feature of C99, when available, to try to
by drh
· 4 months ago
9d90a3a
Use the sqlite3ColumnIndex() routine to look up a column in a table, rather
by drh
· 5 months ago
d564bdb
Allow expressions with subtypes to be read from indexes unless they are being used as direct or indirect parameters to SQLITE_SUBTYPE functions.
by dan
· 10 months ago
7d24e6b
Remove an ALWAYS() that can sometimes be false, with wildly incorrect SQL
by drh
· 10 months ago
7f0e0c7
New assert()s to help verify union access. No logic changes. Testing and
by drh
· 10 months ago
f9eff90
Remove a term from an assert() that is no longer relevant.
by drh
· 11 months ago
58b08d7
Avoid a stack overflow that could be caused by a recursively defined WINDOW() with a strategically embedded error.
by dan
· 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
610a5ba
Fix the internal routine sqlite3ResolveExprListNames() so that it returns
by drh
· 11 months ago
5525ac1
Experimental optimization to rewrite a SELECT with an EXISTS(...) expression in the WHERE clause as a join.
by dan
· 1 year, 1 month ago
4703b7d
Better optimize queries that use parameters in the LIMIT clause.
by drh
· 1 year, 1 month ago
e3eefe0
Fix a very obscure issue where the name resolver could get confused if aliases like "sqlite_schema" or "sqlite_master" were used in a query involving the sqlite_temp_schema table.
by dan
· 1 year, 1 month ago
0462499
Fix the definition of sqlite3_vtab_distinct() such that return codes 2 and
by drh
· 1 year, 2 months ago
1550771
Fix a case where an error in the ORDER BY clause of an aggregate function that is part of a trigger body might cause an assert() to fail in an ALTER TABLE command.
by dan
· 1 year, 2 months ago
7281493
Avoid an assert failure accessible only when internal testing features are enabled. dbsqlfuzz crash-66abacda6bca6bd531e25595e8c8068e2c710326.txt.
by dan
· 1 year, 3 months ago
35b771e
Add comments linking the assert() added in [cef4d9e3ba586735] to the places
by drh
· 1 year, 3 months ago
b065ece
Ensure that temporary SrcItem objects created by trigger processing have
by drh
· 1 year, 3 months ago
5b613ed
Merge trunk testing enhancements into the pushdown-subquery branch.
by drh
· 1 year, 3 months ago
1152def
If SQLITE_ALLOW_ROWID_IN_VIEW is set to 2, then all rowids for views return
by drh
· 1 year, 3 months ago
de6a4be
Generalize pushdown to allow any uncorrelated subquery to be pushed down.
by drh
· 1 year, 3 months ago
36f01f2
Return the error "ambiguous column name: rowid", instead of "no such column: rowid", when a "rowid" reference is ambiguous.
by drh
· 1 year, 4 months ago
e9feb0a
In the name resolver when SQLITE_ALLOW_ROWID_IN_INDEX is enabled, if there
by drh
· 1 year, 4 months ago
a10c2a9
Return the error "ambiguous column name: rowid", instead of "no such column: rowid", when a "rowid" reference is ambiguous.
by dan
· 1 year, 4 months ago
ambiguous-rowid-error
61b77a6
The NOT NULL strength reduction optimization from [de9c86c9e4cdb34f] should
by drh
· 1 year, 4 months ago
3c5a810
If a term of an ORDER BY or GROUP BY contains an aggregate function or column,
by drh
· 1 year, 5 months ago
727b35c
Simplification of the error reporting logic.
by drh
· 1 year, 6 months ago
improved-dqs-error-msg
a67d63b
Improved error message when a double-quoted string is used and it seems likely
by drh
· 1 year, 6 months ago
60c435d
When unable to resolve an identifier, change the Expr node into TK_NULL
by drh
· 1 year, 7 months ago
3e4195c
Avoid invoking sqlite3ExprColUsage() on an unresolve column reference.
by drh
· 1 year, 7 months ago
792103a
In the previous check-in, use a u32 instead of an int, to make it easier to
by drh
· 1 year, 9 months ago
5e4233a
Fix a spurious "misuse of aggregate function" error that could occur when an aggregate function was used within the FROM clause of a sub-select of the select that owns the aggregate. e.g. "SELECT (SELECT x FROM (SELECT sum(t1.a) AS x)) FROM t1". [forum:/forumpost/c9970a37ed | Forum post c9970a37ed].
by dan
· 1 year, 9 months ago
81656b1
Fix PRAGMA integrity_check so that it does not raise an error if the
by drh
· 1 year, 9 months ago
20b95f8
Make sure all terms of the ORDER BY within an aggregate go through aggregate
by drh
· 1 year, 9 months ago
db19f48
Basic error checking. Resolve symbols in the aggregate ORDER BY expressions.
by drh
· 1 year, 9 months ago
a91fe45
Add a NEVER() to an unreachable branch.
by drh
· 1 year, 10 months ago
nested-from-rowid-expansion
2e8edc1
Further tests and assert() statements for the change on this branch.
by dan
· 1 year, 10 months ago
63702bc
Fix resolution of unqualified "rowid" identifiers in queries with nested joins.
by dan
· 1 year, 10 months ago
81b70d9
Allow expressions like "<tbl>.rowid" to refer to implicit rowid columns of tables in nested FROM clauses.
by dan
· 1 year, 10 months ago
f82c8cb
Avoid unnecessary NULL pointer checks on calls to sqlite3WalkExpr().
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
68e976b
Add ALWAYS() on a branch this is always true now due to [84417bbd144b2197].
by drh
· 2 years, 4 months ago
ffcad58
Disallow the one-pass optimization for DELETE if the WHERE clause contains
by drh
· 2 years, 4 months ago
0433789
When it is known when preparing a statement that X cannot be NULL, transform the expression (X IS NULL) to integer value 1 instead of 'true'. This is because under some circumstances, "Y IS TRUE" may not be equivalent to "Y IS 1".
by dan
· 2 years, 5 months ago
2dd3b64
Improved and simplified logic for resolving the various aliases of the schema
by drh
· 2 years, 6 months ago
6f31eac
Resolve all possible aliases and variations of the schema table names.
by drh
· 2 years, 6 months ago
475e76d
In expression nodes of type REGISTER with sub-type COLUMN, ensure that the
by drh
· 2 years, 6 months ago
9553016
Make use of the sqlite3ExprDeferredDelete() interface in the previous
by drh
· 3 years ago
3245f3b
Simplify the logic that converts the "1" expression in "ORDER BY 1" into a
by drh
· 3 years ago
07fae32
Fix harmless compiler warnings seen with MSVC.
by mistachkin
· 3 years ago
b9294de
Allow a HAVING clause on any aggregate query, even if there is no GROUP BY
by drh
· 3 years, 1 month 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
45e41b7
Add the ability to access the USING columns of the right or left tables
by drh
· 3 years, 3 months ago
18f8600
Avoid materializing columns of SF_NestedFrom subqueries that are never used.
by drh
· 3 years, 3 months ago
910e57b
Remove an unnecessary assignment operation.
by drh
· 3 years, 3 months ago
815b782
Improved tracking of nested SELECT objects used to implement
by drh
· 3 years, 3 months ago
2627cbd
Add a new comment to the body of lookupName(). No code changes.
by drh
· 3 years, 3 months ago
2e61588
Remove unnecessary cases for the resolver.
by drh
· 3 years, 3 months ago
79a25ee
Fix to the coalesce() function generation in the resolver.
by drh
· 3 years, 3 months ago
a3e2518
Fix to the logic that computes coalesc() functions to resolve USING terms.
by drh
· 3 years, 3 months ago
fe14699
Further improvements to USING() processing for RIGHT and FULL JOINs. All
by drh
· 3 years, 3 months ago
977eef6
New test cases. One of the new test cases shows a flaw in the base design
by drh
· 3 years, 3 months ago
bdbda1e
RIGHT JOIN USING now appears to work the same as PG-14. Legacy tests pass.
by drh
· 3 years, 3 months ago
e62d914
Avoid deleting substructure of the Expr node in lookupName() until after
by drh
· 3 years, 3 months ago
right-join-using
bb3c62a
Progress toward a working USING for FULL JOIN.
by drh
· 3 years, 3 months ago
22c4bc8
The sqlite3ProcessJoin() routine converts a NATURAL JOIN into a JOIN USING so
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
62fc069
Further improvements to localization of errors in input SQL.
by drh
· 3 years, 5 months ago
4f77c92
Enhance sqlite3_error_offset() to report the position of unresolved identifiers.
by drh
· 3 years, 5 months ago
7f1c111
Minor typo fix in comment. No code changes.
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
41584df
Ensure that the affinity of columns is honored in the RETURNING clause.
by drh
· 3 years, 7 months ago
ceeb04b
Raise an error if a schema name is attached to the table-alias name of a
by drh
· 3 years, 7 months ago
90cf38b
Refactor the code that figures out which SELECT in a cascade of nested queries
by drh
· 3 years, 8 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
84d9031
Dbsqlfuzz (a097eaad43c3c845b236126df92fb49b25449b0c) found a way to reach the
by drh
· 3 years, 10 months ago
cf9d36d
Refactor field names in the Column object, zCnName and zCnColl, to make them
by drh
· 4 years ago
348e002
One of the optimizations of check-in [de9c86c9e4cdb34f] does not work for
by drh
· 4 years ago
ee612e2
Minor comment improvements.
by drh
· 4 years ago
omit-subquery-order-by
bb30123
Attempt to omit ORDER BY clauses from FROM-clause subqueries if those ORDER BY
by drh
· 4 years ago
dd51365
Put ALWAYS() on a branch that is always true due to [d4097364c511709b].
by drh
· 4 years, 1 month ago
4d46669
Fix a harmless assertion fault discovered by
by drh
· 4 years, 1 month ago
b9248ef
Allow unqualified "rowid" references to be used in join queries, provided that only one of the source objects has a rowid.
by dan
· 4 years, 1 month ago
b56a090
Fix a problem with running ALTER TABLE against schemas that contain compound SELECT statements with ORDER BY clauses containing one or more references to the second or subsequent component SELECT statements.
by dan
· 4 years, 2 months ago
be12083
Fix problems with refering to CTEs from within sub-selects in PARTITION BY or ORDER BY clauses of window frame definitions. Also a problem with renaming a column when the schema contains a trigger containing a correlated sub-select within a window frames PARTITION BY or ORDER BY clause.
by dan
· 4 years, 2 months ago
feef447
Add ALWAYS() to branches that are no longer reachable due to recent
by drh
· 4 years, 3 months ago
3c6edc8
More aggressive detection of OOM errors in resolveAlias().
by drh
· 4 years, 3 months ago
de0e1b1
Performance optimizations in the code generator, especially in name resolution.
by drh
· 4 years, 3 months ago
9920bf9
Add an assert() to show that the SF_Resolved flag does not get set if
by drh
· 4 years, 3 months ago
d487e37
Fix a segfault that could occur if the ORDER BY clause of a compound SELECT contains a sub-select that uses one or more window functions.
by dan
· 4 years, 3 months ago
Next »