Lines Matching refs:pDef
12981 FuncDef *pDef; /* Used only when flags==MEM_Agg */ member
58600 assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef );
58624 sqlite3VdbeMemFinalize(p, p->u.pDef);
60095 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
60096 if( ALWAYS(pDef) && (pDef->flags & SQLITE_FUNC_EPHEM)!=0 ){
60097 sqlite3DbFree(db, pDef);
60406 FuncDef *pDef = pOp->p4.pFunc;
60407 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
63329 pMem->u.pDef = p->pFunc;
73693 FuncDef *pDef; /* Information about the function */
73700 pDef = sqlite3FindFunction(pParse->db, zId, nId, n, enc, 0);
73701 if( pDef==0 ){
73702 pDef = sqlite3FindFunction(pParse->db, zId, nId, -1, enc, 0);
73703 if( pDef==0 ){
73709 is_agg = pDef->xFunc==0;
73712 if( pDef ){
73713 auth = sqlite3AuthCheck(pParse, SQLITE_FUNCTION, 0, pDef->zName, 0);
73717 pDef->zName);
76941 FuncDef *pDef; /* The function definition object */
76961 pDef = sqlite3FindFunction(db, zId, nId, nFarg, enc, 0);
76962 if( pDef==0 ){
76971 if( pDef->flags & SQLITE_FUNC_COALESCE ){
77009 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr);
77011 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr);
77018 if( (pDef->flags & SQLITE_FUNC_NEEDCOLL)!=0 && !pColl ){
77022 if( pDef->flags & SQLITE_FUNC_NEEDCOLL ){
77027 (char*)pDef, P4_FUNCDEF);
85297 FuncDef *pDef /* The function definition to insert */
85300 int nName = sqlite3Strlen30(pDef->zName);
85301 u8 c1 = (u8)pDef->zName[0];
85303 pOther = functionSearch(pHash, h, pDef->zName, nName);
85305 assert( pOther!=pDef && pOther->pNext!=pDef );
85306 pDef->pNext = pOther->pNext;
85307 pOther->pNext = pDef;
85309 pDef->pNext = 0;
85310 pDef->pHash = pHash->a[h];
85311 pHash->a[h] = pDef;
87575 FuncDef *pDef;
87576 pDef = sqlite3FindFunction(db, zName, sqlite3Strlen30(zName),
87578 if( ALWAYS(pDef) ){
87579 pDef->flags = flagVal;
87612 FuncDef *pDef;
87620 pDef = sqlite3FindFunction(db, pExpr->u.zToken,
87623 if( NEVER(pDef==0) || (pDef->flags & SQLITE_FUNC_LIKE)==0 ){
87631 memcpy(aWc, pDef->pUserData, 3);
87635 *pIsNocase = (pDef->flags & SQLITE_FUNC_CASE)==0;
102396 FuncDef *pDef, /* Function to possibly overload */
102412 if( NEVER(pExpr==0) ) return pDef;
102413 if( pExpr->op!=TK_COLUMN ) return pDef;
102415 if( NEVER(pTab==0) ) return pDef;
102416 if( (pTab->tabFlags & TF_Virtual)==0 ) return pDef;
102421 if( pMod->xFindFunction==0 ) return pDef;
102426 zLowerName = sqlite3DbStrDup(db, pDef->zName);
102435 return pDef;
102441 + sqlite3Strlen30(pDef->zName) + 1);
102443 return pDef;
102445 *pNew = *pDef;
102447 memcpy(pNew->zName, pDef->zName, sqlite3Strlen30(pDef->zName)+1);
128269 Fts3DeferredToken *pDef;
128270 for(pDef=pCsr->pDeferred; pDef; pDef=pDef->pNext){
128271 fts3PendingListDelete(pDef->pList);
128272 pDef->pList = 0;
128281 Fts3DeferredToken *pDef;
128283 for(pDef=pCsr->pDeferred; pDef; pDef=pNext){
128284 pNext = pDef->pNext;
128285 fts3PendingListDelete(pDef->pList);
128286 sqlite3_free(pDef);
128304 Fts3DeferredToken *pDef; /* Used to iterate through deferred tokens */
128325 for(pDef=pCsr->pDeferred; pDef && rc==SQLITE_OK; pDef=pDef->pNext){
128326 Fts3PhraseToken *pPT = pDef->pToken;
128327 if( (pDef->iCol>=p->nColumn || pDef->iCol==i)
128332 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
128340 for(pDef=pCsr->pDeferred; pDef && rc==SQLITE_OK; pDef=pDef->pNext){
128341 if( pDef->pList ){
128342 rc = fts3PendingListAppendVarint(&pDef->pList, 0);