Lines Matching defs:apVal

10288   int nVal,                       /* Number of values in apVal[] array */
10289 sqlite3_value **apVal /* Array of trailing arguments */
71046 sqlite3_value **apVal = 0; /* Function arguments */
71047 int nVal = 0; /* Size of apVal[] array */
71067 apVal = (sqlite3_value**)sqlite3DbMallocZero(db, sizeof(apVal[0]) * nVal);
71068 if( apVal==0 ){
71073 rc = sqlite3ValueFromExpr(db, pList->a[i].pExpr, enc, aff, &apVal[i]);
71074 if( apVal[i]==0 || rc!=SQLITE_OK ) goto value_from_function_out;
71088 pFunc->xSFunc(&ctx, nVal, apVal);
71107 if( apVal ){
71109 sqlite3ValueFree(apVal[i]);
71111 sqlite3DbFreeNN(db, apVal);
149143 int nVal, /* Number of elements in apVal */
149144 sqlite3_value **apVal /* Arguments for the indexing scheme */
149167 if( eSearch!=FTS3_FULLSCAN_SEARCH ) pCons = apVal[iIdx++];
149168 if( idxNum & FTS3_HAVE_LANGID ) pLangid = apVal[iIdx++];
149169 if( idxNum & FTS3_HAVE_DOCID_GE ) pDocidGe = apVal[iIdx++];
149170 if( idxNum & FTS3_HAVE_DOCID_LE ) pDocidLe = apVal[iIdx++];
149341 sqlite3_value **apVal, /* Array of arguments */
149344 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
149534 int nVal, /* Size of apVal[] array */
149535 sqlite3_value **apVal /* Array of arguments */
149537 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
149554 if( fts3FunctionArg(pContext, "snippet", apVal[0], &pCsr) ) return;
149557 case 6: nToken = sqlite3_value_int(apVal[5]);
149558 case 5: iCol = sqlite3_value_int(apVal[4]);
149559 case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
149560 case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
149561 case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
149578 sqlite3_value **apVal /* Array of arguments */
149580 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
149585 if( fts3FunctionArg(pContext, "offsets", apVal[0], &pCsr) ) return;
149604 sqlite3_value **apVal /* Array of arguments */
149608 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
149613 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
149638 sqlite3_value **apVal /* Array of arguments */
149640 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
149642 if( SQLITE_OK==fts3FunctionArg(pContext, "matchinfo", apVal[0], &pCsr) ){
149645 zArg = (const char *)sqlite3_value_text(apVal[1]);
152269 int nVal, /* Number of elements in apVal */
152270 sqlite3_value **apVal /* Arguments for the indexing scheme */
152278 int iEq = -1; /* Index of term=? value in apVal */
152279 int iGe = -1; /* Index of term>=? value in apVal */
152280 int iLe = -1; /* Index of term<=? value in apVal */
152281 int iLangid = -1; /* Index of languageid=? value in apVal */
152319 const unsigned char *zStr = sqlite3_value_text(apVal[0]);
152323 pCsr->filter.nTerm = sqlite3_value_bytes(apVal[0]);
152329 pCsr->zStop = sqlite3_mprintf("%s", sqlite3_value_text(apVal[iLe]));
152330 pCsr->nStop = sqlite3_value_bytes(apVal[iLe]);
152335 iLangVal = sqlite3_value_int(apVal[iLangid]);
155912 int nVal, /* Number of elements in apVal */
155913 sqlite3_value **apVal /* Arguments for the indexing scheme */
155923 const char *zByte = (const char *)sqlite3_value_text(apVal[0]);
155924 int nByte = sqlite3_value_bytes(apVal[0]);
156315 ** If argument apVal is not NULL, then it must point to an array with
156324 sqlite3_value **apVal /* Values to bind to statement */
156449 if( apVal ){
156453 rc = sqlite3_bind_value(pStmt, i+1, apVal[i]);
156517 ** array apVal[] to the SQL statement identified by eStmt, the statement
156527 sqlite3_value **apVal /* Parameters to bind */
156532 rc = fts3SqlStmt(p, eStmt, &pStmt, apVal);
156946 ** Argument apVal is the same as the similarly named argument passed to
156952 sqlite3_value **apVal,
156959 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
156964 aSz[p->nColumn] += sqlite3_value_bytes(apVal[i]);
156972 ** The apVal parameter is passed a copy of the apVal argument passed by
156975 ** apVal[0] Not used for INSERT.
156976 ** apVal[1] rowid
156977 ** apVal[2] Left-most user-defined column
156979 ** apVal[p->nColumn+1] Right-most user-defined column
156980 ** apVal[p->nColumn+2] Hidden column with same name as table
156981 ** apVal[p->nColumn+3] Hidden "docid" column (alias for rowid)
156982 ** apVal[p->nColumn+4] Hidden languageid column
156986 sqlite3_value **apVal, /* Array of values to insert */
156993 sqlite3_value *pRowid = apVal[p->nColumn+3];
156995 pRowid = apVal[1];
157012 rc = fts3SqlStmt(p, SQL_CONTENT_INSERT, &pContentInsert, &apVal[1]);
157016 sqlite3_value_int(apVal[p->nColumn+4])
157031 if( SQLITE_NULL!=sqlite3_value_type(apVal[3+p->nColumn]) ){
157032 if( SQLITE_NULL==sqlite3_value_type(apVal[0])
157033 && SQLITE_NULL!=sqlite3_value_type(apVal[1])
157038 rc = sqlite3_bind_value(pContentInsert, 1, apVal[3+p->nColumn]);
157089 ** The first element in the apVal[] array is assumed to contain the docid
158421 ** The first value in the apVal[] array is assumed to contain an integer.
161554 sqlite3_value **apVal, /* Array of arguments */
161580 && sqlite3_value_type(apVal[0])==SQLITE_NULL
161581 && sqlite3_value_type(apVal[p->nColumn+2])!=SQLITE_NULL
161583 rc = fts3SpecialInsert(p, apVal[p->nColumn+2]);
161587 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
161615 sqlite3_value *pNewRowid = apVal[3+p->nColumn];
161617 pNewRowid = apVal[1];
161621 sqlite3_value_type(apVal[0])==SQLITE_NULL
161622 || sqlite3_value_int64(apVal[0])!=sqlite3_value_int64(pNewRowid)
161644 rc = fts3InsertData(p, apVal, pRowid);
161654 if( sqlite3_value_type(apVal[0])!=SQLITE_NULL ){
161655 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER );
161656 rc = fts3DeleteByRowid(p, apVal[0], &nChng, aSzDel);
161662 int iLangid = sqlite3_value_int(apVal[2 + p->nColumn + 2]);
161664 rc = fts3InsertData(p, apVal, pRowid);
161674 rc = fts3InsertTerms(p, iLangid, apVal, aSzIns);
171294 sqlite3_value **apVal
171300 assert( sqlite3_value_int(apVal[0])!=0
171304 if( sqlite3_value_int(apVal[0])!=0 ){
171309 rc = sqlite3_bind_value(p->objiter.pTmpInsert, i+1, apVal[i]);
172824 sqlite3_value **apVal
172835 "WHERE type='index' AND tbl_name = %Q", sqlite3_value_text(apVal[0]))
177989 sqlite3_value **apVal = 0; /* Space for values for UPDATE inversion */
178032 sqlite3_free(apVal);
178033 apVal = 0;
178057 if( 0==apVal ){
178058 apVal = (sqlite3_value **)sqlite3_malloc(sizeof(apVal[0])*nCol*2);
178059 if( 0==apVal ){
178063 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
178072 rc = sessionReadRecord(pInput, nCol, 0, &apVal[0]);
178074 rc = sessionReadRecord(pInput, nCol, 0, &apVal[nCol]);
178081 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
178089 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
178094 sqlite3ValueFree(apVal[iCol]);
178096 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
178128 sqlite3_free(apVal);
182042 int nVal, /* Number of values in apVal[] array */
182043 sqlite3_value **apVal /* Array of trailing arguments */
184883 int nVal, /* Number of values in apVal[] array */
184884 sqlite3_value **apVal /* Array of trailing arguments */
184896 iCol = sqlite3_value_int(apVal[0]);
184898 ctx.zOpen = (const char*)sqlite3_value_text(apVal[1]);
184899 ctx.zClose = (const char*)sqlite3_value_text(apVal[2]);
185044 int nVal, /* Number of values in apVal[] array */
185045 sqlite3_value **apVal /* Array of trailing arguments */
185071 iCol = sqlite3_value_int(apVal[0]);
185072 ctx.zOpen = (const char*)sqlite3_value_text(apVal[1]);
185073 ctx.zClose = (const char*)sqlite3_value_text(apVal[2]);
185074 zEllips = (const char*)sqlite3_value_text(apVal[3]);
185075 nToken = sqlite3_value_int(apVal[4]);
185300 int nVal, /* Number of values in apVal[] array */
185301 sqlite3_value **apVal /* Array of trailing arguments */
185325 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
189149 sqlite3_value **apVal, /* Function arguments */
189176 zNearsetCmd = (const char*)sqlite3_value_text(apVal[1]);
189190 azConfig[i++] = (const char*)sqlite3_value_text(apVal[iArg]);
189193 zExpr = (const char*)sqlite3_value_text(apVal[0]);
189232 sqlite3_value **apVal /* Function arguments */
189234 fts5ExprFunction(pCtx, nArg, apVal, 0);
189239 sqlite3_value **apVal /* Function arguments */
189241 fts5ExprFunction(pCtx, nArg, apVal, 1);
189252 sqlite3_value **apVal /* Function arguments */
189261 iCode = sqlite3_value_int(apVal[0]);
189268 sqlite3_value **apVal /* Function arguments */
189277 iCode = sqlite3_value_int(apVal[0]);
189278 if( nArg==2 ) bRemoveDiacritics = sqlite3_value_int(apVal[1]);
196334 sqlite3_value **apVal /* Function arguments */
196348 iRowid = sqlite3_value_int64(apVal[0]);
196353 n = sqlite3_value_bytes(apVal[1]);
196354 aBlob = sqlite3_value_blob(apVal[1]);
196521 sqlite3_value **apVal /* Function arguments */
196527 zArg = (const char*)sqlite3_value_text(apVal[0]);
196536 segid = sqlite3_value_int(apVal[1]);
196537 pgno = sqlite3_value_int(apVal[2]);
197707 int nVal, /* Number of elements in apVal */
197708 sqlite3_value **apVal /* Arguments for the indexing scheme */
197714 int iVal = 0; /* Counter for apVal[] */
197748 if( BitFlagTest(idxNum, FTS5_BI_MATCH) ) pMatch = apVal[iVal++];
197749 if( BitFlagTest(idxNum, FTS5_BI_RANK) ) pRank = apVal[iVal++];
197750 if( BitFlagTest(idxNum, FTS5_BI_ROWID_EQ) ) pRowidEq = apVal[iVal++];
197751 if( BitFlagTest(idxNum, FTS5_BI_ROWID_LE) ) pRowidLe = apVal[iVal++];
197752 if( BitFlagTest(idxNum, FTS5_BI_ROWID_GE) ) pRowidGe = apVal[iVal++];
197789 const char *zExpr = (const char*)sqlite3_value_text(apVal[0]);
197827 sqlite3_bind_value(pCsr->pStmt, 1, apVal[0]);
198013 sqlite3_value **apVal
198016 int eType1 = sqlite3_value_type(apVal[1]);
198018 sqlite3_int64 iDel = sqlite3_value_int64(apVal[1]);
198019 rc = sqlite3Fts5StorageDelete(pTab->pStorage, iDel, &apVal[2]);
198027 sqlite3_value **apVal,
198032 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, piRowid);
198035 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal, *piRowid);
198057 sqlite3_value **apVal, /* Array of arguments */
198062 int eType0; /* value_type() of apVal[0] */
198071 || sqlite3_value_type(apVal[1])==SQLITE_INTEGER
198072 || sqlite3_value_type(apVal[1])==SQLITE_NULL
198080 eType0 = sqlite3_value_type(apVal[0]);
198082 && sqlite3_value_type(apVal[2+pConfig->nCol])!=SQLITE_NULL
198085 const char *z = (const char*)sqlite3_value_text(apVal[2+pConfig->nCol]);
198089 rc = fts5SpecialDelete(pTab, apVal);
198091 rc = fts5SpecialInsert(pTab, z, apVal[2 + pConfig->nCol + 1]);
198125 i64 iDel = sqlite3_value_int64(apVal[0]); /* Rowid to delete */
198133 && sqlite3_value_type(apVal[1])==SQLITE_INTEGER
198135 i64 iNew = sqlite3_value_int64(apVal[1]); /* Rowid to delete */
198138 fts5StorageInsert(&rc, pTab, apVal, pRowid);
198143 i64 iOld = sqlite3_value_int64(apVal[0]); /* Old rowid */
198144 i64 iNew = sqlite3_value_int64(apVal[1]); /* New rowid */
198151 fts5StorageInsert(&rc, pTab, apVal, pRowid);
198153 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, pRowid);
198158 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal, *pRowid);
198163 fts5StorageInsert(&rc, pTab, apVal, pRowid);
199722 sqlite3_value **apVal
199731 if( apVal==0 ){
199751 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
199752 nText = sqlite3_value_bytes(apVal[iCol-1]);
199844 static int sqlite3Fts5StorageDelete(Fts5Storage *p, i64 iDel, sqlite3_value **apVal){
199849 assert( pConfig->eContent!=FTS5_CONTENT_NORMAL || apVal==0 );
199854 rc = fts5StorageDeleteFromIndex(p, iDel, apVal);
200010 sqlite3_value **apVal,
200018 if( sqlite3_value_type(apVal[1])==SQLITE_INTEGER ){
200019 *piRowid = sqlite3_value_int64(apVal[1]);
200028 rc = sqlite3_bind_value(pInsert, i, apVal[i]);
200045 sqlite3_value **apVal,
200065 (const char*)sqlite3_value_text(apVal[ctx.iCol+2]),
200066 sqlite3_value_bytes(apVal[ctx.iCol+2]),
202916 int nUnused, /* Number of elements in apVal */
202917 sqlite3_value **apVal /* Arguments for the indexing scheme */
202934 if( idxNum & FTS5_VOCAB_TERM_EQ ) pEq = apVal[iVal++];
202935 if( idxNum & FTS5_VOCAB_TERM_GE ) pGe = apVal[iVal++];
202936 if( idxNum & FTS5_VOCAB_TERM_LE ) pLe = apVal[iVal++];