Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
window.c
ce25007
Detect when a UNIQUE or PRIMARY KEY on a WITHOUT ROWID table would need
by drh
· 5 months ago
35d302c
Increase the maximum number of arguments on an SQL function to 1000 with the
by drh
· 7 months ago
c87d7be
Fix a problem with window functions min() and max() when used with a FILTER clause. Forum post [forum:/forumpost/e9126d554a | e9126d554a].
by dan
· 8 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
f696591
Enhance the sqlite3ExprIsConstant() function so that it recognizes
by drh
· 1 year, 4 months ago
194b8d5
Omit the new SQLITE_VALUE_SUBTYPE name. Stay with legacy SQLTIE_SUBTYPE.
by drh
· 1 year, 8 months ago
243f2ec
Make a distinction between functions that consume subtypes and functions
by drh
· 1 year, 8 months ago
4e25464
Simplify the Expr compression logic slightly by adding the new EP_FullSize
by drh
· 1 year, 9 months ago
55be216
Fix straggler misspellings and tidy the custom dictionary. Also include pickups from [forum:/info/c61fb09afd|forum post c61fb09afd].
by larrybr
· 2 years, 1 month ago
spell-check
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
017bdf7
Fix a code-generator issue associated with very unusual use of window
by drh
· 2 years, 3 months ago
05a377f
Do not assume that sub-queries that contain window functions are uncorrelated.
by dan
· 2 years, 6 months ago
d2467a8
If OP_Rewind has P2 of zero, that is an assertion that the table is never
by drh
· 2 years, 6 months ago
code-generator-20230111
5d7aef1
Rename the SELECTTRACE macro to TREETRACE, so that is corresponds to the new
by drh
· 2 years, 8 months ago
3b01dd0
Restore a VDBE coverage macro that is mistakenly deleted for
by drh
· 3 years ago
058e995
Small performance increase and size reduction by splitting out the
by drh
· 3 years ago
825fa17
Omit the EP_MemToken flag that was made obsolete by [e1f1cfe7f4387b60], for
by drh
· 3 years ago
d88fd53
Organize the various flag bits of the ExprList_item object into a substructure
by drh
· 3 years, 3 months ago
41150bf
Fix a problem with using multiple SQLITE_SUBTYPE function as window functions in a single query.
by dan
· 3 years, 3 months ago
fde3043
Stronger defenses against corrupt schemas in the ALTER TABLE logic.
by drh
· 3 years, 4 months ago
5e121a5
Prevent a NULL-pointer dereference when trying to parse a illegal
by drh
· 3 years, 4 months ago
105dcaa
Refactor Window.pFunc into Window.pWFunc to disambiguate from other uses of
by drh
· 3 years, 4 months ago
1da88b5
Add ALWAYS() macros. Change some existing ALWAYS() into assert(). Other
by drh
· 3 years, 6 months ago
6d64b4a
Ensure that the window function rewrite does not leave the parse tree
by drh
· 3 years, 8 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
1580d50
Add const to parameters on various internal interfaces.
by drh
· 3 years, 10 months ago
82456a6
Add assert() statements to refute
by drh
· 3 years, 10 months ago
bb30123
Attempt to omit ORDER BY clauses from FROM-clause subqueries if those ORDER BY
by drh
· 4 years ago
a261c02
Fix a problem handling ORDER BY terms of the form "ORDER BY likely(<integer>)" within window frames.
by dan
· 4 years, 1 month ago
14c4d42
Take care that the code is not generated for the same Select object more
by drh
· 4 years, 2 months ago
3d691fd
Allow aggregate sub-selects within ORDER BY and PARTITION BY clauses of window frame definitions.
by dan
· 4 years, 2 months ago
4752bbd
Detect misuse of aggregate functions in the ORDER BY clause of a query
by drh
· 4 years, 2 months ago
79f313f
Adjust a VDBE coverage macros due to the enhancement at [506333742103c1f4].
by drh
· 4 years, 3 months ago
113a33c
Make window range queries more robust against corrupt database files.
by drh
· 4 years, 3 months ago
5a9fd23
Restructure a loop in window.c to avoid hitting an assert() following an OOM. dbsqlfuzz test case 6ef74a9659de87e9be3d8694ad062c448aa7ef1d.
by dan
· 4 years, 3 months ago
d22ecfd
Earlier detection of OOM errors during window function processing.
by drh
· 4 years, 4 months ago
4c4a257
Earlier detection and handling of OOM problems.
by drh
· 4 years, 4 months ago
6b6ec40
Do not allow floating point rounding errors to cause a window function xInverse() function to be invoked before the corresponding xStep() call.
by dan
· 4 years, 4 months ago
57f9018
Improved robustness to OOM conditions in the window function logic.
by drh
· 4 years, 4 months ago
b03786a
Ensure that negative numbers may not be used in frame offset clauses even if they are initially text value. e.g. (RANGE BETWEEN '-1' PRECEDING ...).
by dan
· 4 years, 4 months ago
7f8653a
Ensure the correct collation sequence is used for comparisons when delimiting a RANGE window.
by dan
· 4 years, 5 months ago
903fdd4
Allow WHERE terms to be pushed down into sub-queries that contain window functions, provided that the WHERE term is made up of entirely of constants and copies of expressions found in the PARTITION BY clauses of all window functions in the sub-query.
by dan
· 4 years, 5 months ago
08b9208
Fix harmless compiler warnings that surface in newer versions of GCC.
by drh
· 5 years ago
27da907
Fix a problem causing queries containing window functions to ignore collation sequences under some circumstances.
by dan
· 5 years ago
6af305d
Remove unnecessary code from the window functions implementation.
by drh
· 5 years ago
067b92b
Extend the refactoring into extensions. Clean up stray newlines.
by drh
· 5 years ago
9216de8
Provide the ability to use the SELECTTRACE() debugging macro outside of the
by drh
· 5 years ago
8963662
Alternative fix to ticket [c8d3b9f0a750a529]: Prior to deleting or modifying
by drh
· 5 years ago
c37577b
When rewriting a query for window functions, if the rewrite changes the
by drh
· 5 years ago
efa7888
Fix a problem handling constant integer expressions with collation sequences in PARTITION BY clauses.
by dan
· 5 years ago
553948e
Fix handling of window functions in aggregate queries that have no GROUP BY clause. Also remove a faulty assert causing the error reported in [618156e3].
by dan
· 5 years ago
0a21ea9
Fix a problem with window functions occuring within sub-selects that are part of an OR term in a WHERE clause of the outer SELECT.
by dan
· 5 years ago
fbb6e9f
Fix an assert() in window.c that could fail with some obscure SELECT statements that use window functions.
by dan
· 6 years ago
4ea562e
Ensure that when code for a scalar SELECT featuring window functions is generated more than once by the planner, separate ephemeral tables are opened for each instance.
by dan
· 6 years ago
4317043
Fix a problem with window functions in aggregate queries that do not have GROUP BY clauses.
by dan
· 6 years ago
d8d2fb9
Do not mistake constant integers in a PARTITION BY expression for references to ORDER BY style references to values returned by the SELECT statement.
by dan
· 6 years ago
a9ebfe2
When the sqlite3WindowRewrite() routine detects and error, have it convert
by drh
· 6 years ago
8654186
When an error occurs while rewriting the parser tree for window functions
by drh
· 6 years ago
75e95e1
When processing constant integer values in ORDER BY clauses of window
by drh
· 6 years ago
a2f142d
Abort the window function tree rewrite early following an OOM.
by drh
· 6 years ago
62be2dc
Avoid evaluating PARTITION BY or ORDER BY expressions multiple times for window function queries that use multiple window functions with the same window-definition.
by dan
· 6 years ago
47bcc34
Fix a potential NULL pointer dereference on a RENAME TABLE that references
by drh
· 6 years ago
ba01634
Ensure that the same subquery does not go through the window-function rewrite
by drh
· 6 years ago
b19131a
Add a missing VdbeCoverage() macro.
by drh
· 6 years ago
2829df0
Remove an unused variable.
by drh
· 6 years ago
e7579a5
Further simplifications to window-function code.
by dan
· 6 years ago
c5b35ae
Simplifications to the window-function code.
by drh
· 6 years ago
37d296a
Bug fixes for window frames of the form (... RANGE BETWEEN b PRECEDING AND a PRECEDING) or (... RANGE a FOLLOWING AND b FOLLOWING) where (a > b).
by dan
· 6 years ago
5776ee5
Omit the sqlite3IntTokens array constant for a code simplification.
by drh
· 6 years ago
b42eb35
Fix a problem with processing CTEs that use a WINDOW clause.
by dan
· 6 years ago
51a75aa
Fix a problem with using json1 window functions with an EXCLUDE clause.
by dan
· 6 years ago
01a3b6b
Change the meaning of the SQLITE_SUBTYPE flag so that it indicates that the user-defined function cares about the subtypes of its arguments.
by dan
· 6 years ago
window-functions-subtype-fix2
e2ba6df
Add the SQLITE_SUBTYPE flag, which can be passed to sqlite3_create_function() and similar to indicate to the core that a user function is likely to use sqlite3_result_subtype().
by dan
· 6 years ago
1a97c41
Fix handling of NULL, text and blob values in window queries that use "RANGE BETWEEN A FOLLOWING AND B FOLLOWING", or "B PRECEDING AND A PRECEDING", where A>B.
by dan
· 6 years ago
9889ede
Add test case to window8.test. Also fix an error in a comment in window.c.
by dan
· 6 years ago
db3a32e
Back out the change at [47cd634c98b502d4] which was incorrect. Add a test
by drh
· 6 years ago
1cac176
Add further comments to window.c.
by dan
· 6 years ago
8b47f52
Fix a bug in RANGE window functions that use "ORDER BY <expr> DESC NULLS FIRST" as the window-frame ORDER BY clause.
by dan
· 6 years ago
f76ccb7
Remove an unreachable branch in the NULLS LAST logic of RANGE window functions.
by drh
· 6 years ago
f236b21
Add missing VdbeCoverage() macros to new code.
by dan
· 6 years ago
ae8e45c
Fix problems with window frames that use ORDER BY ... NULLS LAST etc.
by dan
· 6 years ago
5b32bdf
Merge trunk changes into this branch.
by dan
· 6 years ago
a3fcc00
Ensure that SQLite does not attempt to process incompatible window functions in a single scan. Fix for [256741a1].
by dan
· 6 years ago
6e11892
Experimental implementation of NULLS FIRST/LAST. This branch still has problems - the most significant of which is that ORDER BY clauses with a non-default NULLS FIRST/LAST qualifier can never use an index.
by dan
· 6 years ago
0e3c50c
Eliminate some more cases of redundant sorting in window-function queries.
by dan
· 6 years ago
96fb16e
Use 0x40 (ASCII '@') instead of 0x00 to mean "no affinity" so that columns
by drh
· 6 years ago
2046a77
Fix the patch on this branch so that it works with sub-queries, as well as views.
by dan
· 6 years ago
81506b8
One of two options on how to address ticket [61c853857f40da49]. In this
by drh
· 6 years ago
e209457
Consolidate the removal of Window objects from the Select.pWin list into
by drh
· 6 years ago
75b0821
Remove Window objects from the corresponding Select.pWin list when they are deleted.
by dan
· 6 years ago
winfunc-in-orderby
b555b08
Fix a new problem in the BETWEEN operator when applied to a window function.
by drh
· 6 years ago
55f66b3
Add new assert() statements in an attempt to help static analyzers avoid
by drh
· 6 years ago
4f9adee
Rework the FILTER clause implementation to share more code with window functions.
by dan
· 6 years ago
filter-clause
648d629
Merge latest trunk changes into this branch.
by dan
· 6 years ago
62742fd
Ensure collation sequences and affinities work in window function queries. Fix for [9ece23d2].
by dan
· 6 years ago
6ba7ab0
Experimental implementation of FILTER clause for aggregate functions.
by dan
· 6 years ago
08f6de7
Treat integer values in window definition ORDER BY clauses as constants, not as references to another expression.
by dan
· 6 years ago
Next »