Lines Matching refs:nSrc
9955 i16 nSrc; /* Number of tables or subqueries in the FROM clause */
18925 assert( k>=0 && k<pSrc->nSrc );
50593 int nSrc, n, rc;
50631 nSrc = nData;
50639 nSrc = (int)nKey;
50712 if( nSrc>0 ){
50713 if( n>nSrc ) n = nSrc;
50722 nSrc -= n;
50724 if( nSrc==0 ){
50725 nSrc = nData;
67562 for(i=pSrc->nSrc, pItem=pSrc->a; i>0; i--, pItem++){
67755 for(i=0, pItem=pSrcList->a; i<pSrcList->nSrc; i++, pItem++){
67794 if( i<pSrcList->nSrc-1 ){
68048 for(i=0; i<pNC->pSrcList->nSrc; i++){
68063 assert( pSrcList && pSrcList->nSrc==1 );
68590 for(i=0; i<p->pSrc->nSrc; i++){
69688 nByte = sizeof(*p) + (p->nSrc>0 ? sizeof(p->a[0]) * (p->nSrc-1) : 0);
69691 pNew->nSrc = pNew->nAlloc = p->nSrc;
69692 for(i=0; i<p->nSrc; i++){
70163 if( pSrc->nSrc!=1 ) return 0; /* Single term in FROM clause */
72346 for(i=0; i<pSrcList->nSrc; i++, pItem++){
72953 assert( pSrc->nSrc==1 );
74506 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
74759 for(iSrc=0; ALWAYS(iSrc<pTabList->nSrc); iSrc++){
76302 sSrc.nSrc = 1;
76808 assert( pName->nSrc==1 );
77715 assert( pName->nSrc==1 );
77904 assert( iStart<=pSrc->nSrc );
77907 if( pSrc->nSrc+nExtra>pSrc->nAlloc ){
77909 int nAlloc = pSrc->nSrc+nExtra;
77924 for(i=pSrc->nSrc-1; i>=iStart; i--){
77927 pSrc->nSrc += (i16)nExtra;
77987 pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
77992 pItem = &pList->a[pList->nSrc-1];
78014 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
78031 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
78079 if( p==0 || NEVER(p->nSrc==0) ){
78082 pItem = &p->a[p->nSrc-1];
78106 if( p && ALWAYS(p->nSrc>0) ){
78107 struct SrcList_item *pItem = &p->a[p->nSrc-1];
78137 for(i=p->nSrc-1; i>0; i--){
79023 assert( pItem && pSrc->nSrc==1 );
79095 assert( pFrom->nSrc==1 );
79242 assert( pTabList->nSrc==1 );
79288 assert( pTabList->nSrc==1 );
82907 assert( pTabList->nSrc==1 );
84068 if( pSelect->pSrc->nSrc!=1 ){
88092 assert( pSrc->nSrc>iRight );
88169 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
88840 for(j=0;j<pTabList->nSrc && pTabList->a[j].iCursor!=pExpr->iTable;j++);
88841 if( j<pTabList->nSrc ){
89013 for(j=0; ALWAYS(j<pTabList->nSrc); j++){
89016 assert( j<pTabList->nSrc );
90388 assert( pSrc ); /* Even for (SELECT 1) we have: pSrc!=0 but pSrc->nSrc==0 */
90390 for(i=pSrc->nSrc, pItem=pSrc->a; i>0; i--, pItem++){
90531 assert( pSrc && iFrom>=0 && iFrom<pSrc->nSrc );
90537 if( subqueryIsAgg && pSrc->nSrc>1 ) return 0; /* Restriction (2) */
90550 if( pSubSrc->nSrc==0 ) return 0; /* Restriction (7) */
90552 if( pSub->pLimit && (pSrc->nSrc>1 || isAgg) ){
90609 if( isAgg || (p->selFlags & SF_Distinct)!=0 || pSrc->nSrc!=1 ){
90617 || NEVER(pSub1->pSrc==0) || pSub1->pSrc->nSrc!=1
90749 nSubSrc = pSubSrc->nSrc; /* Number of terms in subquery FROM clause */
90923 || p->pSrc->nSrc!=1 || p->pSrc->a[0].pSelect
91016 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
91126 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
91170 if( longNames || pTabList->nSrc>1 ){
91269 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
91580 for(i=0; !p->pPrior && i<pTabList->nSrc; i++){
92222 for(i=0; i<p->pSrc->nSrc; i++){
92239 if( i<p->pSrc->nSrc-1 ){
92603 assert( pTableName->nSrc==1 );
92952 assert( pName->nSrc==1 );
93127 assert( pSrc->nSrc>0 );
93133 pSrc->a[pSrc->nSrc-1].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName);
93702 assert( pTabList->nSrc==1 );
99310 pOrTab->nSrc = pOrTab->nAlloc;
99605 testcase( pTabList->nSrc==BMS );
99606 if( pTabList->nSrc>BMS ){
99616 nTabList = (wctrlFlags & WHERE_ONETABLE_ONLY) ? 1 : pTabList->nSrc;
99678 ** Note that bitmasks are created for all pTabList->nSrc tables in
99680 ** equal to pTabList->nSrc but might be shortened to 1 if the
99684 for(i=0; i<pTabList->nSrc; i++){
99695 for(i=0; i<pTabList->nSrc; i++){
100137 assert( pWInfo->nLevel==1 || pWInfo->nLevel==pTabList->nSrc );
102634 if( ALWAYS(yygotominor.yy259 && yygotominor.yy259->nSrc>0) ) yygotominor.yy259->a[yygotominor.yy259->nSrc-1].jointype = (u8)yymsp[0].minor.yy4;