Lines Matching refs:pKey
4751 const void *pKey, int nKey /* The key */
4764 const void *pKey, int nKey /* The new key */
7345 const char *pKey; int nKey; /* Key associated with this element */ member
7352 SQLITE_PRIVATE void *sqlite3HashInsert(Hash*, const char *pKey, int nKey, void *pData);
7353 SQLITE_PRIVATE void *sqlite3HashFind(const Hash*, const char *pKey, int nKey);
8046 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
21828 unsigned int h = strHash(elem->pKey, elem->nKey) % new_size; in rehash()
21841 const char *pKey, /* The key we are searching for */ in findElementGivenHash() argument
21857 if( elem->nKey==nKey && sqlite3StrNICmp(elem->pKey,pKey,nKey)==0 ){ in findElementGivenHash()
21903 SQLITE_PRIVATE void *sqlite3HashFind(const Hash *pH, const char *pKey, int nKey){ in sqlite3HashFind() argument
21908 assert( pKey!=0 ); in sqlite3HashFind()
21911 h = strHash(pKey, nKey) % pH->htsize; in sqlite3HashFind()
21915 elem = findElementGivenHash(pH, pKey, nKey, h); in sqlite3HashFind()
21933 SQLITE_PRIVATE void *sqlite3HashInsert(Hash *pH, const char *pKey, int nKey, void *data){ in sqlite3HashInsert() argument
21939 assert( pKey!=0 ); in sqlite3HashInsert()
21942 h = strHash(pKey, nKey) % pH->htsize; in sqlite3HashInsert()
21946 elem = findElementGivenHash(pH,pKey,nKey,h); in sqlite3HashInsert()
21953 elem->pKey = pKey; in sqlite3HashInsert()
21961 new_elem->pKey = pKey; in sqlite3HashInsert()
21968 h = strHash(pKey, nKey) % pH->htsize; in sqlite3HashInsert()
47091 void *pKey; /* Saved key that was cursor's last known position */
48087 assert( 0==pCur->pKey );
48100 void *pKey = sqlite3Malloc( (int)pCur->nKey );
48101 if( pKey ){
48102 rc = sqlite3BtreeKey(pCur, 0, (int)pCur->nKey, pKey);
48104 pCur->pKey = pKey;
48106 sqlite3_free(pKey);
48112 assert( !pCur->apPage[0]->intKey || !pCur->pKey );
48154 sqlite3_free(pCur->pKey);
48155 pCur->pKey = 0;
48166 const void *pKey, /* Packed key if the btree is an index */
48175 if( pKey ){
48177 pIdxKey = sqlite3VdbeRecordUnpack(pCur->pKeyInfo, (int)nKey, pKey,
48184 if( pKey ){
48205 rc = btreeMoveto(pCur, pCur->pKey, pCur->nKey, 0, &pCur->skipNext);
48207 sqlite3_free(pCur->pKey);
48208 pCur->pKey = 0;
52754 const void *pKey, i64 nKey, /* The key */
52802 if( NEVER(nKey>0x7fffffff || pKey==0) ){
52806 pSrc = pKey;
54184 const void *pKey, i64 nKey, /* The key of the new record */
54214 assert( (pKey==0)==(pCur->pKeyInfo==0) );
54237 rc = btreeMoveto(pCur, pKey, nKey, appendBias, &loc);
54253 rc = fillInCell(pPage, newCell, pKey, nKey, pData, nData, nZero, &szNew);
60390 const void *pKey, /* The binary record */
60394 const unsigned char *aKey = (const unsigned char *)pKey;
63128 Mem *pKey; /* MEM cell holding key for the record */
66716 Mem *pKey; /* MEM cell holding key for the record */
66737 u.bf.pKey = &aMem[pOp->p3];
66738 assert( u.bf.pKey->flags & MEM_Int );
66739 assert( memIsValid(u.bf.pKey) );
66740 REGISTER_TRACE(pOp->p3, u.bf.pKey);
66741 u.bf.iKey = u.bf.pKey->u.i;
72714 char *pKey;
72716 pKey = (char *)sqlite3IndexKeyinfo(pParse, pIdx);
72721 pKey,P4_KEYINFO_HANDOFF);
75976 KeyInfo *pKey;
75980 pKey = sqlite3IndexKeyinfo(pParse, pIdx);
75988 (char *)pKey, P4_KEYINFO_HANDOFF);
76839 Expr *pKey /* Database key for encryption extension */
76853 SQLITE_OK!=(rc = resolveAttachExpr(&sName, pKey))
76879 sqlite3ExprCode(pParse, pKey, regArgs+2);
76898 sqlite3ExprDelete(db, pKey);
76928 SQLITE_PRIVATE void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
76942 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey);
79654 KeyInfo *pKey; /* KeyInfo for index */
79678 pKey = sqlite3IndexKeyinfo(pParse, pIndex);
79680 (char *)pKey, P4_KEYINFO_HANDOFF);
81074 KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes);
81076 if( pKey ){
81077 pKey->db = pParse->db;
81078 pKey->aSortOrder = (u8 *)&(pKey->aColl[nCol]);
81079 assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) );
81083 pKey->aColl[i] = sqlite3LocateCollSeq(pParse, zColl);
81084 pKey->aSortOrder[i] = pIdx->aSortOrder[i];
81086 pKey->nField = (u16)nCol;
81090 sqlite3DbFree(db, pKey);
81091 pKey = 0;
81093 return pKey;
84191 KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIdx);
84194 sqlite3VdbeChangeP4(v, -1, (char*)pKey, P4_KEYINFO_HANDOFF);
86517 KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIdx);
86520 (char*)pKey, P4_KEYINFO_HANDOFF);
86641 KeyInfo *pKey; /* Key information for an index */
86831 pKey = sqlite3IndexKeyinfo(pParse, pSrcIdx);
86833 (char*)pKey, P4_KEYINFO_HANDOFF);
86835 pKey = sqlite3IndexKeyinfo(pParse, pDestIdx);
86837 (char*)pKey, P4_KEYINFO_HANDOFF);
96606 KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIdx);
96608 (char*)pKey, P4_KEYINFO_HANDOFF);
103103 KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIx);
103108 (char*)pKey, P4_KEYINFO_HANDOFF);
111738 void *pKey; int nKey; /* Key associated with this element */
111760 SQLITE_PRIVATE void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
111761 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
111789 #define fts3HashKey(E) ((E)->pKey)
117294 const struct Fts3Keyword *pKey = &aKeyword[ii];
117296 if( (pKey->parenOnly & ~sqlite3_fts3_enable_parentheses)!=0 ){
117300 if( nInput>=pKey->n && 0==memcmp(zInput, pKey->z, pKey->n) ){
117302 int nKey = pKey->n;
117306 if( pKey->eType==FTSQUERY_NEAR ){
117328 pRet->eType = pKey->eType;
117957 if( pH->copyKey && elem->pKey ){
117958 fts3HashFree(elem->pKey);
117969 static int fts3StrHash(const void *pKey, int nKey){
117970 const char *z = (const char *)pKey;
117987 static int fts3BinHash(const void *pKey, int nKey){
117989 const char *z = (const char *)pKey;
118081 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
118094 const void *pKey, /* The key we are searching for */
118108 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
118142 if( pH->copyKey && elem->pKey ){
118143 fts3HashFree(elem->pKey);
118156 const void *pKey,
118165 h = (*xHash)(pKey,nKey);
118167 return fts3FindElementByHash(pH,pKey,nKey, h & (pH->htsize-1));
118175 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash *pH, const void *pKey, int nKey){
118178 pElem = sqlite3Fts3HashFindElem(pH, pKey, nKey);
118199 const void *pKey, /* The key */
118212 hraw = (*xHash)(pKey, nKey);
118215 elem = fts3FindElementByHash(pH,pKey,nKey,h);
118235 if( pH->copyKey && pKey!=0 ){
118236 new_elem->pKey = fts3HashMalloc( nKey );
118237 if( new_elem->pKey==0 ){
118241 memcpy((void*)new_elem->pKey, pKey, nKey);
118243 new_elem->pKey = (void*)pKey;