Home | History | Annotate | Download | only in amalgamation

Lines Matching defs:nArg

4004 ** ^The third parameter (nArg)
4051 ** nArg parameter is a better match than a function implementation with
4052 ** a negative nArg. ^A function where the preferred text encoding
4069 int nArg,
4079 int nArg,
4089 int nArg,
5152 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5364 SQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
6724 void (*xNotify)(void **apArg, int nArg), /* Callback function to invoke */
9321 i16 nArg; /* Number of arguments. -1 means unlimited */
9369 ** FUNCTION(zName, nArg, iArg, bNC, xFunc)
9371 ** implemented by C function xFunc that accepts nArg arguments. The
9376 ** AGGREGATE(zName, nArg, iArg, bNC, xStep, xFinal)
9382 ** LIKEFUNC(zName, nArg, pArg, flags)
9384 ** that accepts nArg arguments and is implemented by a call to C
9390 #define FUNCTION(zName, nArg, iArg, bNC, xFunc) \
9391 {nArg, SQLITE_UTF8, bNC*SQLITE_FUNC_NEEDCOLL, \
9393 #define STR_FUNCTION(zName, nArg, pArg, bNC, xFunc) \
9394 {nArg, SQLITE_UTF8, bNC*SQLITE_FUNC_NEEDCOLL, \
9396 #define LIKEFUNC(zName, nArg, arg, flags) \
9397 {nArg, SQLITE_UTF8, flags, (void *)arg, 0, likeFunc, 0, 0, #zName, 0, 0}
9398 #define AGGREGATE(zName, nArg, arg, nc, xStep, xFinal) \
9399 {nArg, SQLITE_UTF8, nc*SQLITE_FUNC_NEEDCOLL, \
11420 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
58018 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
58540 int nArg, /* Maximum number of args in SubPrograms */
58578 resolveP2Values(p, &nArg);
58601 p->apArg = allocSpace(p->apArg, nArg*sizeof(Mem*), &zCsr, zEnd, &nByte);
62841 int nArg;
62872 int nArg;
67995 int nArg;
68020 u.ci.nArg = (int)u.ci.pArgc->u.i;
68027 for(u.ci.i = 0; u.ci.i<u.ci.nArg; u.ci.i++){
68033 rc = u.ci.pModule->xFilter(u.ci.pVtabCursor, u.ci.iQuery, pOp->p4.z, u.ci.nArg, u.ci.apArg);
68211 int nArg;
68220 u.cm.nArg = pOp->p2;
68225 for(u.cm.i=0; u.cm.i<u.cm.nArg; u.cm.i++){
68232 rc = u.cm.pModule->xUpdate(u.cm.pVtab, u.cm.nArg, u.cm.apArg, &u.cm.rowid);
68235 assert( u.cm.nArg>1 && u.cm.apArg[0] && (u.cm.apArg[0]->flags&MEM_Null) );
76382 sqlite3VdbeAddOp3(v, OP_Function, 0, regArgs+3-pFunc->nArg, regArgs+3);
76383 assert( pFunc->nArg==-1 || (pFunc->nArg&0xff)==pFunc->nArg );
76384 sqlite3VdbeChangeP5(v, (u8)(pFunc->nArg));
76407 1, /* nArg */
76429 3, /* nArg */
80820 ** matches the request for a function with nArg arguments in a system
80826 ** 0: Not a match, or if nArg<0 and the function is has no implementation.
80839 static int matchQuality(FuncDef *p, int nArg, u8 enc){
80841 if( p->nArg==-1 || p->nArg==nArg
80842 || (nArg==-1 && (p->xFunc!=0 || p->xStep!=0))
80845 if( p->nArg==nArg || nArg==-1 ){
80912 ** and the nArg parameter is -1, then only a function that accepts
80915 ** If createFlag is false and nArg is -1, then the first valid
80927 int nArg, /* Number of arguments. -1 means any number */
80944 int score = matchQuality(p, nArg, enc);
80969 int score = matchQuality(p, nArg, enc);
80982 if( createFlag && (bestScore<6 || pBest->nArg!=nArg) &&
80985 pBest->nArg = (u16)nArg;
86633 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
93487 int nArg;
93493 nArg = pList->nExpr;
93494 regAgg = sqlite3GetTempRange(pParse, nArg);
93497 nArg = 0;
93502 assert( nArg==1 );
93510 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
93520 sqlite3VdbeChangeP5(v, (u8)nArg);
93521 sqlite3ExprCacheAffinityChange(pParse, regAgg, nArg);
93522 sqlite3ReleaseTempRange(pParse, regAgg, nArg);
97152 int nArg = pTab->nModuleArg;
97173 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
97570 int nArg, /* Number of arguments to the function */
97604 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
108263 int nArg,
108279 (nArg<-1 || nArg>SQLITE_MAX_FUNCTION_ARG) ||
108296 rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF8,
108299 rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF16LE,
108316 p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 0);
108317 if( p && p->iPrefEnc==enc && p->nArg==nArg ){
108328 p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 1);
108347 p->nArg = (u16)nArg;
108357 int nArg,
108364 return sqlite3_create_function_v2(db, zFunc, nArg, enc, p, xFunc, xStep,
108371 int nArg,
108391 rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p, xFunc, xStep, xFinal, pArg);
108408 int nArg,
108420 rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xFunc, xStep, xFinal,0);
108444 int nArg
108449 if( sqlite3FindFunction(db, zName, nName, nArg, SQLITE_UTF8, 0)==0 ){
108450 sqlite3CreateFunc(db, zName, nArg, SQLITE_UTF8,
110144 int nArg = 0; /* Number of entries in aArg[] */
110165 if( p->xUnlockNotify!=xUnlockNotify && nArg!=0 ){
110166 xUnlockNotify(aArg, nArg);
110167 nArg = 0;
110172 assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn );
110173 if( (!aDyn && nArg==(int)ArraySize(aStatic))
110174 || (aDyn && nArg==(int)(sqlite3MallocSize(aDyn)/sizeof(void*)))
110177 void **pNew = (void **)sqlite3Malloc(nArg*sizeof(void *)*2);
110179 memcpy(pNew, aArg, nArg*sizeof(void *));
110207 xUnlockNotify(aArg, nArg);
110208 nArg = 0;
110213 aArg[nArg++] = p->pUnlockArg;
110230 if( nArg!=0 ){
110231 xUnlockNotify(aArg, nArg);
116255 int nArg, /* Size of argument array */
116259 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
116542 int nArg, /* Number of SQL function arguments */
116559 UNUSED_PARAMETER(nArg);
122548 int nArg, /* Size of argument array */
122597 if( nArg>1 && rc==SQLITE_OK ){
123908 int nArg; /* Bytes in zArg */
123921 nArg = (int)strlen(zArg);
123922 pCsr->aMatchinfo = (u32 *)sqlite3_malloc(sizeof(u32)*nMatchinfo + nArg + 1);
123927 memcpy(pCsr->zMatchinfo, zArg, nArg+1);
127355 static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
127361 UNUSED_PARAMETER(nArg);
127394 static void rtreedepth(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
127395 UNUSED_PARAMETER(nArg);
127449 static void geomCallback(sqlite3_context *ctx, int nArg, sqlite3_value **aArg){
127454 nBlob = sizeof(RtreeMatchArg) + (nArg-1)*sizeof(double);
127463 pBlob->nParam = nArg;
127464 for(i=0; i<nArg; i++){
127750 static void icuRegexpFunc(sqlite3_context *p, int nArg, sqlite3_value **apArg){
127756 (void)nArg; /* Unused parameter */
127833 static void icuCaseFunc16(sqlite3_context *p, int nArg, sqlite3_value **apArg){
127842 assert(nArg==1 || nArg==2);
127843 if( nArg==2 ){
127920 int nArg,
127930 assert(nArg==2);
127960 int nArg; /* Number of arguments */
127989 db, p->zName, p->nArg, p->enc, p->pContext, p->xFunc, 0, 0