** Return true if list pList (linked by IdxConstraint.pLink) contains ** a constraint compatible with *p. Otherwise return false. */
| 9346 | ** a constraint compatible with *p. Otherwise return false. |
| 9347 | */ |
| 9348 | static int idxFindConstraint(IdxConstraint *pList, IdxConstraint *p){ |
| 9349 | IdxConstraint *pCmp; |
| 9350 | for(pCmp=pList; pCmp; pCmp=pCmp->pLink){ |
| 9351 | if( p->iCol==pCmp->iCol ) return 1; |
| 9352 | } |
| 9353 | return 0; |
| 9354 | } |
| 9355 | |
| 9356 | static int idxCreateFromWhere( |
| 9357 | sqlite3expert *p, |
no outgoing calls
no test coverage detected