Lines Matching refs:pKey
13888 const char *pKey; /* Key associated with this element */ member
13895 SQLITE_PRIVATE void *sqlite3HashInsert(Hash*, const char *pKey, void *pData);
13896 SQLITE_PRIVATE void *sqlite3HashFind(const Hash*, const char *pKey);
15014 const void *pKey; /* Key content for indexes. NULL for tables */ member
32921 unsigned int h = strHash(elem->pKey) % new_size;
32935 const char *pKey, /* The key we are searching for */
32945 h = strHash(pKey) % pH->htsize;
32957 if( sqlite3StrICmp(elem->pKey,pKey)==0 ){
33003 SQLITE_PRIVATE void *sqlite3HashFind(const Hash *pH, const char *pKey){
33005 assert( pKey!=0 );
33006 return findElementWithHash(pH, pKey, 0)->data;
33023 SQLITE_PRIVATE void *sqlite3HashInsert(Hash *pH, const char *pKey, void *data){
33029 assert( pKey!=0 );
33030 elem = findElementWithHash(pH,pKey,&h);
33037 elem->pKey = pKey;
33044 new_elem->pKey = pKey;
33050 h = strHash(pKey) % pH->htsize;
63834 void *pKey; /* Saved key that was cursor last known position */
64982 assert( 0==pCur->pKey );
64995 void *pKey;
64997 pKey = sqlite3Malloc( pCur->nKey + 9 + 8 );
64998 if( pKey ){
64999 rc = sqlite3BtreePayload(pCur, 0, (int)pCur->nKey, pKey);
65001 memset(((u8*)pKey)+pCur->nKey, 0, 9+8);
65002 pCur->pKey = pKey;
65004 sqlite3_free(pKey);
65010 assert( !pCur->curIntKey || !pCur->pKey );
65025 assert( 0==pCur->pKey );
65115 sqlite3_free(pCur->pKey);
65116 pCur->pKey = 0;
65127 const void *pKey, /* Packed key if the btree is an index */
65135 if( pKey ){
65140 sqlite3VdbeRecordUnpack(pKeyInfo, (int)nKey, pKey, pIdxKey);
65175 rc = btreeMoveto(pCur, pCur->pKey, pCur->nKey, 0, &skipNext);
65178 sqlite3_free(pCur->pKey);
65179 pCur->pKey = 0;
68838 sqlite3_free(pCur->pKey);
70815 assert( pX->nKey<=0x7fffffff && pX->pKey!=0 );
70817 pSrc = pX->pKey;
72986 assert( (pX->pKey==0)==(pCur->pKeyInfo==0) );
73005 assert( pX->pKey==0 );
73070 rc = btreeMoveto(pCur, pX->pKey, pX->nKey, flags!=0, &loc);
73083 x2.pData = pX->pKey;
73198 assert( pCur->pKey==0 );
73199 pCur->pKey = sqlite3Malloc( pX->nKey );
73200 if( pCur->pKey==0 ){
73203 memcpy(pCur->pKey, pX->pKey, pX->nKey);
81547 const void *pKey, /* The binary record */
81550 const unsigned char *aKey = (const unsigned char *)pKey;
81710 int nKey, const void *pKey, /* The record to verify */
81717 const unsigned char *aKey = (const unsigned char*)pKey;
84583 const void *pKey
84590 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, pRet);
89992 Mem *pKey; /* MEM cell holding key for the record */
90012 pKey = &aMem[pOp->p3];
90013 assert( pKey->flags & MEM_Int );
90014 assert( memIsValid(pKey) );
90015 REGISTER_TRACE(pOp->p3, pKey);
90016 x.nKey = pKey->u.i;
90053 x.pKey = 0;
90737 x.pKey = pIn2->z;
96327 void *pKey;
96339 pKey = pReader->aKey;
96342 pKey = SRVAL(pSorter->list.pList);
96344 return pKey;
96352 void *pKey; int nKey; /* Sorter key to copy into pOut */
96356 pKey = vdbeSorterRowkey(pSorter, &nKey);
96362 memcpy(pOut->z, pKey, nKey);
96393 void *pKey; int nKey; /* Sorter key to compare pVal with */
96406 pKey = vdbeSorterRowkey(pSorter, &nKey);
96407 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, r2);
109485 Expr *pKey /* Database key for encryption extension */
109500 SQLITE_OK!=(rc = resolveAttachExpr(&sName, pKey))
109525 sqlite3ExprCode(pParse, pKey, regArgs+2);
109541 sqlite3ExprDelete(db, pKey);
109569 SQLITE_PRIVATE void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
109581 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey);
113344 KeyInfo *pKey; /* KeyInfo for index */
113366 pKey = sqlite3KeyInfoOfIndex(pParse, pIndex);
113367 assert( pKey!=0 || db->mallocFailed || pParse->nErr );
113372 sqlite3KeyInfoRef(pKey), P4_KEYINFO);
113388 (char *)pKey, P4_KEYINFO);
115033 KeyInfo *pKey;
115036 pKey = sqlite3KeyInfoAlloc(pParse->db, nKey, nCol-nKey);
115038 pKey = sqlite3KeyInfoAlloc(pParse->db, nCol, 0);
115040 if( pKey ){
115041 assert( sqlite3KeyInfoIsWriteable(pKey) );
115044 pKey->aColl[i] = zColl==sqlite3StrBINARY ? 0 :
115046 pKey->aSortFlags[i] = pIdx->aSortOrder[i];
115047 assert( 0==(pKey->aSortFlags[i] & KEYINFO_ORDER_BIGNULL) );
115062 sqlite3KeyInfoUnref(pKey);
115063 pKey = 0;
115066 return pKey;
165657 void *pKey; int nKey; /* Key associated with this element */
165679 SQLITE_PRIVATE void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
165680 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
165708 #define fts3HashKey(E) ((E)->pKey)
173111 const struct Fts3Keyword *pKey = &aKeyword[ii];
173113 if( (pKey->parenOnly & ~sqlite3_fts3_enable_parentheses)!=0 ){
173117 if( nInput>=pKey->n && 0==memcmp(zInput, pKey->z, pKey->n) ){
173119 int nKey = pKey->n;
173123 if( pKey->eType==FTSQUERY_NEAR ){
173142 pRet->eType = pKey->eType;
174053 if( pH->copyKey && elem->pKey ){
174054 fts3HashFree(elem->pKey);
174065 static int fts3StrHash(const void *pKey, int nKey){
174066 const char *z = (const char *)pKey;
174083 static int fts3BinHash(const void *pKey, int nKey){
174085 const char *z = (const char *)pKey;
174177 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
174190 const void *pKey, /* The key we are searching for */
174204 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
174238 if( pH->copyKey && elem->pKey ){
174239 fts3HashFree(elem->pKey);
174252 const void *pKey,
174261 h = (*xHash)(pKey,nKey);
174263 return fts3FindElementByHash(pH,pKey,nKey, h & (pH->htsize-1));
174271 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash *pH, const void *pKey, int nKey){
174274 pElem = sqlite3Fts3HashFindElem(pH, pKey, nKey);
174295 const void *pKey, /* The key */
174308 hraw = (*xHash)(pKey, nKey);
174311 elem = fts3FindElementByHash(pH,pKey,nKey,h);
174331 if( pH->copyKey && pKey!=0 ){
174332 new_elem->pKey = fts3HashMalloc( nKey );
174333 if( new_elem->pKey==0 ){
174337 memcpy((void*)new_elem->pKey, pKey, nKey);
174339 new_elem->pKey = (void*)pKey;