• Home
  • Raw
  • Download

Lines Matching refs:pLimit

18435   Expr *pLimit;          /* LIMIT expression. NULL means not used. */  member
29614 if( p->pLimit ) n++;
29667 if( p->pLimit ){
29669 sqlite3TreeViewExpr(pView, p->pLimit->pLeft, p->pLimit->pRight!=0);
29670 if( p->pLimit->pRight ){
29672 sqlite3TreeViewExpr(pView, p->pLimit->pRight, 0);
97438 if( sqlite3WalkExpr(pWalker, p->pLimit) ) return WRC_Abort;
99110 if( sqlite3ResolveExprNames(&sNC, p->pLimit) ){
100226 heightOfExpr(p->pLimit, pnHeight);
101106 pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags);
101894 if( p->pLimit ) return 0; /* Has no LIMIT clause */
102534 Expr *pLimit; /* New limit expression */
102600 if( pSel->pLimit ){
102604 pLimit = sqlite3Expr(db, TK_INTEGER, "0");
102605 if( pLimit ){
102606 pLimit->affExpr = SQLITE_AFF_NUMERIC;
102607 pLimit = sqlite3PExpr(pParse, TK_NE,
102608 sqlite3ExprDup(db, pSel->pLimit->pLeft, 0), pLimit);
102610 sqlite3ExprDelete(db, pSel->pLimit->pLeft);
102611 pSel->pLimit->pLeft = pLimit;
102614 pLimit = sqlite3Expr(pParse->db, TK_INTEGER, "1");
102615 pSel->pLimit = sqlite3PExpr(pParse, TK_LIMIT, pLimit, 0);
109771 if( sqlite3FixExpr(pFix, pSelect->pLimit) ){
115885 Expr *pLimit, /* Optional LIMIT clause */
115903 SF_IncludeHidden, pLimit);
115924 Expr *pLimit, /* The LIMIT clause. May be null */
115937 if( pOrderBy && pLimit==0 ) {
115947 if( pLimit == 0 ) {
115994 pOrderBy,0,pLimit
116017 Expr *pLimit /* LIMIT clause. May be null */
116090 pParse, pTabList, pWhere, pOrderBy, pLimit, "DELETE"
116093 pLimit = 0;
116145 pWhere, pOrderBy, pLimit, iTabCur
116149 pLimit = 0;
116403 sqlite3ExprDelete(db, pLimit);
122833 if( pSelect->pLimit ){
129052 sqlite3ExprDelete(db, p->pLimit);
129090 Expr *pLimit /* LIMIT value. NULL means not used */
129120 pNew->pLimit = pLimit;
131131 Expr *pLimit = p->pLimit;
131141 if( pLimit ){
131142 assert( pLimit->op==TK_LIMIT );
131143 assert( pLimit->pLeft!=0 );
131147 if( sqlite3ExprIsInteger(pLimit->pLeft, &n) ){
131157 sqlite3ExprCode(pParse, pLimit->pLeft, iLimit);
131162 if( pLimit->pRight ){
131165 sqlite3ExprCode(pParse, pLimit->pRight, iOffset);
131295 Expr *pLimit; /* Saved LIMIT and OFFSET */
131312 pLimit = p->pLimit;
131315 p->pLimit = 0;
131409 p->pLimit = pLimit;
131444 int bShowAll = p->pLimit==0;
131521 if( pPrior->pOrderBy || pPrior->pLimit ){
131578 assert( !pPrior->pLimit );
131581 pPrior->pLimit = p->pLimit;
131583 p->pLimit = 0;
131604 if( pPrior->pLimit
131605 && sqlite3ExprIsInteger(pPrior->pLimit->pLeft, &nLimit)
131620 Expr *pLimit; /* Saved values of p->nLimit */
131631 assert( p->pLimit==0 ); /* Not allowed on leftward elements */
131664 pLimit = p->pLimit;
131665 p->pLimit = 0;
131678 sqlite3ExprDelete(db, p->pLimit);
131679 p->pLimit = pLimit;
131707 Expr *pLimit;
131740 pLimit = p->pLimit;
131741 p->pLimit = 0;
131752 sqlite3ExprDelete(db, p->pLimit);
131753 p->pLimit = pLimit;
132235 sqlite3ExprDelete(db, p->pLimit);
132236 p->pLimit = 0;
132769 if( pSub->pLimit && p->pLimit ) return 0; /* Restriction (13) */
132770 if( pSub->pLimit && pSub->pLimit->pRight ) return 0; /* Restriction (14) */
132771 if( (p->selFlags & SF_Compound)!=0 && pSub->pLimit ){
132776 if( pSub->pLimit && (pSrc->nSrc>1 || isAgg) ){
132783 if( pSub->pLimit && p->pWhere ) return 0; /* Restriction (19) */
132784 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
132923 Expr *pLimit = p->pLimit;
132928 p->pLimit = 0;
132930 p->pLimit = pLimit;
133104 if( pSub->pLimit ){
133105 pParent->pLimit = pSub->pLimit;
133106 pSub->pLimit = 0;
133401 if( pSubq->pLimit!=0 ){
133618 pNew->pLimit = 0;
134631 if( pSub->pLimit ) return 0; /* No LIMIT clause */
137335 Expr *pLimit, /* LIMIT clause. May be null */
137426 pParse, pTabList, pWhere, pOrderBy, pLimit, "UPDATE"
137429 pLimit = 0;
137654 pWhere, pOrderBy, pLimit, iDataCur
137657 pLimit = 0;
138104 sqlite3ExprDelete(db, pLimit);