Home | History | Annotate | Download | only in dist

Lines Matching defs:pLimit

11703   Expr *pLimit;          /* LIMIT expression. NULL means not used. */
76716 if( sqlite3WalkExpr(pWalker, p->pLimit) ) return WRC_Abort;
77957 if( sqlite3ResolveExprNames(&sNC, p->pLimit) ||
78589 heightOfExpr(p->pLimit, pnHeight);
79309 pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags);
79700 if( p->pLimit ) return 0; /* Has no LIMIT clause */
80168 sqlite3ExprDelete(pParse->db, pSel->pLimit);
80169 pSel->pLimit = sqlite3PExpr(pParse, TK_INTEGER, 0, 0,
85787 if( sqlite3FixExpr(pFix, pSelect->pLimit) ){
90982 Expr *pLimit, /* The LIMIT clause. May be null */
90995 if( pOrderBy && (pLimit == 0) ) {
91003 if( pLimit == 0 ) {
91004 /* if pLimit is null, pOffset will always be null as well. */
91033 pOrderBy,0,pLimit,pOffset);
91055 sqlite3ExprDelete(pParse->db, pLimit);
96624 if( pSelect->pLimit ){
96627 assert( pSelect->pOffset==0 ); /* Must be so if pLimit==0 */
101527 sqlite3ExprDelete(db, p->pLimit);
101557 Expr *pLimit, /* LIMIT value. NULL means not used */
101564 assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */
101582 pNew->pLimit = pLimit;
101584 assert( pOffset==0 || pLimit!=0 );
103189 ** pLimit and pOffset expressions. pLimit and pOffset hold the expressions
103197 ** a limit or offset is defined by pLimit and pOffset. iLimit and
103205 ** Only if pLimit!=0 or pOffset!=0 do the limit registers get
103224 assert( p->pOffset==0 || p->pLimit!=0 );
103225 if( p->pLimit ){
103229 if( sqlite3ExprIsInteger(p->pLimit, &n) ){
103238 sqlite3ExprCode(pParse, p->pLimit, iLimit);
103379 Expr *pLimit, *pOffset; /* Saved LIMIT and OFFSET */
103388 pLimit = p->pLimit;
103392 p->pLimit = p->pOffset = 0;
103480 p->pLimit = pLimit;
103555 if( pPrior->pLimit ){
103607 assert( !pPrior->pLimit );
103610 pPrior->pLimit = p->pLimit;
103614 p->pLimit = 0;
103632 if( pPrior->pLimit
103633 && sqlite3ExprIsInteger(pPrior->pLimit, &nLimit)
103648 Expr *pLimit, *pOffset; /* Saved values of p->nLimit and p->nOffset */
103659 assert( p->pLimit==0 ); /* Not allowed on leftward elements */
103694 pLimit = p->pLimit;
103695 p->pLimit = 0;
103709 sqlite3ExprDelete(db, p->pLimit);
103710 p->pLimit = pLimit;
103744 pLimit, *pOffset;
103778 pLimit = p->pLimit;
103779 p->pLimit = 0;
103789 sqlite3ExprDelete(db, p->pLimit);
103790 p->pLimit = pLimit;
104272 sqlite3ExprDelete(db, p->pLimit);
104273 p->pLimit = 0;
104686 if( pSub->pLimit && p->pLimit ) return 0; /* Restriction (13) */
104688 if( (p->selFlags & SF_Compound)!=0 && pSub->pLimit ){
104693 if( pSub->pLimit && (pSrc->nSrc>1 || isAgg) ){
104703 if( pSub->pLimit && p->pWhere ) return 0; /* Restriction (19) */
104704 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
104825 Expr *pLimit = p->pLimit;
104831 p->pLimit = 0;
104835 p->pLimit = pLimit;
105011 if( pSub->pLimit ){
105012 pParent->pLimit = pSub->pLimit;
105013 pSub->pLimit = 0;
105189 pNew->pLimit = 0;
106847 if( p->pLimit ){
106849 sqlite3ExplainExpr(pVdbe, p->pLimit);
117500 Expr *pLimit; /* The LIMIT expression. NULL if there is no limit */
119899 yygotominor.yy3 = sqlite3SelectNew(pParse,yymsp[-6].minor.yy14,yymsp[-5].minor.yy65,yymsp[-4].minor.yy132,yymsp[-3].minor.yy14,yymsp[-2].minor.yy132,yymsp[-1].minor.yy14,yymsp[-7].minor.yy381,yymsp[0].minor.yy476.pLimit,yymsp[0].minor.yy476.pOffset);
120083 {yygotominor.yy476.pLimit = 0; yygotominor.yy476.pOffset = 0;}
120086 {yygotominor.yy476.pLimit = yymsp[0].minor.yy346.pExpr; yygotominor.yy476.pOffset = 0;}
120089 {yygotominor.yy476.pLimit = yymsp[-2].minor.yy346.pExpr; yygotominor.yy476.pOffset = yymsp[0].minor.yy346.pExpr;}
120092 {yygotominor.yy476.pOffset = yymsp[-2].minor.yy346.pExpr; yygotominor.yy476.pLimit = yymsp[0].minor.yy346.pExpr;}