Simplify the Expr compression logic slightly by adding the new EP_FullSize

property to expressions that are exceptions to the rule and should not be
compressed.

FossilOrigin-Name: d5ae82ec52eafed5e3dc8c9d99685f6523fce7d973ef7e8d9d75ed9b8912426a
This commit is contained in:
drh
2023-10-19 18:07:58 +00:00
parent 0588385799
commit 4e254641ff
5 changed files with 15 additions and 16 deletions
+2 -1
View File
@@ -1312,8 +1312,9 @@ void sqlite3WindowAttach(Parse *pParse, Expr *p, Window *pWin){
if( p ){
assert( p->op==TK_FUNCTION );
assert( pWin );
assert( ExprIsFullSize(p) );
p->y.pWin = pWin;
ExprSetProperty(p, EP_WinFunc);
ExprSetProperty(p, EP_WinFunc|EP_FullSize);
pWin->pOwner = p;
if( (p->flags & EP_Distinct) && pWin->eFrmType!=TK_FILTER ){
sqlite3ErrorMsg(pParse,