Home | History | Annotate | Download | only in orig

Lines Matching defs:pLimit

11703   Expr *pLimit;          /* LIMIT expression. NULL means not used. */
76696 if( sqlite3WalkExpr(pWalker, p->pLimit) ) return WRC_Abort;
77937 if( sqlite3ResolveExprNames(&sNC, p->pLimit) ||
78569 heightOfExpr(p->pLimit, pnHeight);
79289 pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags);
79680 if( p->pLimit ) return 0; /* Has no LIMIT clause */
80148 sqlite3ExprDelete(pParse->db, pSel->pLimit);
80149 pSel->pLimit = sqlite3PExpr(pParse, TK_INTEGER, 0, 0,
85767 if( sqlite3FixExpr(pFix, pSelect->pLimit) ){
90962 Expr *pLimit, /* The LIMIT clause. May be null */
90975 if( pOrderBy && (pLimit == 0) ) {
90983 if( pLimit == 0 ) {
90984 /* if pLimit is null, pOffset will always be null as well. */
91013 pOrderBy,0,pLimit,pOffset);
91035 sqlite3ExprDelete(pParse->db, pLimit);
96604 if( pSelect->pLimit ){
96607 assert( pSelect->pOffset==0 ); /* Must be so if pLimit==0 */
101507 sqlite3ExprDelete(db, p->pLimit);
101537 Expr *pLimit, /* LIMIT value. NULL means not used */
101544 assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */
101562 pNew->pLimit = pLimit;
101564 assert( pOffset==0 || pLimit!=0 );
103169 ** pLimit and pOffset expressions. pLimit and pOffset hold the expressions
103177 ** a limit or offset is defined by pLimit and pOffset. iLimit and
103185 ** Only if pLimit!=0 or pOffset!=0 do the limit registers get
103204 assert( p->pOffset==0 || p->pLimit!=0 );
103205 if( p->pLimit ){
103209 if( sqlite3ExprIsInteger(p->pLimit, &n) ){
103218 sqlite3ExprCode(pParse, p->pLimit, iLimit);
103359 Expr *pLimit, *pOffset; /* Saved LIMIT and OFFSET */
103368 pLimit = p->pLimit;
103372 p->pLimit = p->pOffset = 0;
103460 p->pLimit = pLimit;
103535 if( pPrior->pLimit ){
103587 assert( !pPrior->pLimit );
103590 pPrior->pLimit = p->pLimit;
103594 p->pLimit = 0;
103612 if( pPrior->pLimit
103613 && sqlite3ExprIsInteger(pPrior->pLimit, &nLimit)
103628 Expr *pLimit, *pOffset; /* Saved values of p->nLimit and p->nOffset */
103639 assert( p->pLimit==0 ); /* Not allowed on leftward elements */
103674 pLimit = p->pLimit;
103675 p->pLimit = 0;
103689 sqlite3ExprDelete(db, p->pLimit);
103690 p->pLimit = pLimit;
103724 Expr *pLimit, *pOffset;
103758 pLimit = p->pLimit;
103759 p->pLimit = 0;
103769 sqlite3ExprDelete(db, p->pLimit);
103770 p->pLimit = pLimit;
104252 sqlite3ExprDelete(db, p->pLimit);
104253 p->pLimit = 0;
104666 if( pSub->pLimit && p->pLimit ) return 0; /* Restriction (13) */
104668 if( (p->selFlags & SF_Compound)!=0 && pSub->pLimit ){
104673 if( pSub->pLimit && (pSrc->nSrc>1 || isAgg) ){
104683 if( pSub->pLimit && p->pWhere ) return 0; /* Restriction (19) */
104684 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
104805 Expr *pLimit = p->pLimit;
104811 p->pLimit = 0;
104815 p->pLimit = pLimit;
104991 if( pSub->pLimit ){
104992 pParent->pLimit = pSub->pLimit;
104993 pSub->pLimit = 0;
105169 pNew->pLimit = 0;
106827 if( p->pLimit ){
106829 sqlite3ExplainExpr(pVdbe, p->pLimit);
117480 Expr *pLimit; /* The LIMIT expression. NULL if there is no limit */
119879 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);
120063 {yygotominor.yy476.pLimit = 0; yygotominor.yy476.pOffset = 0;}
120066 {yygotominor.yy476.pLimit = yymsp[0].minor.yy346.pExpr; yygotominor.yy476.pOffset = 0;}
120069 {yygotominor.yy476.pLimit = yymsp[-2].minor.yy346.pExpr; yygotominor.yy476.pOffset = yymsp[0].minor.yy346.pExpr;}
120072 {yygotominor.yy476.pOffset = yymsp[-2].minor.yy346.pExpr; yygotominor.yy476.pLimit = yymsp[0].minor.yy346.pExpr;}