Lines Matching refs:pDef
14670 FuncDef *pDef; /* Used only when flags==MEM_Agg */ member
63418 assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef );
63449 sqlite3VdbeMemFinalize(p, p->u.pDef);
65473 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
65474 if( ALWAYS(pDef) && (pDef->funcFlags & SQLITE_FUNC_EPHEM)!=0 ){
65475 sqlite3DbFree(db, pDef);
65868 FuncDef *pDef = pOp->p4.pFunc;
65869 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
69668 pMem->u.pDef = p->pFunc;
81985 FuncDef *pDef; /* Information about the function */
81992 pDef = sqlite3FindFunction(pParse->db, zId, nId, n, enc, 0);
81993 if( pDef==0 ){
81994 pDef = sqlite3FindFunction(pParse->db, zId, nId, -2, enc, 0);
81995 if( pDef==0 ){
82001 is_agg = pDef->xFunc==0;
82002 if( pDef->funcFlags & SQLITE_FUNC_UNLIKELY ){
82022 pExpr->iTable = pDef->zName[0]=='u' ? 8388608 : 125829120;
82026 auth = sqlite3AuthCheck(pParse, SQLITE_FUNCTION, 0, pDef->zName, 0);
82030 pDef->zName);
82037 if( pDef->funcFlags & SQLITE_FUNC_CONSTANT ){
82063 assert( pDef!=0 );
82066 testcase( (pDef->funcFlags & SQLITE_FUNC_MINMAX)!=0 );
82067 pNC2->ncFlags |= NC_HasAgg | (pDef->funcFlags & SQLITE_FUNC_MINMAX);
85627 FuncDef *pDef; /* The function definition object */
85645 pDef = sqlite3FindFunction(db, zId, nId, nFarg, enc, 0);
85646 if( pDef==0 || pDef->xFunc==0 ){
85655 if( pDef->funcFlags & SQLITE_FUNC_COALESCE ){
85674 if( pDef->funcFlags & SQLITE_FUNC_UNLIKELY ){
85685 if( (pDef->funcFlags & SQLITE_FUNC_NEEDCOLL)!=0 && !pColl ){
85702 if( (pDef->funcFlags & (SQLITE_FUNC_LENGTH|SQLITE_FUNC_TYPEOF))!=0 ){
85710 testcase( pDef->funcFlags & OPFLAG_LENGTHARG );
85712 pDef->funcFlags & (OPFLAG_LENGTHARG|OPFLAG_TYPEOFARG);
85737 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr);
85739 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr);
85742 if( pDef->funcFlags & SQLITE_FUNC_NEEDCOLL ){
85747 (char*)pDef, P4_FUNCDEF);
95411 FuncDef *pDef /* The function definition to insert */
95414 int nName = sqlite3Strlen30(pDef->zName);
95415 u8 c1 = (u8)pDef->zName[0];
95417 pOther = functionSearch(pHash, h, pDef->zName, nName);
95419 assert( pOther!=pDef && pOther->pNext!=pDef );
95420 pDef->pNext = pOther->pNext;
95421 pOther->pNext = pDef;
95423 pDef->pNext = 0;
95424 pDef->pHash = pHash->a[h];
95425 pHash->a[h] = pDef;
98043 FuncDef *pDef;
98044 pDef = sqlite3FindFunction(db, zName, sqlite3Strlen30(zName),
98046 if( ALWAYS(pDef) ){
98047 pDef->funcFlags |= flagVal;
98085 FuncDef *pDef;
98093 pDef = sqlite3FindFunction(db, pExpr->u.zToken,
98096 if( NEVER(pDef==0) || (pDef->funcFlags & SQLITE_FUNC_LIKE)==0 ){
98104 memcpy(aWc, pDef->pUserData, 3);
98108 *pIsNocase = (pDef->funcFlags & SQLITE_FUNC_CASE)==0;
115559 FuncDef *pDef, /* Function to possibly overload */
115575 if( NEVER(pExpr==0) ) return pDef;
115576 if( pExpr->op!=TK_COLUMN ) return pDef;
115578 if( NEVER(pTab==0) ) return pDef;
115579 if( (pTab->tabFlags & TF_Virtual)==0 ) return pDef;
115584 if( pMod->xFindFunction==0 ) return pDef;
115589 zLowerName = sqlite3DbStrDup(db, pDef->zName);
115598 return pDef;
115604 + sqlite3Strlen30(pDef->zName) + 1);
115606 return pDef;
115608 *pNew = *pDef;
115610 memcpy(pNew->zName, pDef->zName, sqlite3Strlen30(pDef->zName)+1);
148270 Fts3DeferredToken *pDef;
148271 for(pDef=pCsr->pDeferred; pDef; pDef=pDef->pNext){
148272 fts3PendingListDelete(pDef->pList);
148273 pDef->pList = 0;
148282 Fts3DeferredToken *pDef;
148284 for(pDef=pCsr->pDeferred; pDef; pDef=pNext){
148285 pNext = pDef->pNext;
148286 fts3PendingListDelete(pDef->pList);
148287 sqlite3_free(pDef);
148305 Fts3DeferredToken *pDef; /* Used to iterate through deferred tokens */
148327 for(pDef=pCsr->pDeferred; pDef && rc==SQLITE_OK; pDef=pDef->pNext){
148328 Fts3PhraseToken *pPT = pDef->pToken;
148329 if( (pDef->iCol>=p->nColumn || pDef->iCol==i)
148334 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
148343 for(pDef=pCsr->pDeferred; pDef && rc==SQLITE_OK; pDef=pDef->pNext){
148344 if( pDef->pList ){
148345 rc = fts3PendingListAppendVarint(&pDef->pList, 0);