** Return true if list pList (linked by IdxConstraint.pLink) contains ** a constraint compatible with *p. Otherwise return false. */
| 11248 | ** a constraint compatible with *p. Otherwise return false. |
| 11249 | */ |
| 11250 | static int idxFindConstraint(IdxConstraint *pList, IdxConstraint *p){ |
| 11251 | IdxConstraint *pCmp; |
| 11252 | for(pCmp=pList; pCmp; pCmp=pCmp->pLink){ |
| 11253 | if( p->iCol==pCmp->iCol ) return 1; |
| 11254 | } |
| 11255 | return 0; |
| 11256 | } |
| 11257 | |
| 11258 | static int idxCreateFromWhere( |
| 11259 | sqlite3expert *p, |
no outgoing calls
no test coverage detected