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;
52610 void *pKey; /* Saved key that was cursor last known position */
53673 assert( 0==pCur->pKey );
53691 void *pKey = sqlite3Malloc( pCur->nKey );
53692 if( pKey ){
53693 rc = sqlite3BtreeKey(pCur, 0, (int)pCur->nKey, pKey);
53695 pCur->pKey = pKey;
53697 sqlite3_free(pKey);
53703 assert( !pCur->apPage[0]->intKey || !pCur->pKey );
53771 sqlite3_free(pCur->pKey);
53772 pCur->pKey = 0;
53783 const void *pKey, /* Packed key if the btree is an index */
53793 if( pKey ){
53799 sqlite3VdbeRecordUnpack(pCur->pKeyInfo, (int)nKey, pKey, pIdxKey);
53830 rc = btreeMoveto(pCur, pCur->pKey, pCur->nKey, 0, &skipNext);
53832 sqlite3_free(pCur->pKey);
53833 pCur->pKey = 0;
58877 const void *pKey, i64 nKey, /* The key */
58918 if( NEVER(nKey>0x7fffffff || pKey==0) ){
58922 pSrc = pKey;
60619 const void *pKey, i64 nKey, /* The key of the new record */
60651 assert( (pKey==0)==(pCur->pKeyInfo==0) );
60682 rc = btreeMoveto(pCur, pKey, nKey, appendBias, &loc);
60697 rc = fillInCell(pPage, newCell, pKey, nKey, pData, nData, nZero, &szNew);
68024 const void *pKey, /* The binary record */
68027 const unsigned char *aKey = (const unsigned char *)pKey;
68172 int nKey, const void *pKey, /* The record to verify */
68179 const unsigned char *aKey = (const unsigned char*)pKey;
75020 Mem *pKey; /* MEM cell holding key for the record */
75040 pKey = &aMem[pOp->p3];
75041 assert( pKey->flags & MEM_Int );
75042 assert( memIsValid(pKey) );
75043 REGISTER_TRACE(pOp->p3, pKey);
75044 iKey = pKey->u.i;
80555 void *pKey;
80567 pKey = pReader->aKey;
80570 pKey = SRVAL(pSorter->list.pList);
80572 return pKey;
80580 void *pKey; int nKey; /* Sorter key to copy into pOut */
80582 pKey = vdbeSorterRowkey(pSorter, &nKey);
80588 memcpy(pOut->z, pKey, nKey);
80619 void *pKey; int nKey; /* Sorter key to compare pVal with */
80630 pKey = vdbeSorterRowkey(pSorter, &nKey);
80631 sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, r2);
90292 Expr *pKey /* Database key for encryption extension */
90306 SQLITE_OK!=(rc = resolveAttachExpr(&sName, pKey))
90331 sqlite3ExprCode(pParse, pKey, regArgs+2);
90350 sqlite3ExprDelete(db, pKey);
90379 SQLITE_PRIVATE void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
90392 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey);
93531 KeyInfo *pKey; /* KeyInfo for index */
93553 pKey = sqlite3KeyInfoOfIndex(pParse, pIndex);
93558 sqlite3KeyInfoRef(pKey), P4_KEYINFO);
93573 (char *)pKey, P4_KEYINFO);
93577 assert( pKey!=0 || db->mallocFailed || pParse->nErr );
93578 if( IsUniqueIndex(pIndex) && pKey!=0 ){
95029 KeyInfo *pKey;
95032 pKey = sqlite3KeyInfoAlloc(pParse->db, nKey, nCol-nKey);
95034 pKey = sqlite3KeyInfoAlloc(pParse->db, nCol, 0);
95036 if( pKey ){
95037 assert( sqlite3KeyInfoIsWriteable(pKey) );
95041 pKey->aColl[i] = strcmp(zColl,"BINARY")==0 ? 0 :
95043 pKey->aSortOrder[i] = pIdx->aSortOrder[i];
95046 sqlite3KeyInfoUnref(pKey);
95047 pKey = 0;
95050 return pKey;
132673 void *pKey; int nKey; /* Key associated with this element */
132695 SQLITE_PRIVATE void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
132696 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
132724 #define fts3HashKey(E) ((E)->pKey)
139904 const struct Fts3Keyword *pKey = &aKeyword[ii];
139906 if( (pKey->parenOnly & ~sqlite3_fts3_enable_parentheses)!=0 ){
139910 if( nInput>=pKey->n && 0==memcmp(zInput, pKey->z, pKey->n) ){
139912 int nKey = pKey->n;
139916 if( pKey->eType==FTSQUERY_NEAR ){
139938 pRet->eType = pKey->eType;
140839 if( pH->copyKey && elem->pKey ){
140840 fts3HashFree(elem->pKey);
140851 static int fts3StrHash(const void *pKey, int nKey){
140852 const char *z = (const char *)pKey;
140869 static int fts3BinHash(const void *pKey, int nKey){
140871 const char *z = (const char *)pKey;
140963 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
140976 const void *pKey, /* The key we are searching for */
140990 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
141024 if( pH->copyKey && elem->pKey ){
141025 fts3HashFree(elem->pKey);
141038 const void *pKey,
141047 h = (*xHash)(pKey,nKey);
141049 return fts3FindElementByHash(pH,pKey,nKey, h & (pH->htsize-1));
141057 SQLITE_PRIVATE void *sqlite3Fts3HashFind(const Fts3Hash *pH, const void *pKey, int nKey){
141060 pElem = sqlite3Fts3HashFindElem(pH, pKey, nKey);
141081 const void *pKey, /* The key */
141094 hraw = (*xHash)(pKey, nKey);
141097 elem = fts3FindElementByHash(pH,pKey,nKey,h);
141117 if( pH->copyKey && pKey!=0 ){
141118 new_elem->pKey = fts3HashMalloc( nKey );
141119 if( new_elem->pKey==0 ){
141123 memcpy((void*)new_elem->pKey, pKey, nKey);
141125 new_elem->pKey = (void*)pKey;