Home
last modified time | relevance | path

Searched refs:pFKey (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/third_party/sqlite/src/src/
Dfkey.c184 FKey *pFKey, /* Foreign key to find index for */ in locateFkeyIndex() argument
190 int nCol = pFKey->nCol; /* Number of columns in parent key */ in locateFkeyIndex()
191 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */ in locateFkeyIndex()
238 for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom; in locateFkeyIndex()
264 if( sqlite3StrICmp(pFKey->aCol[j].zCol, zIdxCol)==0 ){ in locateFkeyIndex()
265 if( aiCol ) aiCol[i] = pFKey->aCol[j].iFrom; in locateFkeyIndex()
319 FKey *pFKey, /* Foreign key constraint */ in fkLookupParent() argument
338 sqlite3VdbeAddOp2(v, OP_FkIfZero, pFKey->isDeferred, iOk); in fkLookupParent()
340 for(i=0; i<pFKey->nCol; i++){ in fkLookupParent()
364 if( pTab==pFKey->pFrom && nIncr==1 ){ in fkLookupParent()
[all …]
Dvdbeblob.c225 FKey *pFKey; in sqlite3_blob_open() local
226 for(pFKey=pTab->pFKey; pFKey; pFKey=pFKey->pNextFrom){ in sqlite3_blob_open()
228 for(j=0; j<pFKey->nCol; j++){ in sqlite3_blob_open()
229 if( pFKey->aCol[j].iFrom==iCol ){ in sqlite3_blob_open()
Dbuild.c2176 FKey *pFKey = 0; in sqlite3CreateForeignKey() local
2204 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1; in sqlite3CreateForeignKey()
2210 pFKey = sqlite3DbMallocZero(db, nByte ); in sqlite3CreateForeignKey()
2211 if( pFKey==0 ){ in sqlite3CreateForeignKey()
2214 pFKey->pFrom = p; in sqlite3CreateForeignKey()
2215 pFKey->pNextFrom = p->pFKey; in sqlite3CreateForeignKey()
2216 z = (char*)&pFKey->aCol[nCol]; in sqlite3CreateForeignKey()
2217 pFKey->zTo = z; in sqlite3CreateForeignKey()
2222 pFKey->nCol = nCol; in sqlite3CreateForeignKey()
2224 pFKey->aCol[0].iFrom = p->nCol-1; in sqlite3CreateForeignKey()
[all …]
Dalter.c675 if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){ in sqlite3AlterFinishAddColumn()
Dpragma.c995 pFK = pTab->pFKey; in sqlite3Pragma()
DsqliteInt.h1280 FKey *pFKey; /* Linked list of all foreign keys in this table */ member
/external/sqlite/dist/
Dsqlite3.c10944 FKey *pFKey; /* Linked list of all foreign keys in this table */ member
74789 FKey *pFKey;
74790 for(pFKey=pTab->pFKey; pFKey; pFKey=pFKey->pNextFrom){
74792 for(j=0; j<pFKey->nCol; j++){
74793 if( pFKey->aCol[j].iFrom==iCol ){
83305 if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){
88659 FKey *pFKey = 0;
88687 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
88693 pFKey = sqlite3DbMallocZero(db, nByte );
88694 if( pFKey==0 ){
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c10944 FKey *pFKey; /* Linked list of all foreign keys in this table */ member
74769 FKey *pFKey;
74770 for(pFKey=pTab->pFKey; pFKey; pFKey=pFKey->pNextFrom){
74772 for(j=0; j<pFKey->nCol; j++){
74773 if( pFKey->aCol[j].iFrom==iCol ){
83285 if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){
88639 FKey *pFKey = 0;
88667 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
88673 pFKey = sqlite3DbMallocZero(db, nByte );
88674 if( pFKey==0 ){
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c9625 FKey *pFKey; /* Linked list of all foreign keys in this table */ member
68653 FKey *pFKey;
68654 for(pFKey=pTab->pFKey; pFKey; pFKey=pFKey->pNextFrom){
68656 for(j=0; j<pFKey->nCol; j++){
68657 if( pFKey->aCol[j].iFrom==iCol ){
75169 if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){
79015 FKey *pFKey = 0;
79043 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
79049 pFKey = sqlite3DbMallocZero(db, nByte );
79050 if( pFKey==0 ){
[all …]