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);
97422 if( sqlite3WalkExpr(pWalker, p->pLimit) ) return WRC_Abort;
99094 if( sqlite3ResolveExprNames(&sNC, p->pLimit) ){
100210 heightOfExpr(p->pLimit, pnHeight);
101090 pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags);
101878 if( p->pLimit ) return 0; /* Has no LIMIT clause */
102518 Expr *pLimit; /* New limit expression */
102584 if( pSel->pLimit ){
102588 pLimit = sqlite3Expr(db, TK_INTEGER, "0");
102589 if( pLimit ){
102590 pLimit->affExpr = SQLITE_AFF_NUMERIC;
102591 pLimit = sqlite3PExpr(pParse, TK_NE,
102592 sqlite3ExprDup(db, pSel->pLimit->pLeft, 0), pLimit);
102594 sqlite3ExprDelete(db, pSel->pLimit->pLeft);
102595 pSel->pLimit->pLeft = pLimit;
102598 pLimit = sqlite3Expr(pParse->db, TK_INTEGER, "1");
102599 pSel->pLimit = sqlite3PExpr(pParse, TK_LIMIT, pLimit, 0);
109755 if( sqlite3FixExpr(pFix, pSelect->pLimit) ){
115869 Expr *pLimit, /* Optional LIMIT clause */
115887 SF_IncludeHidden, pLimit);
115908 Expr *pLimit, /* The LIMIT clause. May be null */
115921 if( pOrderBy && pLimit==0 ) {
115931 if( pLimit == 0 ) {
115978 pOrderBy,0,pLimit
116001 Expr *pLimit /* LIMIT clause. May be null */
116074 pParse, pTabList, pWhere, pOrderBy, pLimit, "DELETE"
116077 pLimit = 0;
116129 pWhere, pOrderBy, pLimit, iTabCur
116133 pLimit = 0;
116387 sqlite3ExprDelete(db, pLimit);
122817 if( pSelect->pLimit ){
129036 sqlite3ExprDelete(db, p->pLimit);
129074 Expr *pLimit /* LIMIT value. NULL means not used */
129104 pNew->pLimit = pLimit;
131115 Expr *pLimit = p->pLimit;
131125 if( pLimit ){
131126 assert( pLimit->op==TK_LIMIT );
131127 assert( pLimit->pLeft!=0 );
131131 if( sqlite3ExprIsInteger(pLimit->pLeft, &n) ){
131141 sqlite3ExprCode(pParse, pLimit->pLeft, iLimit);
131146 if( pLimit->pRight ){
131149 sqlite3ExprCode(pParse, pLimit->pRight, iOffset);
131279 Expr *pLimit; /* Saved LIMIT and OFFSET */
131296 pLimit = p->pLimit;
131299 p->pLimit = 0;
131393 p->pLimit = pLimit;
131428 int bShowAll = p->pLimit==0;
131505 if( pPrior->pOrderBy || pPrior->pLimit ){
131562 assert( !pPrior->pLimit );
131565 pPrior->pLimit = p->pLimit;
131567 p->pLimit = 0;
131588 if( pPrior->pLimit
131589 && sqlite3ExprIsInteger(pPrior->pLimit->pLeft, &nLimit)
131604 Expr *pLimit; /* Saved values of p->nLimit */
131615 assert( p->pLimit==0 ); /* Not allowed on leftward elements */
131648 pLimit = p->pLimit;
131649 p->pLimit = 0;
131662 sqlite3ExprDelete(db, p->pLimit);
131663 p->pLimit = pLimit;
131691 Expr *pLimit;
131724 pLimit = p->pLimit;
131725 p->pLimit = 0;
131736 sqlite3ExprDelete(db, p->pLimit);
131737 p->pLimit = pLimit;
132219 sqlite3ExprDelete(db, p->pLimit);
132220 p->pLimit = 0;
132753 if( pSub->pLimit && p->pLimit ) return 0; /* Restriction (13) */
132754 if( pSub->pLimit && pSub->pLimit->pRight ) return 0; /* Restriction (14) */
132755 if( (p->selFlags & SF_Compound)!=0 && pSub->pLimit ){
132760 if( pSub->pLimit && (pSrc->nSrc>1 || isAgg) ){
132767 if( pSub->pLimit && p->pWhere ) return 0; /* Restriction (19) */
132768 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
132907 Expr *pLimit = p->pLimit;
132912 p->pLimit = 0;
132914 p->pLimit = pLimit;
133088 if( pSub->pLimit ){
133089 pParent->pLimit = pSub->pLimit;
133090 pSub->pLimit = 0;
133385 if( pSubq->pLimit!=0 ){
133602 pNew->pLimit = 0;
134615 if( pSub->pLimit ) return 0; /* No LIMIT clause */
137319 Expr *pLimit, /* LIMIT clause. May be null */
137410 pParse, pTabList, pWhere, pOrderBy, pLimit, "UPDATE"
137413 pLimit = 0;
137638 pWhere, pOrderBy, pLimit, iDataCur
137641 pLimit = 0;
138088 sqlite3ExprDelete(db, pLimit);