Lines Matching refs:pKey

4991   const void *pKey, int nKey     /* The key */
4996 const void *pKey, int nKey /* The key */
5009 const void *pKey, int nKey /* The new key */
5014 const void *pKey, int nKey /* The new key */
8618 const char *pKey; /* Key associated with this element */ member
8625 SQLITE_PRIVATE void *sqlite3HashInsert(Hash*, const char *pKey, void *pData);
8626 SQLITE_PRIVATE void *sqlite3HashFind(const Hash*, const char *pKey);
9531 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
24934 unsigned int h = strHash(elem->pKey) % new_size;
24947 const char *pKey, /* The key we are searching for */
24956 h = strHash(pKey) % pH->htsize;
24968 if( sqlite3StrICmp(elem->pKey,pKey)==0 ){
25014 SQLITE_PRIVATE void *sqlite3HashFind(const Hash *pH, const char *pKey){
25019 assert( pKey!=0 );
25020 elem = findElementWithHash(pH, pKey, &h);
25038 SQLITE_PRIVATE void *sqlite3HashInsert(Hash *pH, const char *pKey, void *data){
25044 assert( pKey!=0 );
25045 elem = findElementWithHash(pH,pKey,&h);
25052 elem->pKey = pKey;
25059 new_elem->pKey = pKey;
25065 h = strHash(pKey) % pH->htsize;
52592 void *pKey; /* Saved key that was cursor last known position */
53655 assert( 0==pCur->pKey );
53673 void *pKey = sqlite3Malloc( pCur->nKey );
53674 if( pKey ){
53675 rc = sqlite3BtreeKey(pCur, 0, (int)pCur->nKey, pKey);
53677 pCur->pKey = pKey;
53679 sqlite3_free(pKey);
53685 assert( !pCur->apPage[0]->intKey || !pCur->pKey );
53753 sqlite3_free(pCur->pKey);
53754 pCur->pKey = 0;
53765 const void *pKey, /* Packed key if the btree is an index */
53775 if( pKey ){
53781 sqlite3VdbeRecordUnpack(pCur->pKeyInfo, (int)nKey, pKey, pIdxKey);
53812 rc = btreeMoveto(pCur, pCur->pKey, pCur->nKey, 0, &skipNext);
53814 sqlite3_free(pCur->pKey);
53815 pCur->pKey = 0;
58859 const void *pKey, i64 nKey, /* The key */
58900 if( NEVER(nKey>0x7fffffff || pKey==0) ){
58904 pSrc = pKey;
60601 const void *pKey, i64 nKey, /* The key of the new record */
60633 assert( (pKey==0)==(pCur->pKeyInfo==0) );
60664 rc = btreeMoveto(pCur, pKey, nKey, appendBias, &loc);
60679 rc = fillInCell(pPage, newCell, pKey, nKey, pData, nData, nZero, &szNew);
68006 const void *pKey, /* The binary record */
68009 const unsigned char *aKey = (const unsigned char *)pKey;
68154 int nKey, const void *pKey, /* The record to verify */
68161 const unsigned char *aKey = (const unsigned char*)pKey;
75002 Mem *pKey; /* MEM cell holding key for the record */
75022 pKey = &aMem[pOp->p3];
75023 assert( pKey->flags & MEM_Int );
75024 assert( memIsValid(pKey) );
75025 REGISTER_TRACE(pOp->p3, pKey);
75026 iKey = pKey->u.i;
80537 void *pKey;
80549 pKey = pReader->aKey;
80552 pKey = SRVAL(pSorter->list.pList);
80554 return pKey;
80562 void *pKey; int nKey; /* Sorter key to copy into pOut */
80564 pKey = vdbeSorterRowkey(pSorter, &nKey);
80570 memcpy(pOut->z, pKey, nKey);
80601 void *pKey; int nKey; /* Sorter key to compare pVal with */
80612 pKey = vdbeSorterRowkey(pSorter, &nKey);
80613 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, r2);
90274 Expr *pKey /* Database key for encryption extension */
90288 SQLITE_OK!=(rc = resolveAttachExpr(&sName, pKey))
90313 sqlite3ExprCode(pParse, pKey, regArgs+2);
90332 sqlite3ExprDelete(db, pKey);
90361 SQLITE_PRIVATE void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
90374 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey);
93513 KeyInfo *pKey; /* KeyInfo for index */
93535 pKey = sqlite3KeyInfoOfIndex(pParse, pIndex);
93540 sqlite3KeyInfoRef(pKey), P4_KEYINFO);
93555 (char *)pKey, P4_KEYINFO);
93559 assert( pKey!=0 || db->mallocFailed || pParse->nErr );
93560 if( IsUniqueIndex(pIndex) && pKey!=0 ){
95011 KeyInfo *pKey;
95014 pKey = sqlite3KeyInfoAlloc(pParse->db, nKey, nCol-nKey);
95016 pKey = sqlite3KeyInfoAlloc(pParse->db, nCol, 0);
95018 if( pKey ){
95019 assert( sqlite3KeyInfoIsWriteable(pKey) );
95023 pKey->aColl[i] = strcmp(zColl,"BINARY")==0 ? 0 :
95025 pKey->aSortOrder[i] = pIdx->aSortOrder[i];
95028 sqlite3KeyInfoUnref(pKey);
95029 pKey = 0;
95032 return pKey;
132655 void *pKey; int nKey; /* Key associated with this element */
132677 SQLITE_PRIVATE void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
132678 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
132706 #define fts3HashKey(E) ((E)->pKey)
139874 const struct Fts3Keyword *pKey = &aKeyword[ii];
139876 if( (pKey->parenOnly & ~sqlite3_fts3_enable_parentheses)!=0 ){
139880 if( nInput>=pKey->n && 0==memcmp(zInput, pKey->z, pKey->n) ){
139882 int nKey = pKey->n;
139886 if( pKey->eType==FTSQUERY_NEAR ){
139908 pRet->eType = pKey->eType;
140809 if( pH->copyKey && elem->pKey ){
140810 fts3HashFree(elem->pKey);
140821 static int fts3StrHash(const void *pKey, int nKey){
140822 const char *z = (const char *)pKey;
140839 static int fts3BinHash(const void *pKey, int nKey){
140841 const char *z = (const char *)pKey;
140933 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
140946 const void *pKey, /* The key we are searching for */
140960 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
140994 if( pH->copyKey && elem->pKey ){
140995 fts3HashFree(elem->pKey);
141008 const void *pKey,
141017 h = (*xHash)(pKey,nKey);
141019 return fts3FindElementByHash(pH,pKey,nKey, h & (pH->htsize-1));
141027 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash *pH, const void *pKey, int nKey){
141030 pElem = sqlite3Fts3HashFindElem(pH, pKey, nKey);
141051 const void *pKey, /* The key */
141064 hraw = (*xHash)(pKey, nKey);
141067 elem = fts3FindElementByHash(pH,pKey,nKey,h);
141087 if( pH->copyKey && pKey!=0 ){
141088 new_elem->pKey = fts3HashMalloc( nKey );
141089 if( new_elem->pKey==0 ){
141093 memcpy((void*)new_elem->pKey, pKey, nKey);
141095 new_elem->pKey = (void*)pKey;