Lines Matching refs:pKey

14819   const char *pKey;            /* Key associated with this element */  member
14827 SQLITE_PRIVATE void *sqlite3HashInsert(Hash*, const char *pKey, void *pData);
14828 SQLITE_PRIVATE void *sqlite3HashFind(const Hash*, const char *pKey);
16741 const void *pKey; /* Key content for indexes. NULL for tables */ member
37532 const char *pKey, /* The key we are searching for */ in findElementWithHash() argument
37540 h = strHash(pKey); in findElementWithHash()
37553 if( h==elem->h && sqlite3StrICmp(elem->pKey,pKey)==0 ){ in findElementWithHash()
37599 SQLITE_PRIVATE void *sqlite3HashFind(const Hash *pH, const char *pKey){ in sqlite3HashFind() argument
37601 assert( pKey!=0 ); in sqlite3HashFind()
37602 return findElementWithHash(pH, pKey, 0)->data; in sqlite3HashFind()
37619 SQLITE_PRIVATE void *sqlite3HashInsert(Hash *pH, const char *pKey, void *data){ in sqlite3HashInsert() argument
37625 assert( pKey!=0 ); in sqlite3HashInsert()
37626 elem = findElementWithHash(pH,pKey,&h); in sqlite3HashInsert()
37633 elem->pKey = pKey; in sqlite3HashInsert()
37640 new_elem->pKey = pKey; in sqlite3HashInsert()
71056 void *pKey; /* Saved key that was cursor last known position */ member
72270 assert( 0==pCur->pKey );
72283 void *pKey; local
72285 pKey = sqlite3Malloc( ((i64)pCur->nKey) + 9 + 8 );
72286 if( pKey ){
72287 rc = sqlite3BtreePayload(pCur, 0, (int)pCur->nKey, pKey);
72289 memset(((u8*)pKey)+pCur->nKey, 0, 9+8);
72290 pCur->pKey = pKey;
72292 sqlite3_free(pKey);
72298 assert( !pCur->curIntKey || !pCur->pKey );
72313 assert( 0==pCur->pKey );
72403 sqlite3_free(pCur->pKey);
72404 pCur->pKey = 0;
72415 const void *pKey, /* Packed key if the btree is an index */
72423 if( pKey ){
72428 sqlite3VdbeRecordUnpack(pKeyInfo, (int)nKey, pKey, pIdxKey);
72461 rc = btreeMoveto(pCur, pCur->pKey, pCur->nKey, 0, &skipNext);
72464 sqlite3_free(pCur->pKey);
72465 pCur->pKey = 0;
76371 sqlite3_free(pCur->pKey);
78594 assert( pX->nKey<=0x7fffffff && pX->pKey!=0 );
78596 pSrc = pX->pKey;
80953 assert( (flags & BTREE_PREFORMAT) || (pX->pKey==0)==(pCur->pKeyInfo==0) );
80956 assert( pX->pKey==0 );
81021 rc = btreeMoveto(pCur, pX->pKey, pX->nKey,
81035 x2.pData = pX->pKey;
81175 assert( pCur->pKey==0 );
81176 pCur->pKey = sqlite3Malloc( pX->nKey );
81177 if( pCur->pKey==0 ){
81180 memcpy(pCur->pKey, pX->pKey, pX->nKey);
90137 const void *pKey, /* The binary record */
90140 const unsigned char *aKey = (const unsigned char *)pKey;
90311 int nKey, const void *pKey, /* The record to verify */
90318 const unsigned char *aKey = (const unsigned char*)pKey;
93619 const void *pKey
93626 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, pRet);
100033 Mem *pKey; /* MEM cell holding key for the record */
100053 pKey = &aMem[pOp->p3];
100054 assert( pKey->flags & MEM_Int );
100055 assert( memIsValid(pKey) );
100056 REGISTER_TRACE(pOp->p3, pKey);
100057 x.nKey = pKey->u.i;
100097 x.pKey = 0;
100844 x.pKey = pIn2->z;
106785 void *pKey;
106797 pKey = pReader->aKey;
106800 pKey = SRVAL(pSorter->list.pList);
106802 return pKey;
106810 void *pKey; int nKey; /* Sorter key to copy into pOut */
106814 pKey = vdbeSorterRowkey(pSorter, &nKey);
106820 memcpy(pOut->z, pKey, nKey);
106851 void *pKey; int nKey; /* Sorter key to compare pVal with */
106864 pKey = vdbeSorterRowkey(pSorter, &nKey);
106865 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, r2);
122468 Expr *pKey /* Database key for encryption extension */
122485 SQLITE_OK!=resolveAttachExpr(&sName, pKey)
122511 sqlite3ExprCode(pParse, pKey, regArgs+2);
122527 sqlite3ExprDelete(db, pKey);
122555 SQLITE_PRIVATE void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
122567 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey);
126767 KeyInfo *pKey; /* KeyInfo for index */
126789 pKey = sqlite3KeyInfoOfIndex(pParse, pIndex);
126790 assert( pKey!=0 || pParse->nErr );
126795 sqlite3KeyInfoRef(pKey), P4_KEYINFO);
126811 (char *)pKey, P4_KEYINFO);
128645 KeyInfo *pKey;
128648 pKey = sqlite3KeyInfoAlloc(pParse->db, nKey, nCol-nKey);
128650 pKey = sqlite3KeyInfoAlloc(pParse->db, nCol, 0);
128652 if( pKey ){
128653 assert( sqlite3KeyInfoIsWriteable(pKey) );
128656 pKey->aColl[i] = zColl==sqlite3StrBINARY ? 0 :
128658 pKey->aSortFlags[i] = pIdx->aSortOrder[i];
128659 assert( 0==(pKey->aSortFlags[i] & KEYINFO_ORDER_BIGNULL) );
128674 sqlite3KeyInfoUnref(pKey);
128675 pKey = 0;
128678 return pKey;
188676 void *pKey; int nKey; /* Key associated with this element */
188698 SQLITE_PRIVATE void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
188699 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
188727 #define fts3HashKey(E) ((E)->pKey)
196308 const struct Fts3Keyword *pKey = &aKeyword[ii];
196310 if( (pKey->parenOnly & ~sqlite3_fts3_enable_parentheses)!=0 ){
196314 if( nInput>=pKey->n && 0==memcmp(zInput, pKey->z, pKey->n) ){
196316 int nKey = pKey->n;
196320 if( pKey->eType==FTSQUERY_NEAR ){
196339 pRet->eType = pKey->eType;
197254 if( pH->copyKey && elem->pKey ){
197255 fts3HashFree(elem->pKey);
197266 static int fts3StrHash(const void *pKey, int nKey){
197267 const char *z = (const char *)pKey;
197284 static int fts3BinHash(const void *pKey, int nKey){
197286 const char *z = (const char *)pKey;
197378 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
197391 const void *pKey, /* The key we are searching for */
197405 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
197439 if( pH->copyKey && elem->pKey ){
197440 fts3HashFree(elem->pKey);
197453 const void *pKey,
197462 h = (*xHash)(pKey,nKey);
197464 return fts3FindElementByHash(pH,pKey,nKey, h & (pH->htsize-1));
197472 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash *pH, const void *pKey, int nKey){
197475 pElem = sqlite3Fts3HashFindElem(pH, pKey, nKey);
197496 const void *pKey, /* The key */
197509 hraw = (*xHash)(pKey, nKey);
197512 elem = fts3FindElementByHash(pH,pKey,nKey,h);
197532 if( pH->copyKey && pKey!=0 ){
197533 new_elem->pKey = fts3HashMalloc( nKey );
197534 if( new_elem->pKey==0 ){
197538 memcpy((void*)new_elem->pKey, pKey, nKey);
197540 new_elem->pKey = (void*)pKey;