| /sqlite-3.40.0/ext/misc/ |
| H A D | closure.c | 833 pConstraint = pIdxInfo->aConstraint; in closureBestIndex() 835 if( pConstraint->usable==0 ) continue; in closureBestIndex() 837 && pConstraint->iColumn==CLOSURE_COL_ROOT in closureBestIndex() 838 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex() 846 && pConstraint->iColumn==CLOSURE_COL_DEPTH in closureBestIndex() 847 && (pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT in closureBestIndex() 857 && pConstraint->iColumn==CLOSURE_COL_TABLENAME in closureBestIndex() 858 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex() 866 && pConstraint->iColumn==CLOSURE_COL_IDCOLUMN in closureBestIndex() 867 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex() [all …]
|
| H A D | wholenumber.c | 187 const struct sqlite3_index_constraint *pConstraint; in wholenumberBestIndex() local 188 pConstraint = pIdxInfo->aConstraint; in wholenumberBestIndex() 189 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in wholenumberBestIndex() 190 if( pConstraint->usable==0 ) continue; in wholenumberBestIndex() 191 if( (idxNum & 3)==0 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_GT ){ in wholenumberBestIndex() 195 if( (idxNum & 3)==0 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_GE ){ in wholenumberBestIndex() 199 if( (idxNum & 12)==0 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT ){ in wholenumberBestIndex() 203 if( (idxNum & 12)==0 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_LE ){ in wholenumberBestIndex()
|
| H A D | series.c | 335 const struct sqlite3_index_constraint *pConstraint; in seriesBestIndex() local 343 pConstraint = pIdxInfo->aConstraint; in seriesBestIndex() 344 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in seriesBestIndex() 347 if( pConstraint->iColumn<SERIES_COLUMN_START ) continue; in seriesBestIndex() 348 iCol = pConstraint->iColumn - SERIES_COLUMN_START; in seriesBestIndex() 352 if( pConstraint->usable==0 ){ in seriesBestIndex() 355 }else if( pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ ){ in seriesBestIndex()
|
| H A D | fuzzer.c | 1084 const struct sqlite3_index_constraint *pConstraint; in fuzzerBestIndex() local 1087 pConstraint = pIdxInfo->aConstraint; in fuzzerBestIndex() 1088 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fuzzerBestIndex() 1089 if( pConstraint->iColumn==0 in fuzzerBestIndex() 1093 if( pConstraint->usable==0 ) continue; in fuzzerBestIndex() 1095 && pConstraint->iColumn==0 in fuzzerBestIndex() 1096 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_MATCH in fuzzerBestIndex() 1104 && pConstraint->iColumn==1 in fuzzerBestIndex() 1105 && (pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT in fuzzerBestIndex() 1113 && pConstraint->iColumn==2 in fuzzerBestIndex() [all …]
|
| H A D | carray.c | 330 const struct sqlite3_index_constraint *pConstraint; in carrayBestIndex() local 331 pConstraint = pIdxInfo->aConstraint; in carrayBestIndex() 332 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in carrayBestIndex() 333 if( pConstraint->usable==0 ) continue; in carrayBestIndex() 334 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in carrayBestIndex() 335 switch( pConstraint->iColumn ){ in carrayBestIndex()
|
| H A D | completion.c | 413 const struct sqlite3_index_constraint *pConstraint; in completionBestIndex() local 416 pConstraint = pIdxInfo->aConstraint; in completionBestIndex() 417 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in completionBestIndex() 418 if( pConstraint->usable==0 ) continue; in completionBestIndex() 419 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in completionBestIndex() 420 switch( pConstraint->iColumn ){ in completionBestIndex()
|
| H A D | amatch.c | 1360 const struct sqlite3_index_constraint *pConstraint; in amatchBestIndex() local 1363 pConstraint = pIdxInfo->aConstraint; in amatchBestIndex() 1364 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in amatchBestIndex() 1365 if( pConstraint->usable==0 ) continue; in amatchBestIndex() 1367 && pConstraint->iColumn==0 in amatchBestIndex() 1368 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_MATCH in amatchBestIndex() 1375 && pConstraint->iColumn==1 in amatchBestIndex() 1376 && (pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT in amatchBestIndex() 1377 || pConstraint->op==SQLITE_INDEX_CONSTRAINT_LE) in amatchBestIndex() 1383 && pConstraint->iColumn==2 in amatchBestIndex() [all …]
|
| H A D | fileio.c | 903 const struct sqlite3_index_constraint *pConstraint; in fsdirBestIndex() local 906 pConstraint = pIdxInfo->aConstraint; in fsdirBestIndex() 907 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fsdirBestIndex() 908 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in fsdirBestIndex() 909 switch( pConstraint->iColumn ){ in fsdirBestIndex() 911 if( pConstraint->usable ){ in fsdirBestIndex() 920 if( pConstraint->usable ){ in fsdirBestIndex()
|
| H A D | spellfix.c | 2226 pConstraint = pIdxInfo->aConstraint; in spellfix1BestIndex() 2228 if( pConstraint->usable==0 ) continue; in spellfix1BestIndex() 2232 && pConstraint->iColumn==SPELLFIX_COL_WORD in spellfix1BestIndex() 2242 && pConstraint->iColumn==SPELLFIX_COL_LANGID in spellfix1BestIndex() 2243 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in spellfix1BestIndex() 2251 && pConstraint->iColumn==SPELLFIX_COL_TOP in spellfix1BestIndex() 2252 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in spellfix1BestIndex() 2260 && pConstraint->iColumn==SPELLFIX_COL_SCOPE in spellfix1BestIndex() 2261 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in spellfix1BestIndex() 2269 && pConstraint->iColumn==SPELLFIX_COL_DISTANCE in spellfix1BestIndex() [all …]
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_vtab.c | 843 const struct sqlite3_index_constraint *pConstraint; in lsm1BestIndex() local 844 pConstraint = pIdxInfo->aConstraint; in lsm1BestIndex() 845 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in lsm1BestIndex() 846 if( pConstraint->usable==0 ) continue; in lsm1BestIndex() 847 if( pConstraint->iColumn!=0 ) continue; in lsm1BestIndex() 848 switch( pConstraint->op ){ in lsm1BestIndex() 863 omit1 = pConstraint->op==SQLITE_INDEX_CONSTRAINT_GE; in lsm1BestIndex() 869 omit1 = pConstraint->op==SQLITE_INDEX_CONSTRAINT_GE; in lsm1BestIndex() 878 omit1 = pConstraint->op==SQLITE_INDEX_CONSTRAINT_LE; in lsm1BestIndex() 882 omit1 = pConstraint->op==SQLITE_INDEX_CONSTRAINT_LE; in lsm1BestIndex()
|
| /sqlite-3.40.0/tool/ |
| H A D | fuzzershell.c | 606 const struct sqlite3_index_constraint *pConstraint; in seriesBestIndex() local 607 pConstraint = pIdxInfo->aConstraint; in seriesBestIndex() 608 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in seriesBestIndex() 609 if( pConstraint->usable==0 ) continue; in seriesBestIndex() 610 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in seriesBestIndex() 611 switch( pConstraint->iColumn ){ in seriesBestIndex()
|
| /sqlite-3.40.0/src/ |
| H A D | test8.c | 860 const struct sqlite3_index_constraint *pConstraint; in echoBestIndex() local 864 pConstraint = &pIdxInfo->aConstraint[ii]; in echoBestIndex() 867 if( !isIgnoreUsable && !pConstraint->usable ) continue; in echoBestIndex() 869 iCol = pConstraint->iColumn; in echoBestIndex() 874 switch( pConstraint->op ){ in echoBestIndex()
|
| H A D | pragma.c | 2636 const struct sqlite3_index_constraint *pConstraint; in pragmaVtabBestIndex() local 2642 pConstraint = pIdxInfo->aConstraint; in pragmaVtabBestIndex() 2645 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in pragmaVtabBestIndex() 2646 if( pConstraint->usable==0 ) continue; in pragmaVtabBestIndex() 2647 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in pragmaVtabBestIndex() 2648 if( pConstraint->iColumn < pTab->iHidden ) continue; in pragmaVtabBestIndex() 2649 j = pConstraint->iColumn - pTab->iHidden; in pragmaVtabBestIndex()
|
| H A D | json.c | 2453 const struct sqlite3_index_constraint *pConstraint; in jsonEachBestIndex() local 2460 pConstraint = pIdxInfo->aConstraint; in jsonEachBestIndex() 2461 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in jsonEachBestIndex() 2464 if( pConstraint->iColumn < JEACH_JSON ) continue; in jsonEachBestIndex() 2465 iCol = pConstraint->iColumn - JEACH_JSON; in jsonEachBestIndex() 2469 if( pConstraint->usable==0 ){ in jsonEachBestIndex() 2471 }else if( pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ ){ in jsonEachBestIndex()
|
| /sqlite-3.40.0/ext/fts1/ |
| H A D | fts1.c | 2092 const struct sqlite3_index_constraint *pConstraint; in fulltextBestIndex() local 2093 pConstraint = &pInfo->aConstraint[i]; in fulltextBestIndex() 2094 if( pConstraint->usable ) { in fulltextBestIndex() 2095 if( pConstraint->iColumn==-1 && in fulltextBestIndex() 2096 pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ ){ in fulltextBestIndex() 2099 } else if( pConstraint->iColumn>=0 && in fulltextBestIndex() 2100 pConstraint->op==SQLITE_INDEX_CONSTRAINT_MATCH ){ in fulltextBestIndex() 2102 pInfo->idxNum = QUERY_FULLTEXT + pConstraint->iColumn; in fulltextBestIndex() 2103 TRACE(("FTS1 QUERY_FULLTEXT %d\n", pConstraint->iColumn)); in fulltextBestIndex()
|
| H A D | fulltext.c | 959 const struct sqlite3_index_constraint *pConstraint; in fulltextBestIndex() local 960 pConstraint = &pInfo->aConstraint[i]; in fulltextBestIndex() 961 if( pConstraint->iColumn==0 && in fulltextBestIndex() 962 pConstraint->op==SQLITE_INDEX_CONSTRAINT_MATCH && in fulltextBestIndex() 963 pConstraint->usable ){ /* a full-text search */ in fulltextBestIndex()
|
| /sqlite-3.40.0/ext/rtree/ |
| H A D | rtree.c | 1195 RtreeConstraint *pConstraint, /* The constraint to test */ in rtreeCallbackConstraint() argument 1208 assert( pConstraint->op==RTREE_MATCH || pConstraint->op==RTREE_QUERY ); in rtreeCallbackConstraint() 1211 if( pConstraint->op==RTREE_QUERY && pSearch->iLevel==1 ){ in rtreeCallbackConstraint() 1245 if( pConstraint->op==RTREE_MATCH ){ in rtreeCallbackConstraint() 1247 rc = pConstraint->u.xGeom((sqlite3_rtree_geometry*)pInfo, in rtreeCallbackConstraint() 1256 rc = pConstraint->u.xQueryFunc(pInfo); in rtreeCallbackConstraint() 1633 RtreeConstraint *pConstraint = pCur->aConstraint + ii; in rtreeStepToLeaf() local 1634 if( pConstraint->op>=RTREE_MATCH ){ in rtreeStepToLeaf() 1635 rc = rtreeCallbackConstraint(pConstraint, eInt, pCellData, p, in rtreeStepToLeaf() 1639 rtreeLeafConstraint(pConstraint, eInt, pCellData, &eWithin); in rtreeStepToLeaf() [all …]
|
| /sqlite-3.40.0/ext/fts2/ |
| H A D | fts2.c | 2953 const struct sqlite3_index_constraint *pConstraint; in fulltextBestIndex() local 2954 pConstraint = &pInfo->aConstraint[i]; in fulltextBestIndex() 2955 if( pConstraint->usable ) { in fulltextBestIndex() 2956 if( pConstraint->iColumn==-1 && in fulltextBestIndex() 2957 pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ ){ in fulltextBestIndex() 2960 } else if( pConstraint->iColumn>=0 && in fulltextBestIndex() 2961 pConstraint->op==SQLITE_INDEX_CONSTRAINT_MATCH ){ in fulltextBestIndex() 2963 pInfo->idxNum = QUERY_FULLTEXT + pConstraint->iColumn; in fulltextBestIndex() 2964 TRACE(("FTS2 QUERY_FULLTEXT %d\n", pConstraint->iColumn)); in fulltextBestIndex()
|
| /sqlite-3.40.0/ext/expert/ |
| H A D | sqlite3expert.c | 1114 static void idxConstraintFree(IdxConstraint *pConstraint){ in idxConstraintFree() argument 1118 for(p=pConstraint; p; p=pNext){ in idxConstraintFree()
|