/external/chromium_org/third_party/sqlite/src/src/ |
H A D | analyze.c | 112 Index *pIdx; /* An index to being analyzed */ local 165 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ 169 if( pOnlyIdx && pOnlyIdx!=pIdx ) continue; 170 nCol = pIdx->nColumn; 171 pKey = sqlite3IndexKeyinfo(pParse, pIdx); 177 assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) ); 178 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIdx 444 Index *pIdx; local 563 sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx) argument 613 Index *pIdx = sqliteHashData(i); local 657 Index *pIdx; /* Pointer to the index object */ local [all...] |
H A D | delete.c | 234 Index *pIdx; /* For looping over indices of the table */ local 301 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ 357 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ 358 assert( pIdx 591 Index *pIdx; local 612 sqlite3GenerateIndexKey( Parse *pParse, Index *pIdx, int iCur, int regOut, int doMakeRec ) argument [all...] |
H A D | update.c | 100 Index *pIdx; /* For looping over indices */ local 178 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ 239 for(nIdx=0, pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext, nIdx++){} 244 for(j=0, pIdx [all...] |
H A D | fkey.c | 188 Index *pIdx = 0; /* Value to return via *ppIdx */ local 225 for(pIdx=pParent->pIndex; pIdx; pIdx=pIdx->pNext){ 226 if( pIdx->nColumn==nCol && pIdx->onError!=OE_None ){ 227 /* pIdx is a UNIQUE index (or a PRIMARY KEY) and has the right number 235 if( pIdx->autoIndex==2 ){ 249 int iCol = pIdx 314 fkLookupParent( Parse *pParse, int iDb, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr, int isIgnore ) argument 457 fkScanChildren( Parse *pParse, SrcList *pSrc, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr ) argument 708 Index *pIdx = 0; /* Index on key columns in pTo */ local 776 Index *pIdx = 0; /* Foreign key index for pFKey */ local 841 Index *pIdx = 0; local 958 Index *pIdx = 0; /* Parent key index for this FK */ local [all...] |
H A D | insert.c | 39 ** pIdx. A column affinity string has one character for each column in 57 const char *sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx){ argument 58 if( !pIdx->zColAff ){ 68 Table *pTab = pIdx->pTable; 70 pIdx->zColAff = (char *)sqlite3DbMallocRaw(0, pIdx->nColumn+2); 71 if( !pIdx->zColAff ){ 75 for(n=0; n<pIdx->nColumn; n++){ 76 pIdx->zColAff[n] = pTab->aCol[pIdx 447 Index *pIdx; /* For looping over indices of the table */ local 1157 Index *pIdx; /* Pointer to one of the indices */ local 1436 Index *pIdx; local 1491 Index *pIdx; local [all...] |
H A D | where.c | 572 Index *pIdx /* Must be compatible with this index, if not NULL */ 584 if( pIdx && pTerm->eOperator!=WO_ISNULL ){ 591 idxaff = pIdx->pTable->aCol[iColumn].affinity; 602 for(j=0; pIdx->aiColumn[j]!=iColumn; j++){ 603 if( NEVER(j>=pIdx->nColumn) ) return 0; 605 if( pColl && sqlite3StrICmp(pColl->zName, pIdx->azColl[j]) ) continue; 1402 ** This routine decides if pIdx can be used to satisfy the ORDER BY 1403 ** clause. If it can, it returns 1. If pIdx cannot satisfy the 1408 ** the table has a cursor number of "base". pIdx is an index on pTab. 1410 ** nEqCol is the number of columns of pIdx tha 1420 isSortingIndex( Parse *pParse, WhereMaskSet *pMaskSet, Index *pIdx, int base, ExprList *pOrderBy, int nEqCol, int wsFlags, int *pbRev ) argument 1809 Index *pIdx; /* Object describing the transient index */ local 2276 whereRangeRegion( Parse *pParse, Index *pIdx, sqlite3_value *pVal, int roundUp, int *piRegion ) argument 2696 Index *pIdx; /* Copy of pProbe, or zero for IPK index */ local 3367 Index *pIdx; /* The index being used for this loop */ local 3842 Index *pIdx; /* The index we will be using */ local 4265 Index *pIdx = pWInfo->a[i].plan.u.pIdx; local 4518 Index *pIdx; /* Index for FROM table at pTabItem */ local 4955 Index *pIdx = pLevel->plan.u.pIdx; local [all...] |
H A D | pragma.c | 902 Index *pIdx; local 905 pIdx = sqlite3FindIndex(db, zRight, zDb); 906 if( pIdx ){ 908 pTab = pIdx->pTable; 914 for(i=0; i<pIdx->nColumn; i++){ 915 int cnum = pIdx->aiColumn[i]; 926 Index *pIdx; local 932 pIdx = pTab->pIndex; 933 if( pIdx ){ 940 while(pIdx){ 1119 Index *pIdx; local 1149 Index *pIdx; local [all...] |
H A D | vdbeblob.c | 218 Index *pIdx; local 236 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ 238 for(j=0; j<pIdx->nColumn; j++){ 239 if( pIdx->aiColumn[j]==iCol ){
|
H A D | build.c | 1234 Index *pIdx; local 1241 for(pIdx=p->pIndex; pIdx; pIdx=pIdx->pNext){ 1242 assert( pIdx->nColumn==1 ); 1243 if( pIdx->aiColumn[0]==i ){ 1244 pIdx->azColl[0] = p->aCol[i].zColl; 1337 ** to the specified offset in the buffer and updates *pIdx to refer 1345 static void identPut(char *z, int *pIdx, cha argument 1890 Index *pIdx = sqliteHashData(pElem); local 1934 Index *pIdx; local 2701 Index *pIdx; local 2882 sqlite3DefaultRowEst(Index *pIdx) argument 3732 sqlite3IndexKeyinfo(Parse *pParse, Index *pIdx) argument [all...] |
H A D | select.c | 3120 Index *pIdx; local 3121 for(pIdx=pTab->pIndex; 3122 pIdx && sqlite3StrICmp(pIdx->zName, zIndex); 3123 pIdx=pIdx->pNext 3125 if( !pIdx ){ 3130 pFrom->pIndex = pIdx; 3633 Index *pIdx /* Index used to optimize scan, or NULL */ 3638 pIdx 4226 Index *pIdx; /* Iterator variable */ local [all...] |
H A D | expr.c | 1471 Index *pIdx; /* Iterator variable */ local 1485 for(pIdx=pTab->pIndex; pIdx && eType==0 && affinity_ok; pIdx=pIdx->pNext){ 1486 if( (pIdx->aiColumn[0]==iCol) 1487 && sqlite3FindCollSeq(db, ENC(db), pIdx->azColl[0], 0)==pReq 1488 && (!mustBeUnique || (pIdx->nColumn==1 && pIdx->onError!=OE_None)) 1494 pKey = (char *)sqlite3IndexKeyinfo(pParse, pIdx); [all...] |
H A D | btree.c | 157 Index *pIdx = (Index *)sqliteHashData(p); local 158 if( pIdx->tnum==(int)iRoot ){ 159 iTab = pIdx->pTable->tnum; 1134 ** as the first argument. Write into *pIdx the index into pPage->aData[] 1145 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){ argument 1205 *pIdx = pc + x; 1232 *pIdx = top;
|
H A D | sqliteInt.h | 1878 ** Within the union, pIdx is only used when wsFlags&WHERE_INDEXED is true. 1888 Index *pIdx; /* Index when WHERE_INDEXED is true */ member in union:WherePlan::__anon15500 1911 int iIdxCur; /* The VDBE cursor used to access pIdx */
|
/external/sqlite/dist/orig/ |
H A D | sqlite3.c | 51715 Index *pIdx = (Index *)sqliteHashData(p); local 52736 allocateSpace(MemPage *pPage, int nByte, int *pIdx) argument 61729 Index *pIdx; member in struct:ValueNewStat4Ctx 61751 Index *pIdx = p->pIdx; /* Index being probed */ local 62066 sqlite3Stat4ProbeSetValue( Parse *pParse, Index *pIdx, UnpackedRecord **ppRec, Expr *pExpr, u8 affinity, int iVal, int *pbOk ) argument 63052 sqlite3VdbeSetP4KeyInfo(Parse *pParse, Index *pIdx) argument 74751 Index *pIdx; local 79861 Index *pIdx; /* Iterator variable */ local 84370 Index *pIdx; /* An index to being analyzed */ local 84760 Index *pIdx; local 84943 sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx) argument 84968 initAvgEq(Index *pIdx) argument 85018 Index *pIdx = sqlite3FindIndex(db, zName, zDb); local 85065 Index *pIdx; /* Pointer to the index object */ local 85119 Index *pIdx; /* Pointer to the index object */ local 85219 Index *pIdx = sqliteHashData(i); local 86873 sqlite3ColumnOfIndex(Index *pIdx, i16 iCol) argument 87446 Index *pIdx; local 87555 identPut(char *z, int *pIdx, char *zSignedIdent) argument 87651 resizeIndexObject(sqlite3 *db, Index *pIdx, int N) argument 87689 estimateIndexWidth(Index *pIdx) argument 87732 Index *pIdx; local 87862 Index *pIdx; /* An implied index of the table */ local 88294 Index *pIdx = sqliteHashData(pElem); local 88338 Index *pIdx; local 89195 Index *pIdx; local 89370 sqlite3DefaultRowEst(Index *pIdx) argument 90246 sqlite3KeyInfoOfIndex(Parse *pParse, Index *pIdx) argument 91059 Index *pIdx; /* For looping over indices of the table */ local 91558 Index *pIdx; /* Current index */ local 91610 sqlite3GenerateIndexKey( Parse *pParse, Index *pIdx, int iDataCur, int regOut, int prefixOnly, int *piPartIdxLabel, Index *pPrior, int regPrior ) argument 93610 Index *pIdx = 0; /* Value to return via *ppIdx */ local 93738 fkLookupParent( Parse *pParse, int iDb, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr, int isIgnore ) argument 93953 fkScanChildren( Parse *pParse, SrcList *pSrc, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr ) argument 94281 Index *pIdx = 0; /* Index on key columns in pTo */ local 94374 Index *pIdx = 0; /* Foreign key index for pFKey */ local 94444 Index *pIdx = 0; local 94547 Index *pIdx = 0; /* Parent key index for this FK */ local 94857 sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx) argument 95234 Index *pIdx; /* For looping over indices of the table */ local 95924 Index *pIdx; /* Pointer to one of the indices */ local 96332 Index *pIdx; /* An index being inserted or updated */ local 96413 Index *pIdx; local 99676 Index *pIdx; local 99708 Index *pIdx; local 99733 Index *pIdx; local 99844 Index *pIdx; /* Index in the parent table */ local 100057 Index *pIdx; local 100089 Index *pIdx, *pPk; local 105092 Index *pIdx; local 106608 Index *pIdx; /* Iterator variable */ local 108285 Index *pIdx; /* For looping over indices */ local 112293 findIndexCol( Parse *pParse, ExprList *pList, int iBase, Index *pIdx, int iCol ) argument 112333 Index *pIdx; local 112478 Index *pIdx; /* Object describing the transient index */ local 112787 whereKeyStats( Parse *pParse, Index *pIdx, UnpackedRecord *pRec, int roundUp, tRowcnt *aStat ) argument 113512 Index *pIdx; /* The index being used for this loop */ local 113729 Index *pIdx = pLoop->u.btree.pIndex; local 114059 Index *pIdx; /* The index we will be using */ local 115432 columnsInIndex(Index *pIdx) argument 116698 Index *pIdx; local 117347 Index *pIdx = 0; local 124131 Index *pIdx; /* Each index */ local [all...] |
/external/sqlite/dist/ |
H A D | sqlite3.c | 51735 Index *pIdx = (Index *)sqliteHashData(p); local 52756 allocateSpace(MemPage *pPage, int nByte, int *pIdx) argument 61749 Index *pIdx; member in struct:ValueNewStat4Ctx 61771 Index *pIdx = p->pIdx; /* Index being probed */ local 62086 sqlite3Stat4ProbeSetValue( Parse *pParse, Index *pIdx, UnpackedRecord **ppRec, Expr *pExpr, u8 affinity, int iVal, int *pbOk ) argument 63072 sqlite3VdbeSetP4KeyInfo(Parse *pParse, Index *pIdx) argument 74771 Index *pIdx; local 79881 Index *pIdx; /* Iterator variable */ local 84390 Index *pIdx; /* An index to being analyzed */ local 84780 Index *pIdx; local 84963 sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx) argument 84988 initAvgEq(Index *pIdx) argument 85038 Index *pIdx = sqlite3FindIndex(db, zName, zDb); local 85085 Index *pIdx; /* Pointer to the index object */ local 85139 Index *pIdx; /* Pointer to the index object */ local 85239 Index *pIdx = sqliteHashData(i); local 86893 sqlite3ColumnOfIndex(Index *pIdx, i16 iCol) argument 87466 Index *pIdx; local 87575 identPut(char *z, int *pIdx, char *zSignedIdent) argument 87671 resizeIndexObject(sqlite3 *db, Index *pIdx, int N) argument 87709 estimateIndexWidth(Index *pIdx) argument 87752 Index *pIdx; local 87882 Index *pIdx; /* An implied index of the table */ local 88314 Index *pIdx = sqliteHashData(pElem); local 88358 Index *pIdx; local 89215 Index *pIdx; local 89390 sqlite3DefaultRowEst(Index *pIdx) argument 90266 sqlite3KeyInfoOfIndex(Parse *pParse, Index *pIdx) argument 91079 Index *pIdx; /* For looping over indices of the table */ local 91578 Index *pIdx; /* Current index */ local 91630 sqlite3GenerateIndexKey( Parse *pParse, Index *pIdx, int iDataCur, int regOut, int prefixOnly, int *piPartIdxLabel, Index *pPrior, int regPrior ) argument 93630 Index *pIdx = 0; /* Value to return via *ppIdx */ local 93758 fkLookupParent( Parse *pParse, int iDb, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr, int isIgnore ) argument 93973 fkScanChildren( Parse *pParse, SrcList *pSrc, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr ) argument 94301 Index *pIdx = 0; /* Index on key columns in pTo */ local 94394 Index *pIdx = 0; /* Foreign key index for pFKey */ local 94464 Index *pIdx = 0; local 94567 Index *pIdx = 0; /* Parent key index for this FK */ local 94877 sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx) argument 95254 Index *pIdx; /* For looping over indices of the table */ local 95944 Index *pIdx; /* Pointer to one of the indices */ local 96352 Index *pIdx; /* An index being inserted or updated */ local 96433 Index *pIdx; local 99696 Index *pIdx; local 99728 Index *pIdx; local 99753 Index *pIdx; local 99864 Index *pIdx; /* Index in the parent table */ local 100077 Index *pIdx; local 100109 Index *pIdx, *pPk; local 105112 Index *pIdx; local 106628 Index *pIdx; /* Iterator variable */ local 108305 Index *pIdx; /* For looping over indices */ local 112313 findIndexCol( Parse *pParse, ExprList *pList, int iBase, Index *pIdx, int iCol ) argument 112353 Index *pIdx; local 112498 Index *pIdx; /* Object describing the transient index */ local 112807 whereKeyStats( Parse *pParse, Index *pIdx, UnpackedRecord *pRec, int roundUp, tRowcnt *aStat ) argument 113532 Index *pIdx; /* The index being used for this loop */ local 113749 Index *pIdx = pLoop->u.btree.pIndex; local 114079 Index *pIdx; /* The index we will be using */ local 115452 columnsInIndex(Index *pIdx) argument 116718 Index *pIdx; local 117367 Index *pIdx = 0; local 124151 Index *pIdx; /* Each index */ local [all...] |
/external/chromium_org/third_party/sqlite/amalgamation/ |
H A D | sqlite3.c | 10223 ** Within the union, pIdx is only used when wsFlags&WHERE_INDEXED is true. 10233 Index *pIdx; /* Index when WHERE_INDEXED is true */ member in union:WherePlan::__anon15463 10256 int iIdxCur; /* The VDBE cursor used to access pIdx */ 47276 Index *pIdx = (Index *)sqliteHashData(p); local 48264 allocateSpace(MemPage *pPage, int nByte, int *pIdx) argument 68646 Index *pIdx; local 72208 Index *pIdx; /* Iterator variable */ local 75434 Index *pIdx; /* An index to being analyzed */ local 75766 Index *pIdx; local 75885 sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx) argument 75935 Index *pIdx = sqliteHashData(i); local 75979 Index *pIdx; /* Pointer to the index object */ local 78073 Index *pIdx; local 78184 identPut(char *z, int *pIdx, char *zSignedIdent) argument 78729 Index *pIdx = sqliteHashData(pElem); local 78773 Index *pIdx; local 79540 Index *pIdx; local 79721 sqlite3DefaultRowEst(Index *pIdx) argument 80571 sqlite3IndexKeyinfo(Parse *pParse, Index *pIdx) argument 81291 Index *pIdx; /* For looping over indices of the table */ local 81648 Index *pIdx; local 81669 sqlite3GenerateIndexKey( Parse *pParse, Index *pIdx, int iCur, int regOut, int doMakeRec ) argument 83480 Index *pIdx = 0; /* Value to return via *ppIdx */ local 83606 fkLookupParent( Parse *pParse, int iDb, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr, int isIgnore ) argument 83749 fkScanChildren( Parse *pParse, SrcList *pSrc, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr ) argument 84000 Index *pIdx = 0; /* Index on key columns in pTo */ local 84068 Index *pIdx = 0; /* Foreign key index for pFKey */ local 84133 Index *pIdx = 0; local 84250 Index *pIdx = 0; /* Parent key index for this FK */ local 84540 sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx) argument 84930 Index *pIdx; /* For looping over indices of the table */ local 85640 Index *pIdx; /* Pointer to one of the indices */ local 85919 Index *pIdx; local 85974 Index *pIdx; local 88438 Index *pIdx; local 88462 Index *pIdx; local 88655 Index *pIdx; local 88685 Index *pIdx; local 93042 Index *pIdx; local 94148 Index *pIdx; /* Iterator variable */ local 95799 Index *pIdx; /* For looping over indices */ local 99074 isSortingIndex( Parse *pParse, WhereMaskSet *pMaskSet, Index *pIdx, int base, ExprList *pOrderBy, int nEqCol, int wsFlags, int *pbRev ) argument 99463 Index *pIdx; /* Object describing the transient index */ local 99930 whereRangeRegion( Parse *pParse, Index *pIdx, sqlite3_value *pVal, int roundUp, int *piRegion ) argument 100350 Index *pIdx; /* Copy of pProbe, or zero for IPK index */ local 101021 Index *pIdx; /* The index being used for this loop */ local 101496 Index *pIdx; /* The index we will be using */ local 101919 Index *pIdx = pWInfo->a[i].plan.u.pIdx; local 102172 Index *pIdx; /* Index for FROM table at pTabItem */ local 102609 Index *pIdx = pLevel->plan.u.pIdx; local [all...] |