Home
last modified time | relevance | path

Searched refs:pDef (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/third_party/sqlite/src/src/
Dcallback.c285 FuncDef *pDef /* The function definition to insert */ in sqlite3FuncDefInsert() argument
288 int nName = sqlite3Strlen30(pDef->zName); in sqlite3FuncDefInsert()
289 u8 c1 = (u8)pDef->zName[0]; in sqlite3FuncDefInsert()
291 pOther = functionSearch(pHash, h, pDef->zName, nName); in sqlite3FuncDefInsert()
293 assert( pOther!=pDef && pOther->pNext!=pDef ); in sqlite3FuncDefInsert()
294 pDef->pNext = pOther->pNext; in sqlite3FuncDefInsert()
295 pOther->pNext = pDef; in sqlite3FuncDefInsert()
297 pDef->pNext = 0; in sqlite3FuncDefInsert()
298 pDef->pHash = pHash->a[h]; in sqlite3FuncDefInsert()
299 pHash->a[h] = pDef; in sqlite3FuncDefInsert()
Dvtab.c857 FuncDef *pDef, /* Function to possibly overload */ in sqlite3VtabOverloadFunction() argument
873 if( NEVER(pExpr==0) ) return pDef; in sqlite3VtabOverloadFunction()
874 if( pExpr->op!=TK_COLUMN ) return pDef; in sqlite3VtabOverloadFunction()
876 if( NEVER(pTab==0) ) return pDef; in sqlite3VtabOverloadFunction()
877 if( (pTab->tabFlags & TF_Virtual)==0 ) return pDef; in sqlite3VtabOverloadFunction()
882 if( pMod->xFindFunction==0 ) return pDef; in sqlite3VtabOverloadFunction()
887 zLowerName = sqlite3DbStrDup(db, pDef->zName); in sqlite3VtabOverloadFunction()
896 return pDef; in sqlite3VtabOverloadFunction()
902 + sqlite3Strlen30(pDef->zName) + 1); in sqlite3VtabOverloadFunction()
904 return pDef; in sqlite3VtabOverloadFunction()
[all …]
Dresolve.c522 FuncDef *pDef; /* Information about the function */ in resolveExprStep() local
529 pDef = sqlite3FindFunction(pParse->db, zId, nId, n, enc, 0); in resolveExprStep()
530 if( pDef==0 ){ in resolveExprStep()
531 pDef = sqlite3FindFunction(pParse->db, zId, nId, -1, enc, 0); in resolveExprStep()
532 if( pDef==0 ){ in resolveExprStep()
538 is_agg = pDef->xFunc==0; in resolveExprStep()
541 if( pDef ){ in resolveExprStep()
542 auth = sqlite3AuthCheck(pParse, SQLITE_FUNCTION, 0, pDef->zName, 0); in resolveExprStep()
546 pDef->zName); in resolveExprStep()
Dfunc.c1428 FuncDef *pDef; in setLikeOptFlag() local
1429 pDef = sqlite3FindFunction(db, zName, sqlite3Strlen30(zName), in setLikeOptFlag()
1431 if( ALWAYS(pDef) ){ in setLikeOptFlag()
1432 pDef->flags = flagVal; in setLikeOptFlag()
1465 FuncDef *pDef; in sqlite3IsLikeFunction() local
1473 pDef = sqlite3FindFunction(db, pExpr->u.zToken, in sqlite3IsLikeFunction()
1476 if( NEVER(pDef==0) || (pDef->flags & SQLITE_FUNC_LIKE)==0 ){ in sqlite3IsLikeFunction()
1484 memcpy(aWc, pDef->pUserData, 3); in sqlite3IsLikeFunction()
1488 *pIsNocase = (pDef->flags & SQLITE_FUNC_CASE)==0; in sqlite3IsLikeFunction()
Dexpr.c2529 FuncDef *pDef; /* The function definition object */ in sqlite3ExprCodeTarget() local
2549 pDef = sqlite3FindFunction(db, zId, nId, nFarg, enc, 0); in sqlite3ExprCodeTarget()
2550 if( pDef==0 ){ in sqlite3ExprCodeTarget()
2559 if( pDef->flags & SQLITE_FUNC_COALESCE ){ in sqlite3ExprCodeTarget()
2597 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr); in sqlite3ExprCodeTarget()
2599 pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr); in sqlite3ExprCodeTarget()
2606 if( (pDef->flags & SQLITE_FUNC_NEEDCOLL)!=0 && !pColl ){ in sqlite3ExprCodeTarget()
2610 if( pDef->flags & SQLITE_FUNC_NEEDCOLL ){ in sqlite3ExprCodeTarget()
2615 (char*)pDef, P4_FUNCDEF); in sqlite3ExprCodeTarget()
DvdbeInt.h144 FuncDef *pDef; /* Used only when flags==MEM_Agg */ member
Dvdbeaux.c577 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){ in freeEphemeralFunction() argument
578 if( ALWAYS(pDef) && (pDef->flags & SQLITE_FUNC_EPHEM)!=0 ){ in freeEphemeralFunction()
579 sqlite3DbFree(db, pDef); in freeEphemeralFunction()
892 FuncDef *pDef = pOp->p4.pFunc; in displayP4() local
893 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg); in displayP4()
Dvdbemem.c251 assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef ); in sqlite3VdbeMemFinalize()
280 sqlite3VdbeMemFinalize(p, p->u.pDef); in sqlite3VdbeMemReleaseExternal()
Dvdbeapi.c574 pMem->u.pDef = p->pFunc; in sqlite3_aggregate_context()
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_write.c2515 Fts3DeferredToken *pDef; in sqlite3Fts3FreeDeferredDoclists() local
2516 for(pDef=pCsr->pDeferred; pDef; pDef=pDef->pNext){ in sqlite3Fts3FreeDeferredDoclists()
2517 sqlite3_free(pDef->pList); in sqlite3Fts3FreeDeferredDoclists()
2518 pDef->pList = 0; in sqlite3Fts3FreeDeferredDoclists()
2530 Fts3DeferredToken *pDef; in sqlite3Fts3FreeDeferredTokens() local
2532 for(pDef=pCsr->pDeferred; pDef; pDef=pNext){ in sqlite3Fts3FreeDeferredTokens()
2533 pNext = pDef->pNext; in sqlite3Fts3FreeDeferredTokens()
2534 sqlite3_free(pDef->pList); in sqlite3Fts3FreeDeferredTokens()
2535 sqlite3_free(pDef); in sqlite3Fts3FreeDeferredTokens()
2553 Fts3DeferredToken *pDef; /* Used to iterate through deferred tokens */ in sqlite3Fts3CacheDeferredDoclists() local
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c12373 FuncDef *pDef; /* Used only when flags==MEM_Agg */ member
56395 assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef );
56424 sqlite3VdbeMemFinalize(p, p->u.pDef);
57881 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
57882 if( ALWAYS(pDef) && (pDef->flags & SQLITE_FUNC_EPHEM)!=0 ){
57883 sqlite3DbFree(db, pDef);
58196 FuncDef *pDef = pOp->p4.pFunc;
58197 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
61087 pMem->u.pDef = p->pFunc;
70232 FuncDef *pDef; /* Information about the function */
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c12981 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 */
[all …]
/external/sqlite/dist/
Dsqlite3.c12981 FuncDef *pDef; /* Used only when flags==MEM_Agg */ member
58628 assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef );
58652 sqlite3VdbeMemFinalize(p, p->u.pDef);
60123 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
60124 if( ALWAYS(pDef) && (pDef->flags & SQLITE_FUNC_EPHEM)!=0 ){
60125 sqlite3DbFree(db, pDef);
60434 FuncDef *pDef = pOp->p4.pFunc;
60435 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
63357 pMem->u.pDef = p->pFunc;
73729 FuncDef *pDef; /* Information about the function */
[all …]