Lines Matching refs:nArg

6093 ** ^The third parameter (nArg)
6176 ** nArg parameter is a better match than a function implementation with
6177 ** a negative nArg. ^A function where the preferred text encoding
6194 int nArg,
6204 int nArg,
6214 int nArg,
6225 int nArg,
7771 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
8089 SQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
9840 void (*xNotify)(void **apArg, int nArg), /* Callback function to invoke */
13132 int (*xCreate)(void*, const char **azArg, int nArg, Fts5Tokenizer **ppOut);
17066 i8 nArg; /* Number of arguments. -1 means unlimited */
17152 ** FUNCTION(zName, nArg, iArg, bNC, xFunc)
17154 ** implemented by C function xFunc that accepts nArg arguments. The
17159 ** VFUNCTION(zName, nArg, iArg, bNC, xFunc)
17162 ** SFUNCTION(zName, nArg, iArg, bNC, xFunc)
17166 ** INLINE_FUNC(zName, nArg, iFuncId, mFlags)
17172 ** TEST_FUNC(zName, nArg, iFuncId, mFlags)
17178 ** DFUNCTION(zName, nArg, iArg, bNC, xFunc)
17185 ** PURE_DATE(zName, nArg, iArg, bNC, xFunc)
17191 ** AGGREGATE(zName, nArg, iArg, bNC, xStep, xFinal)
17197 ** WFUNCTION(zName, nArg, iArg, xStep, xFinal, xValue, xInverse)
17203 ** LIKEFUNC(zName, nArg, pArg, flags)
17205 ** that accepts nArg arguments and is implemented by a call to C
17211 #define FUNCTION(zName, nArg, iArg, bNC, xFunc) \
17212 {nArg, SQLITE_FUNC_CONSTANT|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
17214 #define VFUNCTION(zName, nArg, iArg, bNC, xFunc) \
17215 {nArg, SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
17217 #define SFUNCTION(zName, nArg, iArg, bNC, xFunc) \
17218 {nArg, SQLITE_UTF8|SQLITE_DIRECTONLY|SQLITE_FUNC_UNSAFE, \
17220 #define INLINE_FUNC(zName, nArg, iArg, mFlags) \
17221 {nArg, SQLITE_UTF8|SQLITE_FUNC_INLINE|SQLITE_FUNC_CONSTANT|(mFlags), \
17223 #define TEST_FUNC(zName, nArg, iArg, mFlags) \
17224 {nArg, SQLITE_UTF8|SQLITE_FUNC_INTERNAL|SQLITE_FUNC_TEST| \
17227 #define DFUNCTION(zName, nArg, iArg, bNC, xFunc) \
17228 {nArg, SQLITE_FUNC_SLOCHNG|SQLITE_UTF8, \
17230 #define PURE_DATE(zName, nArg, iArg, bNC, xFunc) \
17231 {nArg, SQLITE_FUNC_SLOCHNG|SQLITE_UTF8|SQLITE_FUNC_CONSTANT, \
17233 #define FUNCTION2(zName, nArg, iArg, bNC, xFunc, extraFlags) \
17234 {nArg,SQLITE_FUNC_CONSTANT|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL)|extraFlags,\
17236 #define STR_FUNCTION(zName, nArg, pArg, bNC, xFunc) \
17237 {nArg, SQLITE_FUNC_SLOCHNG|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
17239 #define LIKEFUNC(zName, nArg, arg, flags) \
17240 {nArg, SQLITE_FUNC_CONSTANT|SQLITE_UTF8|flags, \
17242 #define WAGGREGATE(zName, nArg, arg, nc, xStep, xFinal, xValue, xInverse, f) \
17243 {nArg, SQLITE_UTF8|(nc*SQLITE_FUNC_NEEDCOLL)|f, \
17245 #define INTERNAL_FUNCTION(zName, nArg, xFunc) \
17246 {nArg, SQLITE_FUNC_INTERNAL|SQLITE_UTF8|SQLITE_FUNC_CONSTANT, \
19405 int nArg; /* Total number of arguments */
20089 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
28238 if( p->nArg<=p->nUsed ) return 0;
28242 if( p->nArg<=p->nUsed ) return 0.0;
28246 if( p->nArg<=p->nUsed ) return 0;
29788 pWin->pFunc->zName, pWin->pFunc->nArg);
77892 int nArg, /* Number of argument */
77901 nByte = sizeof(*pCtx) + (nArg-1)*sizeof(sqlite3_value*);
77912 pCtx->argc = nArg;
79206 sqlite3_str_appendf(&x, "%s(%d)", pDef->zName, pDef->nArg);
79211 sqlite3_str_appendf(&x, "%s(%d)", pDef->zName, pDef->nArg);
79885 int nArg; /* Number of arguments in subprograms */
79899 nArg = pParse->nMaxArg;
79920 resolveP2Values(p, &nArg);
79959 p->apArg = allocSpace(&x, 0, nArg*sizeof(Mem*));
79970 p->apArg = allocSpace(&x, p->apArg, nArg*sizeof(Mem*));
92424 int nArg;
92448 nArg = (int)pArgc->u.i;
92454 for(i = 0; i<nArg; i++){
92457 rc = pModule->xFilter(pVCur, iQuery, pOp->p4.z, nArg, apArg);
92637 int nArg;
92655 nArg = pOp->p2;
92661 for(i=0; i<nArg; i++){
92668 rc = pModule->xUpdate(pVtab, nArg, apArg, &rowid);
92672 assert( nArg>1 && apArg[0] && (apArg[0]->flags&MEM_Null) );
107718 4, /* nArg */
108008 2+IsStat4, /* nArg */
108160 1+IsStat4, /* nArg */
109529 sqlite3VdbeAddFunctionCall(pParse, 0, regArgs+3-pFunc->nArg, regArgs+3,
109530 pFunc->nArg, pFunc, 0);
109551 1, /* nArg */
109571 3, /* nArg */
115410 ** matches the request for a function with nArg arguments in a system
115414 ** If nArg is -1 that means to only return a match (non-zero) if p->nArg
115418 ** If nArg is -2 that means that we are searching for any function
115432 ** If nArg==(-2) then any function with a non-null xSFunc is
115439 int nArg, /* Desired number of arguments. (-1)==any */
115443 assert( p->nArg>=-1 );
115446 if( p->nArg!=nArg ){
115447 if( nArg==(-2) ) return (p->xSFunc==0) ? 0 : FUNC_PERFECT_MATCH;
115448 if( p->nArg>=0 ) return 0;
115453 if( p->nArg==nArg ){
115525 ** If nArg is -2, then the first valid function found is returned. A
115526 ** function is valid if xSFunc is non-zero. The nArg==(-2)
115528 ** of arguments. If nArg is -2, then createFlag must be 0.
115537 int nArg, /* Number of arguments. -1 means any number */
115547 assert( nArg>=(-2) );
115548 assert( nArg>=(-1) || createFlag==0 );
115555 int score = matchQuality(p, nArg, enc);
115580 int score = matchQuality(p, nArg, enc);
115598 pBest->nArg = (u16)nArg;
116922 x.nArg = argc-1;
123353 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
125681 p->nArg,
134277 int nArg;
134302 nArg = pList->nExpr;
134303 regAgg = sqlite3GetTempRange(pParse, nArg);
134306 nArg = 0;
134313 testcase( nArg==0 ); /* Error condition */
134314 testcase( nArg>1 ); /* Also an error */
134322 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
134333 sqlite3VdbeChangeP5(v, (u8)nArg);
134334 sqlite3ReleaseTempRange(pParse, regAgg, nArg);
138012 int nArg = 2 + pTab->nCol; /* Number of arguments to VUpdate */
138021 /* Allocate nArg registers in which to gather the arguments for VUpdate. Then
138026 addr= sqlite3VdbeAddOp2(v, OP_OpenEphemeral, ephemTab, nArg);
138028 pParse->nMem += nArg;
138078 sqlite3VdbeAddOp3(v, OP_MakeRecord, regArg, nArg, regRec);
138098 for(i=0; i<nArg; i++){
138103 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, nArg, regArg, pVTab, P4_VTAB);
139350 int nArg = pTab->nModuleArg;
139392 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
139893 int nArg, /* Number of arguments to the function */
139932 rc = pMod->xFindFunction(pVtab, nArg, pDef->zName, &xSFunc, &pArg);
150512 int nArg,
150517 UNUSED_PARAMETER(nArg);
150543 int nArg,
150549 UNUSED_PARAMETER(nArg);
150575 int nArg,
150605 UNUSED_PARAMETER(nArg);
150628 int nArg,
150639 UNUSED_PARAMETER(nArg);
150662 int nArg,
150673 UNUSED_PARAMETER(nArg);
150693 int nArg,
150697 UNUSED_PARAMETER(nArg); assert( nArg==0 );
150706 int nArg,
150710 UNUSED_PARAMETER(nArg); assert( nArg==0 );
150738 int nArg,
150742 UNUSED_PARAMETER(nArg); assert( nArg==0 );
150751 int nArg,
150755 UNUSED_PARAMETER(nArg); assert( nArg==0 );
150787 int nArg,
150791 assert( nArg==1 ); UNUSED_PARAMETER(nArg);
150807 int nArg,
150811 assert( nArg==1 ); UNUSED_PARAMETER(nArg);
150853 int nArg,
150857 UNUSED_PARAMETER(nArg);
150871 int nArg,
150875 UNUSED_PARAMETER(nArg);
150946 #define WINDOWFUNCALL(name,nArg,extra) { \
150947 nArg, (SQLITE_UTF8|SQLITE_FUNC_WINDOW|extra), 0, 0, \
150954 #define WINDOWFUNCNOOP(name,nArg,extra) { \
150955 nArg, (SQLITE_UTF8|SQLITE_FUNC_WINDOW|extra), 0, 0, \
150963 #define WINDOWFUNCX(name,nArg,extra) { \
150964 nArg, (SQLITE_UTF8|SQLITE_FUNC_WINDOW|extra), 0, 0, \
151978 int nArg = pWin->bExprArgs ? 0 : windowArgCount(pWin);
151987 for(i=0; i<nArg; i++){
152024 assert( pWin->bExprArgs || !nArg ||nArg==pWin->pOwner->x.pList->nExpr );
152025 assert( pWin->bExprArgs || nArg ||pWin->pOwner->x.pList==0 );
152027 sqlite3VdbeAddOp3(v, OP_Column, csr, pWin->iArgCol+nArg,regTmp);
152037 nArg = pWin->pOwner->x.pList->nExpr;
152038 regArg = sqlite3GetTempRange(pParse, nArg);
152050 assert( nArg>0 );
152057 sqlite3VdbeChangeP5(v, (u8)nArg);
152059 sqlite3ReleaseTempRange(pParse, regArg, nArg);
152098 int nArg = windowArgCount(pWin);
152100 sqlite3VdbeAddOp2(v, OP_AggFinal, pWin->regAccum, nArg);
152105 sqlite3VdbeAddOp3(v, OP_AggValue,pWin->regAccum,nArg,pWin->regResult);
152260 int nArg = pWin->pOwner->x.pList->nExpr;
152266 if( nArg<3 ){
152272 if( nArg<2 ){
152303 int nArg = 0;
152309 nArg = MAX(nArg, windowArgCount(pWin));
152324 pParse->nMem += nArg;
161941 int nArg,
161961 || (nArg<-1 || nArg>SQLITE_MAX_FUNCTION_ARG)
161991 rc = sqlite3CreateFunc(db, zFunctionName, nArg,
161995 rc = sqlite3CreateFunc(db, zFunctionName, nArg,
162013 p = sqlite3FindFunction(db, zFunctionName, nArg, (u8)enc, 0);
162014 if( p && (p->funcFlags & SQLITE_FUNC_ENCMASK)==(u32)enc && p->nArg==nArg ){
162025 p = sqlite3FindFunction(db, zFunctionName, nArg, (u8)enc, 1);
162047 p->nArg = (u16)nArg;
162061 int nArg,
162091 rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p,
162112 int nArg,
162119 return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep,
162125 int nArg,
162133 return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep,
162139 int nArg,
162148 return createFunctionApi(db, zFunc, nArg, enc, p, 0, xStep,
162156 int nArg,
162172 rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xSFunc,xStep,xFinal,0,0,0);
162218 int nArg
162224 if( !sqlite3SafetyCheckOk(db) || zName==0 || nArg<-2 ){
162229 rc = sqlite3FindFunction(db, zName, nArg, SQLITE_UTF8, 0)!=0;
162234 return sqlite3_create_function_v2(db, zName, nArg, SQLITE_UTF8,
164993 int nArg = 0; /* Number of entries in aArg[] */
165014 if( p->xUnlockNotify!=xUnlockNotify && nArg!=0 ){
165015 xUnlockNotify(aArg, nArg);
165016 nArg = 0;
165021 assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn );
165022 if( (!aDyn && nArg==(int)ArraySize(aStatic))
165023 || (aDyn && nArg==(int)(sqlite3MallocSize(aDyn)/sizeof(void*)))
165026 void **pNew = (void **)sqlite3Malloc(nArg*sizeof(void *)*2);
165028 memcpy(pNew, aArg, nArg*sizeof(void *));
165056 xUnlockNotify(aArg, nArg);
165057 nArg = 0;
165062 aArg[nArg++] = p->pUnlockArg;
165079 if( nArg!=0 ){
165080 xUnlockNotify(aArg, nArg);
169538 int nArg, /* Size of argument array */
169542 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
169856 int nArg, /* Number of SQL function arguments */
169873 UNUSED_PARAMETER(nArg);
181860 int nArg, /* Size of argument array */
181877 nArg==1 /* DELETE operations */
181878 || nArg==(2 + p->nColumn + 3) /* INSERT or UPDATE operations */
181885 if( nArg>1
181893 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
181919 if( nArg>1 && p->zContentTbl==0 ){
181966 if( nArg>1 && rc==SQLITE_OK ){
183992 int nArg, /* Size of array argv[] */
184005 for(i=0; rc==SQLITE_OK && i<nArg; i++){
187097 int nArg;
187125 int nArg;
187149 rc = sqlite3_create_function(db, aFunc[i].zName, aFunc[i].nArg, enc,
187155 rc = sqlite3_create_window_function(db, aAgg[i].zName, aAgg[i].nArg,
191007 static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
191015 UNUSED_PARAMETER(nArg);
191058 static void rtreedepth(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
191059 UNUSED_PARAMETER(nArg);
191508 int nArg,
191511 if( nArg!=1 && nArg!=2 ){
191520 if( nArg==1 ){
193252 int nArg,
193302 signed char nArg;
193334 rc = sqlite3_create_function(db, aFunc[i].zName, aFunc[i].nArg,
193429 static void geomCallback(sqlite3_context *ctx, int nArg, sqlite3_value **aArg){
193435 nBlob = sizeof(RtreeMatchArg) + (nArg-1)*sizeof(RtreeDValue)
193436 + nArg*sizeof(sqlite3_value*);
193444 pBlob->apSqlParam = (sqlite3_value**)&pBlob->aParam[nArg];
193445 pBlob->nParam = nArg;
193446 for(i=0; i<nArg; i++){
193806 static void icuRegexpFunc(sqlite3_context *p, int nArg, sqlite3_value **apArg){
193812 (void)nArg; /* Unused parameter */
193889 static void icuCaseFunc16(sqlite3_context *p, int nArg, sqlite3_value **apArg){
193899 assert(nArg==1 || nArg==2);
193901 if( nArg==2 ){
193992 int nArg,
194002 assert(nArg==2);
194003 (void)nArg; /* Unused parameter */
194034 unsigned char nArg; /* Number of arguments */
194060 db, p->zName, p->nArg, p->enc,
207528 int (*xCreate)(void*, const char **azArg, int nArg, Fts5Tokenizer **ppOut);
208158 int nArg,
211334 sqlite3_int64 nArg = strlen(zArg) + 1;
211335 char **azArg = sqlite3Fts5MallocZero(&rc, sizeof(char*) * nArg);
211336 char *pDel = sqlite3Fts5MallocZero(&rc, nArg * 2);
211344 for(nArg=0; p && *p; nArg++){
211353 azArg[nArg] = pSpace;
211364 (const char**)azArg, (int)nArg, &pConfig->pTok, &pConfig->pTokApi,
211546 ** Arguments nArg/azArg contain the string arguments passed to the xCreate
211560 int nArg, /* Number of arguments */
211561 const char **azArg, /* Array of nArg CREATE VIRTUAL TABLE args */
211576 nByte = nArg * (sizeof(char*) + sizeof(u8));
211578 pRet->abUnindexed = (u8*)&pRet->azCol[nArg];
211591 for(i=3; rc==SQLITE_OK && i<nArg; i++){
214476 int nArg, /* Number of args */
214494 if( nArg<1 ){
214503 if( bTcl && nArg>1 ){
214508 nConfig = 3 + (nArg-iArg);
214517 for(i=3; iArg<nArg; iArg++){
214561 int nArg, /* Number of args */
214564 fts5ExprFunction(pCtx, nArg, apVal, 0);
214568 int nArg, /* Number of args */
214571 fts5ExprFunction(pCtx, nArg, apVal, 1);
214581 int nArg, /* Number of args */
214586 if( nArg!=1 ){
214602 int nArg, /* Number of args */
214605 if( nArg!=1 && nArg!=2 ){
214613 if( nArg==2 ) bRemoveDiacritics = sqlite3_value_int(apVal[1]);
221808 int nArg, /* Number of args (always 2) */
221820 assert( nArg==2 );
221821 UNUSED_PARAM(nArg);
222017 int nArg, /* Number of args (always 2) */
222021 if( nArg==0 ){
222028 if( nArg!=3 ){
223659 int nArg, /* Size of argument array */
223672 assert( nArg==1 || nArg==(2+pConfig->nCol+2) );
223713 assert( nArg!=1 || eType0==SQLITE_INTEGER );
223720 (nArg>1 ? "UPDATE" : "DELETE from"), pConfig->zName
223726 else if( nArg==1 ){
224755 int nArg,
224763 pMod = fts5LocateTokenizer(pGlobal, nArg==0 ? 0 : azArg[0]);
224765 assert( nArg>0 );
224769 rc = pMod->x.xCreate(pMod->pUserData, &azArg[1], (nArg?nArg-1:0), ppTok);
224806 int nArg, /* Number of args */
224811 UNUSED_PARAM(nArg);
224812 assert( nArg==1 );
224822 int nArg, /* Number of args */
224825 assert( nArg==0 );
224826 UNUSED_PARAM2(nArg, apUnused);
226173 const char **azArg, int nArg,
226179 if( nArg%2 ){
226189 for(i=0; rc==SQLITE_OK && i<nArg; i+=2){
226460 const char **azArg, int nArg,
226468 if( nArg%2 ){
226485 for(i=0; rc==SQLITE_OK && i<nArg; i+=2){
226495 for(i=0; rc==SQLITE_OK && i<nArg; i+=2){
226682 const char **azArg, int nArg,
226691 if( nArg>0 ){
226703 int nArg2 = (nArg>0 ? nArg-1 : 0);
228789 int nArg = 0;
228807 pInfo->aConstraintUsage[iTermEq].argvIndex = ++nArg;
228813 pInfo->aConstraintUsage[iTermGe].argvIndex = ++nArg;
228818 pInfo->aConstraintUsage[iTermLe].argvIndex = ++nArg;